لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Put cart gift card details
PUT
/ store/ v1/ carts/ {cart_id}/ gift-card-detailsWrite 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 · أو nullWhere the code is emailed when the order is paid.
recipient_namestring · أو nullUp to 80 characters.
sender_namestring · أو nullUp to 80 characters ("From Faisal").
messagestring · أو nullUp to 500 characters, shown in the email.
ما يُرجعه
200 Saved, trimmed.
الأخطاء
- 404
not_foundNo such cart, or a wrong token. - 422
validation_failedToo long, or not an email address.