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

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

Create export

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

Prepare a CSV file of products, customers, stock or orders (UTF-8, readable by Excel; the product and customer files use Shopify's columns and import back here). Poll the export for its download link. Requires the resource's read permission.

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

  • store_idstringمطلوب

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

الترويسات

  • Idempotency-Keystring

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

  • shop-api-versionYYYY-MM

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

الجسم

  • resourceenumمطلوب

    What an export writes out.

    • products
    • customers
    • inventory
    • orders
  • placed_fromdate · أو null

    Orders: placed on or after this day (store time zone).

  • placed_todate · أو null

    Orders: placed on or before this day.

  • order_queryobject

    Orders: the list's filters, exactly as GET /orders takes them.

  • order_idsarray of strings

    Orders: only these, as selected in the list (at most 1,000).

ما يُرجعه

202 Being prepared.

الأخطاء

  • 403forbiddenMissing permission.
  • 422validation_failedThe end date is before the start date.