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
| Name | In | Type | Description |
|---|
idrequired | path | id | |
siteIdrequired | path | id | |
curl -X DELETE https://api.loomieo.com/v1/products/:id/listings/:siteId \
-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_read_only422: validation_failed429: 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
| Name | In | Type | Description |
|---|
idrequired | path | id | |
siteIdrequired | path | id | |
Body
| Name | Type | Description |
|---|
priceMinorrequired | integer | Integer amount in the site's currency: 29900 is 299.00. |
titlerequired | string | 1 to 200 characters |
urlrequired | uri | The product page on the site. |
available | boolean | default true |
description | string or null | |
originalPriceMinor | integer or null | The pre-sale price, shown struck through. |
variants | list of object | Per-variant availability, price and stock. A variant left out takes the listing's availability and price. up to 100 items |
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
| Name | Type | Description |
|---|
productrequired | 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