Order Change Accept Ep
POST/v1/order/change/accept
Accept Order Change Request
Accepts a pending order change request and applies the update to the order. On success, the change is marked as approved. On handled failure (e.g., validation errors), the change is marked as rejected.
Required Scopes (ioc.w)
change_id: str
The ObjectId of the OrderChange to accept.
trigger_callbacks: bool = True
Whether to trigger webhook callbacks for the change. If the request originated from a webhook, set to False to avoid loops.
Responses
- 200
- 422
Successful Response
- application/json
- Example (from schema)
{
"id": "string",
"order_id": "string",
"order_number": 0,
"status": "waiting_for_approval",
"updated_on": "2026-03-19T20:39:32.882Z",
"change_types": [
"supply_change"
]
}
Validation Error
- application/json
- Example (from schema)
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...