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

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

Put cart gift card details

PUT/store/v1/carts/{cart_id}/gift-card-details

    Write who the cart's gift cards are for, who gives them and a message; the cards the order issues carry them, and the code is emailed to the recipient. Empty details remove them.

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

    • cart_idstringمطلوب

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

    الترويسات

    • X-Cart-Tokenstringمطلوب

      The cart's token

    • shop-api-versionYYYY-MM

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

    الجسم

    • recipient_emailstring · أو null

      Where the code is emailed when the order is paid.

    • recipient_namestring · أو null

      Up to 80 characters.

    • sender_namestring · أو null

      Up to 80 characters ("From Faisal").

    • messagestring · أو null

      Up to 500 characters, shown in the email.

    ما يُرجعه

    200 Saved, trimmed.

    الأخطاء

    • 404not_foundNo such cart, or a wrong token.
    • 422validation_failedToo long, or not an email address.