لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Update checkout settings
/ admin/ v1/ stores/ {store_id}/ checkout-settings- settings:write
Change the checkout settings; parts left out stay as they are. Send If-Match: "v{version}" to avoid overwriting someone else's change.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
الترويسات
If-Matchstring · أو nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
layoutenum · أو nullEvery section on one page, or Information, Delivery and Payment as three steps.
- one_page
- three_steps
landmark_modeenum · أو nullWhether checkout asks for a landmark where the country's address has one.
- optional
- required
location_modeenum · أو nullWhether checkout asks for a map pin where the country's address has one.
- off
- optional
- required
saudi_location_modeenum · أو nullWhether checkout asks for a map pin where the country's address has one.
- off
- optional
- required
short_address_modeenum · أو nullWhether checkout offers the National Address short-code lookup on Saudi addresses.
- off
- optional
minimum_order_amountinteger · أو nullIn the store currency's minor units;
0for none.fieldsarray of objects · أو nullReplaces every field; up to 10.
business_buyersenum · أو nullWhether checkout asks business buyers for their company and VAT number.
- off
- optional
ما يُرجعه
200 The settings.
الأخطاء
- 403
forbiddenMissing permission. - 412
precondition_failedThe settings changed since they were read.