Skip to main content
Scopes: read_shipping to read, write_shipping_areas to change (it includes read_shipping).

Settings and areas

A store ships within one country. Its areas are the places the shopper picks at checkout: for most countries, the governorates. Each area has a shipping cost.
  • cost_type is the merchant’s choice and read only. With fixed, every order pays fixed_cost and the areas’ costs are not used.
  • Changing the country replaces every area with the new country’s: shown, and costing zero (or the fixed cost). In Egypt, Cairo, Giza and Alexandria come first.

The area

  • A store has at most 250 areas (422 limit_exceeded). A country with more governorates than that cannot be chosen.
  • List areas answers them all, in the order the shopper sees them, with no pagination.
  • An area’s ID can change when the merchant saves the list from their dashboard. If a write answers 404 not_found for an area, read the list again.

Daily limit

An app can change a store’s shipping 3 times a day, counted in Cairo days (midnight to midnight, Africa/Cairo). Settings and area changes count together: updating settings, updating areas, adding, deleting and reordering.
  • The count is per app per store: another app is not blocked by yours, and reading is not limited.
  • A refused request doesn’t count, and neither does a replay of an Idempotency-Key. A 503 does count, as the change may have happened.
  • The fourth change answers 429 with Retry-After in seconds, and never reaches the store:
So batch your changes: Update areas changes up to 250 areas in one request.

When writes meet

Each write is one step on the store’s shipping: two apps writing at the same time never undo each other. The merchant’s dashboard saves the whole list, so if the merchant saves at the same moment, the last save wins.

Changes show at once

The store’s checkout shows a change right away. Shipping changes send no events.