AkkadAkkadDevelopers

Reference

Shipping

The delivery company's cities and zones, for orders.

The ShippingCities object

zones_requiredboolean
true: the store delivers with a company that works by zones — send recipient.city_id and recipient.region_id from these lists with every order. false: send the city and address as text; cities is empty.
citiesarray of ShippingPlace
cities[].idstring
cities[].namestring

Delivery cities

GET/shipping/cities

Scope: orders.write

The cities of the delivery company the store is connected to.

When zones_required is true, send recipient.city_id and recipient.region_id from these lists with every order — your site or agent lets the shopper pick them; Akkad never guesses them. An order without them still arrives, and the store picks the zone by hand. The lists are the delivery company's: when the store changes company, the ids change too.

Request
curl https://api.akkad.io/v1/shipping/cities \
  -H "Authorization: Bearer akk_live_..."
Response · One ShippingCities object.
{
  "zones_required": false,
  "cities": [
    {
      "id": "3f2a9c1e-…",
      "name": "…"
    }
  ]
}

Zones of a city

GET/shipping/cities/{city_id}/regions

Scope: orders.write

The delivery company's zones in one city (its id from GET /shipping/cities).

Parameters

city_idin the path · string · required
Request
curl https://api.akkad.io/v1/shipping/cities/<city_id>/regions \
  -H "Authorization: Bearer akk_live_..."
Response · One ShippingCities object.
{
  "regions": [
    {
      "id": "3f2a9c1e-…",
      "name": "…"
    }
  ]
}

Every path is under https://api.akkad.io/v1.