Skip to main content
PUT
https://staging-api.propaga.io/v1
/
transaction
/
{transactionId}
curl --location --request PUT 'https://staging-api.propaga.io/v1/transaction/{transactionId}' \
--header 'Authorization: <your_awesome_token>' \
--header 'Content-Type: application/json' \
--data '{
    "status": "delivery",
    "transactionAmount": 12345
}'
{
    "success": true
}
For additional details on how transaction statuses works, click this link
curl --location --request PUT 'https://staging-api.propaga.io/v1/transaction/{transactionId}' \
--header 'Authorization: <your_awesome_token>' \
--header 'Content-Type: application/json' \
--data '{
    "status": "delivery",
    "transactionAmount": 12345
}'
{
    "success": true
}

Path parameters

transactionId
string
required
Propaga’s transaction id

Body

status
string
required
Transaction’s new status, in this case always had to be delivery
transactionAmount
number
required
New transaction amount: We will automatically recalculate the associated commissions based on the updated amount.
latitude
number
Latitude of the delivery location
longitude
number
Longitude of the delivery location
locationDescription
string
Description of the delivery location

Response

success
boolean

Error codes

Transaction not found (404)
{
    "errorCode": "TRANSACTION_NOT_FOUND",
    "errorMessage": "This transaction not found"
}
Transaction is not on on-hold status (422)
{
    "errorCode": "TRANSACTION_IS_NOT_IN_HOLD",
    "errorMessage": "Your transaction is not in hold status"
}
Field transactionAmount is not on the request (400)
{
    "errorCode": "TRANSACTION_AMOUNT_NOT_FOUND",
    "errorMessage": "You should send transactionAmount"
}