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_typeis the merchant’s choice and read only. Withfixed, every order paysfixed_costand the areas’ costs are not used.- Changing the
countryreplaces 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_foundfor 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. A503does count, as the change may have happened. - The fourth change answers
429withRetry-Afterin seconds, and never reaches the store: