لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
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 · أو nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
emailstring · أو nullphonestring · أو nullfirst_namestring · أو nulllast_namestring · أو nulllocalestring · أو nulltagsarray of strings · أو nullReplaces all tags.
notestring · أو nullemail_marketingboolean · أو null
ما يُرجعه
200 Updated customer.
الأخطاء
- 404
not_foundNo such customer. - 409Email already used by another customer.
- 412
precondition_failedThe customer changed since it was read. - 422
validation_failedValidation failed.