Did you find this information useful?
Yes
No
Reasons for cancellation/proximity-integration/shipments/{shipment_id}/cancellation-reasonsThis endpoint returns the cancellation reasons that are available for an order. It is important to remember that cancellation reasons vary depending on the current status of the order.
GET
Products that use it:
Request's parameters
shipment_idstring
Localization: pathShipment ID of the order.REQUIRED
Response parameters
id
Localization: bodyID of the reason of cancellation.string
value
Localization: bodyName of the reason of cancellation.string
message
Localization: bodyDescription of the reason of cancellation.string
Request
curl
curl -X GET \
'https://api.mercadopago.com/proximity-integration/shipments/{shipment_id}/cancellation-reasons' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN \
Answer
json
[
{
"id": "CS7452",
"value": "out_of_stock",
"message": "Me falta alguno de los productos."
}
]
Errors
401bad_request
401
403bad_request
403 Forbidden - User cannot access this resource
424bad_request
424 Not Found - Failed to get some information of the order
500bad_request
500 Internal server error