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

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

Update local delivery area

PATCH/admin/v1/stores/{store_id}/shipping/local-delivery-areas/{area_id}
  • settings:write

Change a local delivery area.

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

  • store_idstringمطلوب

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

  • area_idstringمطلوب

    معرّف من نوع shr، مثل shr_01k8qs5s….

الترويسات

  • shop-api-versionYYYY-MM

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

الجسم

  • location_idstring · أو null

    TypeID with the loc prefix.

  • namestring · أو null
  • kindenum · أو null

    The shape of an area.

    • radius
    • polygon
    • places
    • postal_codes
  • radius_kmnumber · أو null
  • polygonarray of objects · أو null
  • placesarray of strings · أو null
  • postal_codesarray of strings · أو null
  • priceobject · أو null

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

ما يُرجعه

200 The area.

الأخطاء

  • 404not_foundNo such area.
  • 422validation_failedValidation failed.