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
}'
Path parameters
Body
Transaction’s new status, in this case always had to be delivery
New transaction amount: We will automatically recalculate the associated commissions based on the updated amount.
Latitude of the delivery location
Longitude of the delivery location
Description of the delivery location
Response
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"
}