Razones de cancelación - Órdenes de entrega - 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..
Parámetros para la solicitud
shipment_id

REQUERIDO

string
Localización: pathUnique ID that identifies the shipment of the order.
Parámetros de respuesta
id
string
Localización: bodyID of the reason of cancellation.
value
string
Localización: bodyName of the reason of cancellation.
message
string
Localización: bodyDescription of the reason of cancellation.
Solicitud
curl
curl -X PUT \
      'https://api.mercadopago.com/proximity-integration/shipments/{shipment_id}/cancellation-reasons' \
      -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' 
Respuesta
json
[
  {
    "id": "CS7452",
    "value": "out_of_stock",
    "message": "Me falta alguno de los productos."
  }
]
Errores
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