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

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

Update checkout settings

PUT/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 · أو null

    ETag from the last read, e.g. "v3"

  • shop-api-versionYYYY-MM

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

الجسم

  • layoutenum · أو null

    Every section on one page, or Information, Delivery and Payment as three steps.

    • one_page
    • three_steps
  • landmark_modeenum · أو null

    Whether checkout asks for a landmark where the country's address has one.

    • optional
    • required
  • location_modeenum · أو null

    Whether checkout asks for a map pin where the country's address has one.

    • off
    • optional
    • required
  • saudi_location_modeenum · أو null

    Whether checkout asks for a map pin where the country's address has one.

    • off
    • optional
    • required
  • short_address_modeenum · أو null

    Whether checkout offers the National Address short-code lookup on Saudi addresses.

    • off
    • optional
  • minimum_order_amountinteger · أو null

    In the store currency's minor units; 0 for none.

  • fieldsarray of objects · أو null

    Replaces every field; up to 10.

  • business_buyersenum · أو null

    Whether checkout asks business buyers for their company and VAT number.

    • off
    • optional

ما يُرجعه

200 The settings.

الأخطاء

  • 403forbiddenMissing permission.
  • 412precondition_failedThe settings changed since they were read.