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

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

Update customer

PATCH/admin/v1/stores/{store_id}/customers/{customer_id}
  • customers:write

Partially update a customer. Send If-Match: "v{version}" to avoid overwriting someone else's changes.

معاملات المسار

  • store_idstringمطلوب

    معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

  • customer_idstringمطلوب

    معرّف من نوع cus، مثل cus_01k8qs5s….

الترويسات

  • If-Matchstring · أو null

    ETag from the last read, e.g. "v3"

  • shop-api-versionYYYY-MM

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

الجسم

  • emailstring · أو null
  • phonestring · أو null
  • first_namestring · أو null
  • last_namestring · أو null
  • localestring · أو null
  • tagsarray of strings · أو null

    Replaces all tags.

  • notestring · أو null
  • email_marketingboolean · أو null

ما يُرجعه

200 Updated customer.

الأخطاء

  • 404not_foundNo such customer.
  • 409Email already used by another customer.
  • 412precondition_failedThe customer changed since it was read.
  • 422validation_failedValidation failed.