Reasons for cancellation/proximity-integration/shipments/{shipment_id}/cancellation-reasonsThis 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..
PUT
Productos que lo utilizan:
Parámetros para la solicitud
shipment_idstring
Localización: pathUnique ID that identifies the shipment of the order.REQUERIDO
Parámetros de respuesta
id
Localización: bodyID of the reason of cancellation.string
value
Localización: bodyName of the reason of cancellation.string
message
Localización: bodyDescription of the reason of cancellation.string
Solicitud
curl
curl -X PUT \
'https://api.mercadopago.com/proximity-integration/shipments/{shipment_id}/cancellation-reasons' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
Respuesta
json
[
{
"id": "CS7452",
"value": "out_of_stock",
"message": "Me falta alguno de los productos."
}
]
Errores
401bad_request
401
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