Home
Documentation
Resources
Partners
Community

Resources

Check for updates on our solutions and system performance, or request technical support.

Partners

Discover our program for agencies or developers that offer integration services and sellers who want to hire them.

Community

Get the latest news, ask others for help and share your knowledge.

Reasons for cancellation - Shipping orders - Mercado Pago Developers

Intelligent search powered by OpenAI 

Reasons for cancellation

GET

https://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.
Request's parameters
PATH
shipment_id
string

REQUIRED

Shipment ID of the order.
Response parameters
id
string
ID of the reason of cancellation.
value
string
Name of the reason of cancellation.
message
string
Description of the reason of cancellation.
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 TEST-4599*********755-11221*********d497ae962*********ecf8d85-1*********' \
    
Sample answer
[
  {
    "id": "CS7452",
    "value": "out_of_stock",
    "message": "Me falta alguno de los productos."
  }
]