AI resources
Reasons for cancellationhttps://api.mercadopago.com/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.
GET
Request parameters
Header
Authorization
Access Token obtained through the developer panel. Must be sent in all requests.string
REQUIRED
Path
shipment_id
Shipment ID of the order.string
REQUIRED
Response parameters
id
ID of the reason of cancellation.string
value
Name of the reason of cancellation.string
message
Description of the reason of cancellation.string
Errors
401Error
401
Unauthorized - Access Token is invalid
403Error
403
Forbidden - User cannot access this resource
424Error
424
Not Found - Failed to get some information of the order
500Error
500
Internal server error
Request
curl -X GET \
'https://api.mercadopago.com/proximity-integration/shipments/{shipment_id}/cancellation-reasons'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-1*********685765-12*********1b4332e5c*********e077d7679*********664' \
Response
[
{
"id": "CS7452",
"value": "out_of_stock",
"message": "Me falta alguno de los productos."
}
]