لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Merge customers
POST
/ admin/ v1/ stores/ {store_id}/ customers/ {customer_id}/ merge- customers:write
- يدعم Idempotency-Key
Merge another record of the same person into this customer: orders, carts, addresses, points, store credit, reviews, subscriptions and the rest move here; tags and notes join; the stricter of each consent stays; the other record goes.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.customer_idstringمطلوبThe customer kept
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
merged_customer_idstringمطلوبThe record merged into this one; it goes.
ما يُرجعه
200 Merged.
الأخطاء
- 404
not_foundNo such customer. - 409The same customer twice.