Skip to content

OR21 - Accept or refuse order lines

Request

Description

Accept or refuse order lines in the WAITING_ACCEPTANCE status

Error Codes
CodeDescription
ORDER_FULFILLED_UNAUTHORIZEDAn unauthorized action has been requested on a fulfilled order
ORDER_INVALID_STATEOrder is not in the expected state for this operation
ORDER_LINE_ACCEPTANCE_DECISION_MISSINGSome order lines are missing from the acceptance decision
ORDER_LINE_DUPLICATE_IDThe order lines list contains duplicate order line IDs
ORDER_LINE_NOT_FOUNDThe requested order line does not exist or is not associated with the order
ORDER_LINE_NULL_ELEMENTThe order lines list contains a null element
ORDER_NOT_FOUNDThe requested order does not exist
ORDER_PARTIAL_ACCEPTANCE_DISABLEDPartial acceptance is disabled for this shop
VALIDATION_ERRORInput validation failed
Call Frequency
Maximum usage: At each new order on the Marketplace
Security
Front-Bearer-Token or OAuth-2
Path
order_idstringrequired

Order's identifier

Bodyapplication/json
order_linesArray of objectsrequired

List of representations of order line for acceptance

curl -i -X PUT \
  'https://your-instance.mirakl.net/api/orders/{order_id}/accept' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "order_lines": [
      {
        "accepted": true,
        "id": "Order_00012-B-1"
      }
    ]
  }'

Responses

No Content