Accept order

This endpoint is used to accept an order, and change its status.

PUT

https://api.mercadopago.com/proximity-integration/shipments/{shipment_id}/accept
Request parameters
Header
Authorization
string

REQUIRED

Access Token obtained through the developer panel. Must be sent in all requests.
Path
shipment_id
string

REQUIRED

Unique ID that identifies the shipment of the order to be performed by the operation to accept an order
Body
status
string
This property indicates the order status, which must have the value "accepted" for this endpoint
Response parameters
status
string
Status of the order after its acceptance. The Status value that will be returned is "accepted"
Errors

400Error

400

Conflict-error - This order cannot be accepted due to its current status.

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

Provide valid data in the request parameters before executing.
Request
curl -X PUT \
    'https://api.mercadopago.com/proximity-integration/shipments/{shipment_id}/accept'\
    -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer APP_USR-1*********685765-12*********1b4332e5c*********e077d7679*********664' \
    -d '{
  "status": "accepted"
}'
Response
{
  "status": "accepted"
}