Cancel order - Shipping orders - Mercado Pago Developers
Cancel order

PUT

/proximity-integration/shipments/{shipment_id}/cancel
This endpoint cancels an order, changing its status.
Request's parameters
shipment_id

REQUIRED

string
Localization: pathUnique ID that identifies the shipment of the order to be performed by the operations to accept and print an order.
status
string
Localization: bodyThis property indicates the order status, which must have the value "cancelled" for this endpoint.
Response parameters
status
string
Localization: bodyStatus of the order after its cancellation. The Status value that will be returned is "cancelled".
Request
curl
curl -X PUT \
    'https://api.mercadopago.com/proximity-integration/shipments/{shipment_id}/cancel' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
    -H 'Content-Type: application/json' \
    -d '{
  "status": "cancelled"
}'
Answer
json
{
  "status": "cancelled"
}