Update Multiple Order Statuses
Updates the order status and payment status of several orders at once. Identify each order by its ID or its order number.
HTTP Request
- URL:
/orders/update - Method:
PUT - Headers:
accessToken: Required. Your API access token.Content-Type:application/json
- Required scope:
READ_WRITE_ORDER
Request Body
The request body is a JSON array with one object per order.
| Field | Type | Required | Description |
|---|---|---|---|
id | String | No | ID of the order. Send this or entityId. |
entityId | String | No | Order number, for example ORD-1042. |
orderStatus | String | No | pending, processing, partially fulfilled, fulfilled, restocked or cancelled. |
paymentStatus | String | No | unpaid, authorized, declined, partially paid, paid, partially refunded or refunded. |
cURL Example
curl --location --request PUT '<BASE_URL>/orders/update' \
--header 'accessToken: <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '[
{ "id": "664f2310d5775459152d6dd8", "orderStatus": "fulfilled", "paymentStatus": "paid" },
{ "entityId": "ORD-1043", "orderStatus": "cancelled" }
]'
Response
- 200 OK: The orders were updated.
- 400 Bad Request: The access token is missing or invalid, the list is empty, or a status value is not valid.
Sample JSON Response
{
"success": true,
"message": "Orders updated successfully"
}
Response Details
Result Data
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the request succeeded. |
message | String | Result message. |
Notes
- Only the order status and payment status are changed.
- Orders that are not found are skipped. Use Get All Orders with
id:inorentityId:into check the results. - The customer receives a status email when an order becomes
fulfilledorcancelled, or its payment becomesdeclinedorrefunded.