Reasons for cancellation - Shipping orders - Mercado Pago Developers
Reasons for cancellation

PUT

/proximity-integration/shipments/{shipment_id}/cancellation-reasons
This 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.
Request's parameters
shipment_id

REQUIRED

string
Localization: pathShipment ID of the order.
Response parameters
id
string
Localization: bodyID of the reason of cancellation.
value
string
Localization: bodyName of the reason of cancellation.
message
string
Localization: bodyDescription of the reason of cancellation.
Request
curl
curl -X PUT \
      '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 Unauthorized - Access Token is invalid
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