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

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

Create supplier

POST/admin/v1/stores/{store_id}/inventory/suppliers
  • inventory:write
  • يدعم Idempotency-Key

Add a supplier.

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

  • store_idstringمطلوب

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

الترويسات

  • Idempotency-Keystring

    أرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.

  • 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.

ما يُرجعه

201 The supplier.

الأخطاء

  • 403forbiddenMissing permission.
  • 409Another supplier has this name.
  • 422validation_failedValidation failed.