Orders
Update Order
Correct the customer's details, the amounts or the notes of an order that is not shipped yet. Send only the fields to change; an order.updated webhook follows.
PATCH
https://rassmi.com/api/v1/orders/{order}
Authorization
-
Authorizationheaderrequired
Bearer rsk_…: the store's API key, from API Key in your Rassmi dashboard.
Path parameters
-
order string required
The order ID.
Body
-
customer_name string
Up to 255 characters.
-
customer_phone string
Any common format; stored as
0XXXXXXXXX. -
customer_address string
Up to 500 characters.
-
customer_wilaya string
Wilaya code or name.
-
customer_commune string
Commune ID or name.
-
total_amount number
In DZD.
-
shipping_fee number
In DZD.
-
notes string
Up to 1,000 characters;
nullclears them.
Responses
| Status | Meaning |
|---|---|
200 | Success. The body is shown on the right. |
404 | No such resource in this store. |
422 | Validation failed, or the order is shipped, delivered or returned. |
401 | Missing, unknown, paused or expired API key. |
429 | More than 60 requests in a minute. See Rate limits. |