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

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

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 · أو null

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

  • shop-api-versionYYYY-MM

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

الجسم

  • namestringمطلوب

    1–120 characters, unique among suppliers in use.

  • contact_namestring · أو null
  • emailstring · أو null
  • phonestring · أو null
  • addressstring · أو null

    Up to 500 characters; line breaks are kept.

  • currency_codestring · أو null

    Three letters; blank for the store's currency.

  • notestring · أو null

    Up to 2,000 characters.

ما يُرجعه

200 The supplier.

الأخطاء

  • 404not_foundNo such supplier.
  • 409Another supplier has this name.
  • 412precondition_failedThe supplier changed since it was read.
  • 422validation_failedValidation failed.