> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getscale.ng/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Order Status

Updates the payment status, order fulfillment status, or customer delivery details.

### Authorizations

<ParamField header="X-Shop-API-Key" type="string" required>
  Your Secret API Key (`sk_live_...` or `sk_test_...`) generated from the Developer dashboard. Must be kept secret.
</ParamField>

### Path Parameters

<ParamField path="shopId" type="string" required>
  The unique UUID of the shop.
</ParamField>

<ParamField path="orderId" type="number" required>
  The unique ID of the order.
</ParamField>

### Request Body (JSON)

<ParamField body="orderStatus" type="string">
  Fulfillment status: `confirmed`, `shipped`, `delivered`, `cancelled`.
</ParamField>

<ParamField body="paymentStatus" type="string">
  Payment status: `pending`, `paid`, `refunded`.
</ParamField>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "status": "success",
    "message": "Order updated successfully",
    "data": {
      "id": 501,
      "orderStatus": "delivered",
      "paymentStatus": "paid"
    }
  }
  ```

  ```json 400 Bad Request theme={null}
  {
    "message": "FORM_VALIDATION_ERROR",
    "code": 400,
    "validationErrors": [
      {
        "path": [
          "orderStatus"
        ],
        "message": "Invalid enum value. Expected 'confirmed' | 'shipped' | 'delivered' | 'cancelled'"
      }
    ]
  }
  ```
</ResponseExample>
