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

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

Set cart attributes

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

    Answer the store's checkout fields (GET /checkout/asks). Required ones must be answered before paying.

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

    • cart_idstringمطلوب

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

    الترويسات

    • X-Cart-Tokenstringمطلوب

      The cart's token

    • shop-api-versionYYYY-MM

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

    الجسم

    • attributesobjectمطلوب

      By field key: the answer as text (true for a ticked box, YYYY-MM-DD for a date, the option's value for a choice); null or empty clears it. Keys left out stay as they are.

    ما يُرجعه

    200 The updated cart.

    الأخطاء

    • 404not_foundNo such cart.
    • 409A payment is in progress, or the cart is completed.
    • 422validation_failedA key the store doesn't ask, or an answer that doesn't fit its field.