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

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

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 · أو null

    The code the reminder offered (discount in the link); applied when it still applies.

ما يُرجعه

200 The reopened cart and its new token.

الأخطاء

  • 404not_foundUnknown cart or wrong token.
  • 409The cart already placed an order (cart_completed).