Razões de cancelamento - Pedidos 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 de requisição
shipment_id

OBRIGATÓRIO

string
Localização: pathUnique ID that identifies the shipment of the order.
Parâmetros de resposta
id
string
Localização: bodyID of the reason of cancellation.
value
string
Localização: bodyName of the reason of cancellation.
message
string
Localização: bodyDescription of the reason of cancellation.
Solicitação
curl
curl -X PUT \
      'https://api.mercadopago.com/proximity-integration/shipments/{shipment_id}/cancellation-reasons' \
      -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' 
Resposta
json
[
  {
    "id": "CS7452",
    "value": "out_of_stock",
    "message": "Me falta alguno de los productos."
  }
]
Erros
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