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

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

Set country

PUT/store/v1/carts/{cart_id}/country

    Price the cart for buyers in another country (the storefront's country selector): its market's currency and prices, until the cart has a shipping address, whose country then decides. null returns it to the primary market.

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

    • cart_idstringمطلوب

      معرّف من نوع cart، مثل cart_01k8qs5s….

    الترويسات

    • X-Cart-Tokenstringمطلوب

      The cart's token

    • shop-api-versionYYYY-MM

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

    الجسم

    • countrystring · أو null

      ISO 3166-1 alpha-2, e.g. AE; null: the primary market.

    ما يُرجعه

    200 The repriced cart.

    الأخطاء

    • 404not_foundNo such cart.
    • 409A payment is in progress, or the cart is completed.
    • 422validation_failedNot a country.