Create local delivery area
POST
/ admin/ v1/ stores/ {store_id}/ shipping/ local-delivery-areas- settings:write
- Idempotency-Key supported
Add a local delivery area after the others (50 at most).
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
location_idstringrequiredTypeID with the
locprefix.namestringrequiredkindenumrequiredThe shape of an area.
- radius
- polygon
- places
- postal_codes
priceobjectrequiredAn exact amount of money in the currency's minor unit (halalas, cents, fils…).
radius_kmnumber · or nullFor
radius: 0.1–200.polygonarray of objects · or nullFor
polygon: 3–50 points.placesarray of strings · or nullFor
places: city or district names as customers write them.postal_codesarray of strings · or nullFor
postal_codes.
Returns
201 The new area.
Errors
- 403
forbiddenMissing permission. - 409The store has 50 areas.
- 422
validation_failedValidation failed.