Skip to content

Update Order Status ​

Use this endpoint to update the status of an existing order (e.g. from PENDING to PROCESSING, COMPLETED, or CANCELLED).

Endpoint ​

PATCH /v1/orders/{orderId}/status

Path parameterTypeDescription
orderIdstringUnique identifier of the order.

Headers ​

json
{
  "Authorization": "Bearer JWT_TOKEN",
  "X-MerchantApiKey": "MERCHANT_API_KEY",
  "Content-Type": "application/json"
}

Request body ​

ParameterTypeRequiredDescription
statusstringYesTarget order status: PENDING, PROCESSING, COMPLETED, CANCELLED, REFUNDED.

Response 200 ​

json
{
  "status": true,
  "message": "Order status updated successfully",
  "data": {
    "id": "67a6261a320f3f7368dfec35",
    "orderNumber": "ORD123456",
    "status": "PROCESSING"
  }
}

Build with joy