لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
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
locprefix.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 · أو nullFor
radius: 0.1–200.polygonarray of objects · أو nullFor
polygon: 3–50 points.placesarray of strings · أو nullFor
places: city or district names as customers write them.postal_codesarray of strings · أو nullFor
postal_codes.
ما يُرجعه
201 The new area.
الأخطاء
- 403
forbiddenMissing permission. - 409The store has 50 areas.
- 422
validation_failedValidation failed.