Description
Use this API to accept or refuse order lines that are in the AWAITING_ACCEPTANCE status, from Mirakl Connect. The API also synchronizes the order line status on the sales channel.
Call Frequency
Recommended usage: On each new order
Maximum usage: On each new order
Security
Bearer(Required scopes: connect:order:accept)
- Connect Production endpointhttps://miraklconnect.com/api/v2/orders/{order_id}/accept
curl -i -X PUT \
https://miraklconnect.com/api/v2/orders/01JYGX2Z4V9KQ8RD3TCE5MHW7N/accept \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"order_lines": [
{
"accepted": true,
"id": "01JYGX3F6A2P8QW4KZRD9TBEH5"
},
{
"accepted": false,
"id": "01JYGX3T7C1N5RV8MYSEA2KDQ6"
}
]
}'Accepted. The accept request will be processed asynchronously.
The unique identifier for the asynchronous action. It should be used with the v2-getActionStatus API to retrieve current action status and potential errors.
Response
{ "action_id": "1ba5fc4b-c4fd-4251-880b-3052e301bbd4", "tracking_id": "1ba5fc4b-c4fd-4251-880b-3052e301bbd4" }