List and retrieve store products
Read back the store products you manage, one or a page at a time.
GET
{BASE_URL}/store/productsGET
{BASE_URL}/store/products/:externalIdRequires the REGISTRATION scope. Each product has the shape PUT /store/products
returns.
The list holds the products created through the API, oldest first. Products added in the Partner Portal are not in it.
Query (list)
limitintegeroptional- 1–200. Defaults to 50.
offsetintegeroptional- Defaults to 0.
Response (list)
data.itemsobject[]required- The page of products.
data.totalintegerrequired- How many there are in all.
data.limitintegerrequired- The page size used.
data.offsetintegerrequired- The offset used.
A single product that does not exist — never created, deleted, or someone else's — answers
404 resource_not_found.
Status codes#
| Status | Code | When |
|---|---|---|
200 | — | The list, or the one listing. |
400 | limit_invalid, offset_invalid | limit is not a whole number from 1 to 200, or offset is not a whole number from 0. |
400 | externalId_invalid | The externalId is not 1–128 letters, digits or . _ ~ : -. |
403 | provider_module_not_allowed | A Technology Provider without the Store module. |
404 | resource_not_found | No listing with that externalId that you manage. |
cURL
curl "$LOCALOY_BASE_URL/store/products?limit=100" \
-H "Authorization: Bearer $LOCALOY_API_KEY"Response · 200
{
"success": true,
"data": {
"items": [
{ "externalId": "pj-001", "id": "cm4pr0duct0000000000001", "name": "Cotton panjabi", "price": 2200, "published": true, "…": "…" }
],
"total": 1,
"limit": 100,
"offset": 0
}
}