انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

Create local delivery area

POST/admin/v1/stores/{store_id}/shipping/local-delivery-areas
  • settings:write
  • يدعم Idempotency-Key

Add a local delivery area after the others (50 at most).

معاملات المسار

  • store_idstringمطلوب

    معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

الترويسات

  • Idempotency-Keystring

    أرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.

  • shop-api-versionYYYY-MM

    الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

الجسم

  • location_idstringمطلوب

    TypeID with the loc prefix.

  • namestringمطلوب
  • kindenumمطلوب

    The shape of an area.

    • radius
    • polygon
    • places
    • postal_codes
  • priceobjectمطلوب

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

  • radius_kmnumber · أو null

    For radius: 0.1–200.

  • polygonarray of objects · أو null

    For polygon: 3–50 points.

  • placesarray of strings · أو null

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

  • postal_codesarray of strings · أو null

    For postal_codes.

ما يُرجعه

201 The new area.

الأخطاء

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