Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • location_idstringrequired

    TypeID with the loc prefix.

  • namestringrequired
  • kindenumrequired

    The shape of an area.

    • radius
    • polygon
    • places
    • postal_codes
  • priceobjectrequired

    An exact amount of money in the currency's minor unit (halalas, cents, fils…).

  • radius_kmnumber · or null

    For radius: 0.1–200.

  • polygonarray of objects · or null

    For polygon: 3–50 points.

  • placesarray of strings · or null

    For places: city or district names as customers write them.

  • postal_codesarray of strings · or null

    For postal_codes.

Returns

201 The new area.

Errors

  • 403forbiddenMissing permission.
  • 409The store has 50 areas.
  • 422validation_failedValidation failed.