Accept order/proximity-integration/shipments/{shipment_id}/acceptThis endpoint is used to accept an order, and change its status.
PUT
Produtos relacionados:
Parâmetros de requisição
shipment_idstring
Localização: pathUnique ID that identifies the shipment of the order to be performed by the operation to accept an order.OBRIGATÓRIO
status
Localização: bodyThis property indicates the order status, which must have the value "accepted" for this endpoint.string
Parâmetros de resposta
status
Localização: bodyStatus of the order after its acceptance. The Status value that will be returned is "accepted".string
Solicitação
curl
curl -X PUT \
'https://api.mercadopago.com/proximity-integration/shipments/{shipment_id}/accept' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"status": "accepted"
}'
Resposta
json
{
"status": "accepted"
}
Erros
400bad_request
400
401bad_request
401 Unauthorized - Access Token is invalid
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