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

Catalog

Products, reindex, attributes.

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

POST/v1/products/batch

Upsert and delete products (max 1,000 per call, idempotent)

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

المعاملات

الاسمالموضعالنوعإلزاميالوصف
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 ProductBatchRequest

الاسمالنوعإلزاميالوصف
upsertProductIn-Input[]لا
deletestring[]لاProduct ids to delete.
replace_allbooleanلاFull sync: after this batch (with sync_id complete), delete products not sent.default false
sync_idstring | nullلاGroups batches of one full sync.max length 64
sync_completebooleanلاdefault false

الردود

GET/v1/products

List products

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

المعاملات

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

الردود

GET/v1/products/{product_id}

Get one product

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

المعاملات

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

الردود

DELETE/v1/products/{product_id}

Delete one product

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

المعاملات

الاسمالموضعالنوعإلزاميالوصف
product_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}$

الردود

POST/v1/reindex

Rebuild the search index from stored products (zero downtime)

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

المعاملات

الاسمالموضعالنوعإلزاميالوصف
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 ReindexRequest

الاسمالنوعإلزاميالوصف
mode"full" | "settings_only"لاdefault "full"
reasonstring | nullلاmax length 200

الردود

GET/v1/attributes

Attributes found in the catalog

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

الردود

GET/v1/attributes/mapping

Attribute normalization mapping

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

الردود

PUT/v1/attributes/mapping

Replace the attribute mapping (triggers a reindex)

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

المعاملات

الاسمالموضعالنوعإلزاميالوصف
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 AttributeMappingUpdate

الاسمالنوعإلزاميالوصف
itemsAttributeMappingItem[]نعم

الردود

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

ProductBatchRequest

Upsert and delete in one call. Max 1,000 items in total. Same body again = no change (idempotent).

الاسمالنوعإلزاميالوصف
upsertProductIn-Input[]لا
deletestring[]لاProduct ids to delete.
replace_allbooleanلاFull sync: after this batch (with sync_id complete), delete products not sent.default false
sync_idstring | nullلاGroups batches of one full sync.max length 64
sync_completebooleanلاdefault false

ProductIn-Input

One product, as sent to POST /v1/products:batch (upsert).

الاسمالنوعإلزاميالوصف
idstringنعمThe store's own product id.min length 1 · max length 128
nameobjectنعم
descriptionobjectلا
brandstring | nullلاmax length 200
modelstring | nullلاmax length 200
skustring | nullلاmax length 200
gtinstring | nullلاmax length 50
urlstring | nullلاmax length 2048
image_urlstring | nullلاmax length 2048
pricenumber | stringنعمmin 0
sale_pricenumber | string | nullلاmin 0
currencystringنعمISO 4217, e.g. USD, SAR, AED.pattern ^[A-Z]{3}$
in_stockbooleanلاdefault true
stock_qtyinteger | nullلاmin 0
categoriesCategoryRef[]لا
attributesmap<string, string | integer | number | boolean | string[]>لاRaw attributes as the store has them, e.g. {'Size': 'M', 'Color': 'Black'}.
tagsstring[]لا
popularitynumber | nullلاBusiness signal, opt-in.min 0
marginnumber | nullلاBusiness signal, opt-in. Never shown.
visiblebooleanلاdefault true
updated_atstring (date-time) | nullلا
extraobjectلاOpaque. Returned as is.

CategoryRef

One category the product belongs to, with its full path from the root.

الاسمالنوعإلزاميالوصف
idstringنعمmin length 1 · max length 128
pathobject[]نعمRoot first. Each level is {lang: name}.

ProductBatchResult

الاسمالنوعإلزاميالوصف
upsertedintegerنعم
unchangedintegerنعم
deletedintegerنعم
errorsItemError[]لا
visible_within_snumberلاUpserts are searchable within this time.default 5

ItemError

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

Page_ProductOut_

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

ProductOut

الاسمالنوعإلزاميالوصف
idstringنعم
productProductIn-Outputنعم
content_hashstringنعم
created_atstring (date-time)نعم
updated_atstring (date-time)نعم
indexed_atstring (date-time) | nullلا

ProductIn-Output

One product, as sent to POST /v1/products:batch (upsert).

الاسمالنوعإلزاميالوصف
idstringنعمThe store's own product id.min length 1 · max length 128
nameobjectنعم
descriptionobjectلا
brandstring | nullلاmax length 200
modelstring | nullلاmax length 200
skustring | nullلاmax length 200
gtinstring | nullلاmax length 50
urlstring | nullلاmax length 2048
image_urlstring | nullلاmax length 2048
pricestringنعم
sale_pricestring | nullلا
currencystringنعمISO 4217, e.g. USD, SAR, AED.pattern ^[A-Z]{3}$
in_stockbooleanلاdefault true
stock_qtyinteger | nullلاmin 0
categoriesCategoryRef[]لا
attributesmap<string, string | integer | number | boolean | string[]>لاRaw attributes as the store has them, e.g. {'Size': 'M', 'Color': 'Black'}.
tagsstring[]لا
popularitynumber | nullلاBusiness signal, opt-in.min 0
marginnumber | nullلاBusiness signal, opt-in. Never shown.
visiblebooleanلاdefault true
updated_atstring (date-time) | nullلا
extraobjectلاOpaque. Returned as is.

Deleted

الاسمالنوعإلزاميالوصف
deletedbooleanلاdefault true
idstringنعم

ReindexRequest

الاسمالنوعإلزاميالوصف
mode"full" | "settings_only"لاdefault "full"
reasonstring | nullلاmax length 200

Accepted

الاسمالنوعإلزاميالوصف
acceptedbooleanلاdefault true
jobJob | nullلا

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لا

AttributeInfo

الاسمالنوعإلزاميالوصف
raw_namestringنعم
canonical_namestring | nullلا
productsintegerنعمHow many products have it.
sample_valuesstring[]لا
facetbooleanلاdefault false
unitstring | nullلا

AttributeMapping

الاسمالنوعإلزاميالوصف
itemsAttributeMappingItem[]نعم
updated_atstring (date-time) | nullلا

AttributeMappingItem

الاسمالنوعإلزاميالوصف
raw_namestringنعمmax length 200
canonical_namestringنعمmax length 100
unitstring | nullلاmax length 20
value_mapmap<string, string>لاe.g. {"Med": "M", "Navy Blue": "Navy"}
facetbooleanلاdefault true

AttributeMappingUpdate

الاسمالنوعإلزاميالوصف
itemsAttributeMappingItem[]نعم