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

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

Create import

POST/admin/v1/stores/{store_id}/imports
  • يدعم Idempotency-Key

Start an import of products, customers or stock: returns the import and a URL to PUT the file to (CSV or Excel, up to 50 MB, with the returned headers). Then call …/analyze. Requires the resource's write permission (products:write, customers:write, inventory:write).

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

  • store_idstringمطلوب

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

الترويسات

  • Idempotency-Keystring

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

  • shop-api-versionYYYY-MM

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

الجسم

  • resourceenumمطلوب

    What an import brings in.

    • products
    • customers
    • inventory
    • orders
  • filenamestringمطلوب
  • size_bytesintegerمطلوب

    Up to 50 MB.

  • optionsobject · أو null

    Choices staff make before starting.

ما يُرجعه

201 Created; upload the file.

الأخطاء

  • 403forbiddenMissing permission.
  • 422validation_failedNo name, empty, or over 50 MB.