لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Recover cart
POST
/ store/ v1/ carts/ {cart_id}/ recover- يدعم Idempotency-Key
Reopen a cart from its recovery link (/checkouts/{cart_id}/recover?token=…&discount=… in reminders). The cart gets a new token, returned here: the old one stops working. A payment left in progress is cancelled, and the reminder's discount code is applied when it still applies.
معاملات المسار
cart_idstringمطلوبمعرّف من نوع
cart، مثلcart_01k8qs5s….
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
tokenstringمطلوبdiscount_codestring · أو nullThe code the reminder offered (
discountin the link); applied when it still applies.
ما يُرجعه
200 The reopened cart and its new token.
الأخطاء
- 404
not_foundUnknown cart or wrong token. - 409The cart already placed an order (
cart_completed).