انتقل إلى المحتوى
القائمة
كل مجموعات الواجهة

Imports

CSV / Excel / Google Sheets / feed imports.

5 نقاط وصول. أسماء نقاط الوصول وأوصافها مأخوذة من ملف OpenAPI، لذلك تظهر بالإنجليزية.

GET/v1/imports

List imports

يحتاج إلى مفتاح أو جلسة في لوحة التحكم

المعاملات

الاسمالموضعالنوعإلزاميالوصف
cursorquerystring | nullلاmax length 200
limitqueryintegerلاdefault 20 · min 1 · max 200

الردود

POST/v1/imports

Start an import from a URL (Google Sheets, Google Merchant feed)

يحتاج إلى مفتاح أو جلسة في لوحة التحكم

المعاملات

الاسمالموضعالنوعإلزاميالوصف
Idempotency-Keyheaderstring | nullلاUnique per logical write (8-255 chars). Retries with the same key are safe. · pattern ^[A-Za-z0-9_\-:.]{8,255}$

جسم الطلب application/json ImportCreate

الاسمالنوعإلزاميالوصف
source"csv" | "xlsx" | "gsheet" | "feed_google"نعم
urlstring | nullلاGoogle Sheets or feed URL.max length 2048
mappingmap<string, string>لاColumn -> product field, e.g. {"Product name": "name.ar", "Price": "price", "Colour": "attributes.Color", "Notes": "ignore"}. Columns without a mapping are matched by name.
dry_runbooleanلاdefault false
localestring | nullلاLanguage of untagged text (a plain `name` column, feed titles). Default: the store's default language.pattern ^[a-z]{2}$
repeat"hourly" | "daily" | nullلاURL imports only: run the same import again every hour or every day.

الردود

POST/v1/imports/upload

Start an import from a CSV or Excel file

يحتاج إلى مفتاح أو جلسة في لوحة التحكم

المعاملات

الاسمالموضعالنوعإلزاميالوصف
Idempotency-Keyheaderstring | nullلاUnique per logical write (8-255 chars). Retries with the same key are safe. · pattern ^[A-Za-z0-9_\-:.]{8,255}$

جسم الطلب multipart/form-data Body_imports_upload

الاسمالنوعإلزاميالوصف
filestringنعم
source"csv" | "xlsx" | "gsheet" | "feed_google"نعم
dry_runbooleanلاdefault false
mappingstring | nullلاJSON object, column -> product field (see ImportCreate).max length 20000
localestring | nullلاpattern ^[a-z]{2}$

الردود

GET/v1/imports/{import_id}

Get one import

يحتاج إلى مفتاح أو جلسة في لوحة التحكم

المعاملات

الاسمالموضعالنوعإلزاميالوصف
import_idpathstringنعم

الردود

PATCH/v1/imports/{import_id}

Change or stop a repeating URL import

يحتاج إلى مفتاح أو جلسة في لوحة التحكم

المعاملات

الاسمالموضعالنوعإلزاميالوصف
import_idpathstringنعم
Idempotency-Keyheaderstring | nullلاUnique per logical write (8-255 chars). Retries with the same key are safe. · pattern ^[A-Za-z0-9_\-:.]{8,255}$

جسم الطلب application/json ImportUpdate

الاسمالنوعإلزاميالوصف
repeat"hourly" | "daily" | nullلا

الردود

أشكال البيانات في هذه الصفحة

Page_ImportOut_

الاسمالنوعإلزاميالوصف
dataImportOut[]نعم
next_cursorstring | nullلا
totalinteger | nullلاPresent when cheap to count.

ImportOut

الاسمالنوعإلزاميالوصف
idstringنعم
source"csv" | "xlsx" | "gsheet" | "feed_google" | "connector" | "api"نعم
status"queued" | "running" | "succeeded" | "failed" | "canceled"نعم
statsmap<string, integer>لا
errorsItemError[]لا
created_atstring (date-time)نعم
finished_atstring (date-time) | nullلا
jobJob | nullلا
source_urlstring | nullلا
filenamestring | nullلا
localestring | nullلا
dry_runbooleanلاdefault false
repeat"hourly" | "daily" | nullلا
next_run_atstring (date-time) | nullلا
parent_idstring | nullلاThe repeating import that started this run.
started_atstring (date-time) | nullلا

ItemError

الاسمالنوعإلزاميالوصف
idstring | nullلا
indexintegerنعم
codestringنعم
messagestringنعم

Job

A row of the shared `jobs` table. Poll GET /v1/jobs/{id} until status is terminal.

الاسمالنوعإلزاميالوصف
idstringنعم
kind"reindex" | "import" | "sync" | "translate_backfill" | "translate_writeback" | "export" | "data_export" | "data_delete" | "embed" | "synonym_mining"نعم
status"queued" | "running" | "succeeded" | "failed" | "canceled"نعم
progressnumberلاdefault 0 · min 0 · max 1
created_atstring (date-time)نعم
started_atstring (date-time) | nullلا
finished_atstring (date-time) | nullلا
resultobject | nullلا
errorstring | nullلا

ImportCreate

For file imports send multipart/form-data with `file` + `source`; for URLs send this JSON.

الاسمالنوعإلزاميالوصف
source"csv" | "xlsx" | "gsheet" | "feed_google"نعم
urlstring | nullلاGoogle Sheets or feed URL.max length 2048
mappingmap<string, string>لاColumn -> product field, e.g. {"Product name": "name.ar", "Price": "price", "Colour": "attributes.Color", "Notes": "ignore"}. Columns without a mapping are matched by name.
dry_runbooleanلاdefault false
localestring | nullلاLanguage of untagged text (a plain `name` column, feed titles). Default: the store's default language.pattern ^[a-z]{2}$
repeat"hourly" | "daily" | nullلاURL imports only: run the same import again every hour or every day.

Body_imports_upload

الاسمالنوعإلزاميالوصف
filestringنعم
source"csv" | "xlsx" | "gsheet" | "feed_google"نعم
dry_runbooleanلاdefault false
mappingstring | nullلاJSON object, column -> product field (see ImportCreate).max length 20000
localestring | nullلاpattern ^[a-z]{2}$

ImportUpdate

Change a repeating URL import. `repeat: null` stops it.

الاسمالنوعإلزاميالوصف
repeat"hourly" | "daily" | nullلا