لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Set the buyer's email (order emails)
PUT
/ store/ v1/ carts/ {cart_id}/ buyerSet the buyer's email (order emails), phone and marketing consent.
معاملات المسار
cart_idstringمطلوبمعرّف من نوع
cart، مثلcart_01k8qs5s….
الترويسات
X-Cart-TokenstringمطلوبThe cart's token
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
emailstringمطلوبphonestring · أو nullaccepts_marketingbooleanTicked "email me news and offers".
accepts_whatsapp_marketingbooleanTicked "send me offers on WhatsApp": its own agreement, kept only with a phone.
ما يُرجعه
200 The updated cart.
الأخطاء
- 404
not_foundNo such cart. - 409A payment is in progress, or the cart is completed.
- 422
validation_failedInvalid email or phone.