Skip to main content

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.

FieldTypeRequiredDescription
idStringNoID of the order. Send this or entityId.
entityIdStringNoOrder number, for example ORD-1042.
orderStatusStringNopending, processing, partially fulfilled, fulfilled, restocked or cancelled.
paymentStatusStringNounpaid, 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​

FieldTypeDescription
successBooleanWhether the request succeeded.
messageStringResult message.

Notes​

  • Only the order status and payment status are changed.
  • Orders that are not found are skipped. Use Get All Orders with id:in or entityId:in to check the results.
  • The customer receives a status email when an order becomes fulfilled or cancelled, or its payment becomes declined or refunded.