AkkadAkkadDevelopers

Reference

Orders

Orders from every channel, with their lines and recipient.

The Order object

idstring
numberinteger
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 null
paid_onlineboolean
customer_idstring · can be null
recipientOrderRecipient
recipient.namestring · can be null
recipient.phonestring · can be null
recipient.phone_2string · can be null
recipient.emailstring · can be null
recipient.citystring · can be null
recipient.addressstring · can be null
recipient.address_2string · can be null
recipient.postal_codestring · can be null
recipient.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 null
linesarray of OrderLine
lines[].idstring
lines[].item_idstring · can be null
null when the item was deleted later.
lines[].variant_idstring · can be null
lines[].namestring
lines[].variantstring · can be null
lines[].skustring · can be null
lines[].quantityinteger
Pieces.
lines[].unit_pricenumber
lines[].totalnumber
lines[].parent_line_idstring · can be null
Set on the contents of a bundle: the bundle's own line carries the price.
lines[].customizationsarray of OrderLineChoice
lines[].customizations[].groupstring · can be null
lines[].customizations[].choicestring · can be null
lines[].customizations[].pricenumber · can be null
lines[].notesstring · can be null
lines[].packLinePack · can be null
Set on a line sold in packs; quantity stays 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_price is one pack, total = count × unit_price.
subtotalnumber
Sum of the lines.
shippingnumber
discountnumber
Every discount together (manual, promo code, points).
taxnumber
extra_amountnumber
An extra amount the merchant added to the order.
totalnumber
tracking_numberstring · can be null
created_atstring · can be null
updated_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 · string
next_cursor of 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 · string
numberquery · 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?"
Request
curl https://api.akkad.io/v1/orders \
  -H "Authorization: Bearer akk_live_..."
Response · A page of Order objects.
{
  "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.
Request
curl https://api.akkad.io/v1/orders \
  -H "Authorization: Bearer akk_live_..."
Response · One Order object.
null

Get an order

GET/orders/{order_id}

Scope: orders.read

Parameters

order_idin the path · string · required
Request
curl https://api.akkad.io/v1/orders/<order_id> \
  -H "Authorization: Bearer akk_live_..."
Response · One Order object.
{
  "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.

Request
curl https://api.akkad.io/v1/orders/quote \
  -H "Authorization: Bearer akk_live_..."
Response · One Order object.
{
  "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.