Cancel order/proximity-integration/shipments/{shipment_id}/cancelThis endpoint cancels an order, changing its status.
PUT
Products that use it:
Request's parameters
shipment_idstring
Localization: pathUnique ID that identifies the shipment of the order to be performed by the operations to accept and print an order.REQUIRED
status
Localization: bodyThis property indicates the order status, which must have the value "cancelled" for this endpoint.string
Response parameters
status
Localization: bodyStatus of the order after its cancellation. The Status value that will be returned is "cancelled".string
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"
}