Skip to content

Update Order Status (Store)

Update the status of an order by a store. Status progression: "1" → "2" → "3" → "4".

Endpoint

PUT /v1/products/order/store/?id={order_id}

Authentication

Required (Store role)

Query Parameters

Parameter Type Required Description
id integer Yes Order ID

Request Body

No body required. Status is automatically advanced to the next stage.

Response

Success (200 OK)

Returns the updated order:

{
  "id": 1,
  "user_id": 5,
  "store_id": 3,
  "product_variant_id": 10,
  "quantity": 2,
  "price": 75.00,
  "currency_name": "AZN",
  "payment_status": "1",
  "status": "2",
  "user": {...},
  "store": {...},
  "product_variant": {...},
  "created": "2025-01-15T10:30:00Z"
}

Error Responses

Order Not Found (404)

{
  "error": "Order Model not found"
}

Missing ID Parameter (400)

{
  "message": "Param not send!"
}

Example Request

curl -X PUT "https://api.luxmart.site/v1/products/order/store/?id=1" \
  -H "Authorization: Token your_access_token"

Notes

  • Order must belong to the authenticated store
  • Order must have successful payment (payment_status: "1")
  • Status progression:
  • "1" (Pending) → "2" (Processing)
  • "2" (Processing) → "3" (Ready)
  • "3" (Ready) → "4" (Shipped - moves to admin control)
  • Once status reaches "4", it can only be updated by admin