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

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

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.

الأخطاء

  • 404not_foundNo such customer.
  • 409The same customer twice.