Products API
Products, variants, stock and images. All requests need a secret key; see REST API for keys, errors and limits.
List the organization's products with their listing on each site
GET /v1/products
List the organization's products with their listing on each site (removed ones included)
Parameters
| Name | In | Type | Description |
|---|---|---|---|
cursor | query | string | |
limit | query | integer | |
sortBy | query | "createdAt" | |
sortDir | query | "asc" | "desc" | |
collection | query | string | Only products in this collection. 1 to 100 characters |
connectionId | query | id | Only products of this catalog connection. |
ids | query | string | Only these products: up to 100 comma-separated ids. |
notSold | query | "true" | "false" | true: only products with no active listing. |
q | query | string | Search: a listing title or the external id contains this, ignoring case. 1 to 100 characters |
unavailable | query | "true" | "false" | true: only products out of stock on a site that sells them. |
curl -X GET https://api.loomieo.com/v1/products \ -H "Authorization: Bearer $LUMIEO_KEY"Response 200
| Name | Type | Description |
|---|---|---|
paginationrequired | object | |
productsrequired | list of object |
Errors
401:auth_unauthenticated403:forbidden422:validation_failed429:rate_limited
Create a product in the built-in catalog
POST /v1/products
Create a product in the built-in catalog; without options it gets one default variant
Body
| Name | Type | Description |
|---|---|---|
collections | list of string | Collections it is in, by name (e.g. "New in"); catalog slides can follow a collection. up to 20 items |
images | list of uri | up to 8 items |
options | list of object | Options such as Size. Every combination of values is one variant; none gives one default variant. up to 3 items |
curl -X POST https://api.loomieo.com/v1/products \ -H "Authorization: Bearer $LUMIEO_KEY"Response 200
| Name | Type | Description |
|---|---|---|
productrequired | object |
Errors
400:bad_request401:auth_unauthenticated403:auth_csrf_rejected,forbidden,out_of_scope404:connection_not_found,product_not_found409:product_read_only422:validation_failed429:rate_limited
Add or remove collections on up to 100 built-in products at once
POST /v1/products/collections
Add or remove collections on up to 100 built-in products at once; synced products are skipped
Body
| Name | Type | Description |
|---|---|---|
idsrequired | list of id | up to 100 items |
add | list of string | Collections it is in, by name (e.g. "New in"); catalog slides can follow a collection. up to 20 items |
remove | list of string | Collections it is in, by name (e.g. "New in"); catalog slides can follow a collection. up to 20 items |
curl -X POST https://api.loomieo.com/v1/products/collections \ -H "Authorization: Bearer $LUMIEO_KEY" \ -H "Content-Type: application/json" \ -d '{"ids":[]}'Response 200
| Name | Type | Description |
|---|---|---|
productCollectionsrequired | object |
Errors
400:bad_request401:auth_unauthenticated403:auth_csrf_rejected,forbidden,out_of_scope422:validation_failed429:rate_limited
Import products from a CSV into the built-in catalog for one market
POST /v1/products/import
Import products from a CSV into the built-in catalog for one market: preview first (dryRun), then import. Rows with an existing id update that product
Body
| Name | Type | Description |
|---|---|---|
csvrequired | string | The file's text: CSV or TSV with a header row (Google Shopping columns, or friendly and Nordic names such as Namn, Pris, Storlek), or a Google Shopping XML feed. 1 to 10000000 characters |
siteIdrequired | id | The market whose prices the file holds; it must use the built-in catalog. |
dryRun | boolean | true previews what the import would do and writes nothing; false imports. default true |
curl -X POST https://api.loomieo.com/v1/products/import \ -H "Authorization: Bearer $LUMIEO_KEY" \ -H "Content-Type: application/json" \ -d '{"csv":"…","siteId":"0193…"}'Response 200
| Name | Type | Description |
|---|---|---|
productImportrequired | object |
Errors
400:bad_request401:auth_unauthenticated403:auth_csrf_rejected,forbidden,out_of_scope404:product_not_found,site_not_found409:product_read_only422:validation_failed429:rate_limited
Delete a built-in product with its listings
DELETE /v1/products/{id}
Delete a built-in product with its listings; refused while videos are tagged with it
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | id |
curl -X DELETE https://api.loomieo.com/v1/products/:id \ -H "Authorization: Bearer $LUMIEO_KEY"Response 200
| Name | Type | Description |
|---|---|---|
productrequired | object |
Errors
401:auth_unauthenticated403:auth_csrf_rejected,forbidden,out_of_scope404:product_not_found409:product_in_use,product_read_only422:validation_failed429:rate_limited
A product with its variants and its listing on each site
GET /v1/products/{id}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | id |
curl -X GET https://api.loomieo.com/v1/products/:id \ -H "Authorization: Bearer $LUMIEO_KEY"Response 200
| Name | Type | Description |
|---|---|---|
productrequired | object |
Errors
401:auth_unauthenticated403:forbidden404:product_not_found422:validation_failed429:rate_limited
Edit a built-in product's collections, images or options
PATCH /v1/products/{id}
Edit a built-in product's collections, images or options; variants follow the options
Parameters
| Name | In | Type | Description |
|---|---|---|---|
idrequired | path | id |
Body
| Name | Type | Description |
|---|---|---|
collections | list of string | Collections it is in, by name (e.g. "New in"); catalog slides can follow a collection. up to 20 items |
images | list of uri | up to 8 items |
options | list of object | Options such as Size. Every combination of values is one variant; none gives one default variant. up to 3 items |
curl -X PATCH https://api.loomieo.com/v1/products/:id \ -H "Authorization: Bearer $LUMIEO_KEY"Response 200
| Name | Type | Description |
|---|---|---|
productrequired | object |
Errors
400:bad_request401:auth_unauthenticated403:auth_csrf_rejected,forbidden,out_of_scope404:product_not_found409:product_read_only422:validation_failed429:rate_limited
Upsert up to 500 products
PUT /v1/sites/{siteId}/products
Upsert up to 500 products (catalog feed v1) on a site, applied at once; others are left as they are
curl -X PUT https://api.loomieo.com/v1/sites/:siteId/products \ -H "Authorization: Bearer $LUMIEO_KEY"Response 200
| Name | Type | Description |
|---|---|---|
productsrequired | object |
Errors
400:bad_request401:auth_unauthenticated403:auth_csrf_rejected,forbidden,out_of_scope404:site_not_found422:validation_failed429:rate_limited