لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Update supplier
PUT
/ admin/ v1/ stores/ {store_id}/ inventory/ suppliers/ {supplier_id}- inventory:write
Change a supplier: every field replaced. Send If-Match: "v{version}" to avoid overwriting someone else's change.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.supplier_idstringمطلوبمعرّف من نوع
supl، مثلsupl_01k8qs5s….
الترويسات
If-Matchstring · أو nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
namestringمطلوب1–120 characters, unique among suppliers in use.
contact_namestring · أو nullemailstring · أو nullphonestring · أو nulladdressstring · أو nullUp to 500 characters; line breaks are kept.
currency_codestring · أو nullThree letters; blank for the store's currency.
notestring · أو nullUp to 2,000 characters.
ما يُرجعه
200 The supplier.
الأخطاء
- 404
not_foundNo such supplier. - 409Another supplier has this name.
- 412
precondition_failedThe supplier changed since it was read. - 422
validation_failedValidation failed.