Reference
Orders
Orders from every channel, with their lines and recipient.
- GET
/ordersList orders - POST
/ordersPlace an order - GET
/orders/{order_id}Get an order - POST
/orders/quoteQuote an order
The Order object
idstringnumberinteger- The order number the merchant sees.
statusstring- pending | processing | shipped | delivered | cancelled | returned
sourcestring · can be null- internal | website | landing_page | cashier | lead_form | sales_agent | api
payment_statusstring · can be null- unpaid | paid | partial | refunded
payment_methodstring · can be nullpaid_onlinebooleancustomer_idstring · can be nullrecipientOrderRecipientrecipient.namestring · can be nullrecipient.phonestring · can be nullrecipient.phone_2string · can be nullrecipient.emailstring · can be nullrecipient.citystring · can be nullrecipient.addressstring · can be nullrecipient.address_2string · can be nullrecipient.postal_codestring · can be nullrecipient.city_idstring · can be null- The delivery company's city id, when the store delivers with one.
recipient.region_idstring · can be null- The delivery company's zone id, when the store delivers with one.
notesstring · can be nulllinesarray of OrderLinelines[].idstringlines[].item_idstring · can be null- null when the item was deleted later.
lines[].variant_idstring · can be nulllines[].namestringlines[].variantstring · can be nulllines[].skustring · can be nulllines[].quantityinteger- Pieces.
lines[].unit_pricenumberlines[].totalnumberlines[].parent_line_idstring · can be null- Set on the contents of a bundle: the bundle's own line carries the price.
lines[].customizationsarray of OrderLineChoicelines[].customizations[].groupstring · can be nulllines[].customizations[].choicestring · can be nulllines[].customizations[].pricenumber · can be nulllines[].notesstring · can be nulllines[].packLinePack · can be null- Set on a line sold in packs;
quantitystays the pieces. lines[].pack.namestring- e.g. "Box of 12".
lines[].pack.quantityinteger- Units in one pack.
lines[].pack.countinteger- Packs on the line:
unit_priceis one pack,total= count × unit_price. subtotalnumber- Sum of the lines.
shippingnumberdiscountnumber- Every discount together (manual, promo code, points).
taxnumberextra_amountnumber- An extra amount the merchant added to the order.
totalnumbertracking_numberstring · can be nullcreated_atstring · can be nullupdated_atstring · can be null
List orders
GET/orders
Scope: orders.read
Newest first, each order with its lines.
A date without a time (2026-01-31) is read as the start of that day in the store's timezone.
Parameters
limitquery · integer- default 50, 1–100
cursorquery · stringnext_cursorof the page before.statusquery · string- One status, or several separated by commas.
created_fromquery · string- Orders created at or after this time.
created_toquery · string- Orders created before this time.
updated_sincequery · string- Only orders changed at or after this time.
customer_idquery · stringnumberquery · integer- The order number the merchant sees.
phonequery · string- The recipient's phone (first or second), in any spelling:
0770 123 4567,+964770…. For a shopper asking "where is my order?"
curl https://api.akkad.io/v1/orders \
-H "Authorization: Bearer akk_live_..."{
"data": [
{
"id": "3f2a9c1e-…",
"number": 1042,
"status": "pending",
"source": "internal",
"payment_status": "unpaid",
"payment_method": "…",
"paid_online": false,
"customer_id": "3f2a9c1e-…",
"recipient": {
"name": "…",
"phone": "…",
"phone_2": "…",
"email": "…",
"city": "…",
"address": "…",
"address_2": "…",
"postal_code": "…",
"city_id": "3f2a9c1e-…",
"region_id": "3f2a9c1e-…"
},
"notes": "…",
"lines": [
{
"id": "3f2a9c1e-…",
"item_id": "3f2a9c1e-…",
"variant_id": "3f2a9c1e-…",
"name": "…",
"variant": "…",
"sku": "SKU-001",
"quantity": 1,
"unit_price": 12500,
"total": 25000,
"parent_line_id": "3f2a9c1e-…",
"customizations": [
{
"group": "…",
"choice": "…",
"price": 12500
}
],
"notes": "…",
"pack": {
"name": "…",
"quantity": 1,
"count": 12
}
}
],
"subtotal": 25000,
"shipping": 0,
"discount": 0,
"tax": 0,
"extra_amount": 0,
"total": 25000,
"tracking_number": "…",
"created_at": "2026-01-31T10:00:00Z",
"updated_at": "2026-01-31T10:00:00Z"
}
],
"next_cursor": null
}Place an order
POST/orders
Scope: orders.write
Places an order in the store, priced by the store: every line at the item's price in Akkad, delivery by the store's own rules, its offers and the promo code. When that total is not expected_total, nothing is placed and the answer is 409 total_changed with the right total.
The order arrives as pending (the store confirms it; no stock is taken) or processing (confirmed; stock is taken at once). Either way it is refused when an item is short, unless the item takes pre-orders. payment_status: paid means your site already took the money — the store's courier then collects nothing.
Answers 201 with the new order, or 200 with the first one when the Idempotency-Key was used before.
Parameters
Idempotency-Keyquery · string · required- A unique id you make for this order (e.g. your own order id). Sending the same key again answers with the same order — never a second one — so a retry after a lost answer is safe.
curl https://api.akkad.io/v1/orders \
-H "Authorization: Bearer akk_live_..."nullGet an order
GET/orders/{order_id}
Scope: orders.read
Parameters
order_idin the path · string · required
curl https://api.akkad.io/v1/orders/<order_id> \
-H "Authorization: Bearer akk_live_..."{
"id": "3f2a9c1e-…",
"number": 1042,
"status": "pending",
"source": "internal",
"payment_status": "unpaid",
"payment_method": "…",
"paid_online": false,
"customer_id": "3f2a9c1e-…",
"recipient": {
"name": "…",
"phone": "…",
"phone_2": "…",
"email": "…",
"city": "…",
"address": "…",
"address_2": "…",
"postal_code": "…",
"city_id": "3f2a9c1e-…",
"region_id": "3f2a9c1e-…"
},
"notes": "…",
"lines": [
{
"id": "3f2a9c1e-…",
"item_id": "3f2a9c1e-…",
"variant_id": "3f2a9c1e-…",
"name": "…",
"variant": "…",
"sku": "SKU-001",
"quantity": 1,
"unit_price": 12500,
"total": 25000,
"parent_line_id": "3f2a9c1e-…",
"customizations": [
{
"group": "…",
"choice": "…",
"price": 12500
}
],
"notes": "…",
"pack": {
"name": "…",
"quantity": 1,
"count": 12
}
}
],
"subtotal": 25000,
"shipping": 0,
"discount": 0,
"tax": 0,
"extra_amount": 0,
"total": 25000,
"tracking_number": "…",
"created_at": "2026-01-31T10:00:00Z",
"updated_at": "2026-01-31T10:00:00Z"
}Quote an order
POST/orders/quote
Scope: orders.write
What the store would charge for these lines delivered to this city: each line's price, delivery from the store's own rules, its offers and the promo code, tax and the total. Moves nothing — call it on your checkout page, then send the total back as expected_total.
Prices always come from the store (the items in Akkad); stock is checked only when the order is placed.
curl https://api.akkad.io/v1/orders/quote \
-H "Authorization: Bearer akk_live_..."{
"currency": "IQD",
"lines": [
{
"item_id": "3f2a9c1e-…",
"variant_id": "3f2a9c1e-…",
"name": "…",
"variant": "…",
"quantity": 1,
"unit_price": 12500,
"total": 25000,
"pack": {
"name": "…",
"quantity": 1,
"count": 12
}
}
],
"subtotal": 25000,
"shipping": 0,
"discount": 0,
"tax": 0,
"total": 25000
}Every path is under https://api.akkad.io/v1.