Skip to content

Listings API

Prices and product text per market. All requests need a secret key; see REST API for keys, errors and limits.

Stop selling a built-in product on a site

DELETE /v1/products/{id}/listings/{siteId}

Stop selling a built-in product on a site; it shows as unavailable at once and leaves at the next publish

Parameters

NameInTypeDescription
idrequiredpathid
siteIdrequiredpathid
Terminal window
curl -X DELETE https://api.loomieo.com/v1/products/:id/listings/:siteId \
-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_read_only
  • 422: validation_failed
  • 429: rate_limited

Sell a built-in product on a site, or replace its title, link, price and per-variant stock there

PUT /v1/products/{id}/listings/{siteId}

Parameters

NameInTypeDescription
idrequiredpathid
siteIdrequiredpathid

Body

NameTypeDescription
priceMinorrequiredintegerInteger amount in the site's currency: 29900 is 299.00.
titlerequiredstring1 to 200 characters
urlrequireduriThe product page on the site.
availablebooleandefault true
descriptionstring or null
originalPriceMinorinteger or nullThe pre-sale price, shown struck through.
variantslist of objectPer-variant availability, price and stock. A variant left out takes the listing's availability and price. up to 100 items
Terminal window
curl -X PUT https://api.loomieo.com/v1/products/:id/listings/:siteId \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"priceMinor":1,"title":"…","url":"…"}'

Response 200

NameTypeDescription
productrequiredobject
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