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

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

Save a product to the wishlist (up to 100)

POST/store/v1/customers/me/wishlist
  • يدعم Idempotency-Key

Save a product to the wishlist (up to 100). Saving it again keeps it, with the variant if one is given. A store with wishlists off answers 409 wishlist_off.

الترويسات

  • X-Customer-Tokenstringمطلوب

    Customer session token

  • Idempotency-Keystring

    أرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.

  • shop-api-versionYYYY-MM

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

الجسم

  • product_idstringمطلوب

    TypeID with the prod prefix.

  • variant_idstring · أو null

    The size or colour chosen, if any.

ما يُرجعه

204 Saved.

الأخطاء

  • 401unauthenticatedNo valid customer session.
  • 409The store has wishlists off.
  • 422validation_failedThe wishlist is full.