Skip to content

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

NameInTypeDescription
cursorquerystring
limitqueryinteger
sortByquery"createdAt"
sortDirquery"asc" | "desc"
collectionquerystringOnly products in this collection. 1 to 100 characters
connectionIdqueryidOnly products of this catalog connection.
idsquerystringOnly these products: up to 100 comma-separated ids.
notSoldquery"true" | "false"true: only products with no active listing.
qquerystringSearch: a listing title or the external id contains this, ignoring case. 1 to 100 characters
unavailablequery"true" | "false"true: only products out of stock on a site that sells them.
Terminal window
curl -X GET https://api.loomieo.com/v1/products \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
paginationrequiredobject
productsrequiredlist of object
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 422: validation_failed
  • 429: 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

NameTypeDescription
collectionslist of stringCollections it is in, by name (e.g. "New in"); catalog slides can follow a collection. up to 20 items
imageslist of uriup to 8 items
optionslist of objectOptions such as Size. Every combination of values is one variant; none gives one default variant. up to 3 items
Terminal window
curl -X POST https://api.loomieo.com/v1/products \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
productrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: connection_not_found, product_not_found
  • 409: product_read_only
  • 422: validation_failed
  • 429: 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

NameTypeDescription
idsrequiredlist of idup to 100 items
addlist of stringCollections it is in, by name (e.g. "New in"); catalog slides can follow a collection. up to 20 items
removelist of stringCollections it is in, by name (e.g. "New in"); catalog slides can follow a collection. up to 20 items
Terminal window
curl -X POST https://api.loomieo.com/v1/products/collections \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":[]}'

Response 200

NameTypeDescription
productCollectionsrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 422: validation_failed
  • 429: 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

NameTypeDescription
csvrequiredstringThe 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
siteIdrequiredidThe market whose prices the file holds; it must use the built-in catalog.
dryRunbooleantrue previews what the import would do and writes nothing; false imports. default true
Terminal window
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

NameTypeDescription
productImportrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: product_not_found, site_not_found
  • 409: product_read_only
  • 422: validation_failed
  • 429: 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

NameInTypeDescription
idrequiredpathid
Terminal window
curl -X DELETE https://api.loomieo.com/v1/products/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
productrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: product_not_found
  • 409: product_in_use, product_read_only
  • 422: validation_failed
  • 429: rate_limited

A product with its variants and its listing on each site

GET /v1/products/{id}

Parameters

NameInTypeDescription
idrequiredpathid
Terminal window
curl -X GET https://api.loomieo.com/v1/products/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
productrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: product_not_found
  • 422: validation_failed
  • 429: 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

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
collectionslist of stringCollections it is in, by name (e.g. "New in"); catalog slides can follow a collection. up to 20 items
imageslist of uriup to 8 items
optionslist of objectOptions such as Size. Every combination of values is one variant; none gives one default variant. up to 3 items
Terminal window
curl -X PATCH https://api.loomieo.com/v1/products/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
productrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: product_not_found
  • 409: product_read_only
  • 422: validation_failed
  • 429: 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

Terminal window
curl -X PUT https://api.loomieo.com/v1/sites/:siteId/products \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
productsrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: site_not_found
  • 422: validation_failed
  • 429: rate_limited