List and retrieve store products

Read back the store products you manage, one or a page at a time.

GET{BASE_URL}/store/products
GET{BASE_URL}/store/products/:externalId

Requires 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#

StatusCodeWhen
200—The list, or the one listing.
400limit_invalid, offset_invalidlimit is not a whole number from 1 to 200, or offset is not a whole number from 0.
400externalId_invalidThe externalId is not 1–128 letters, digits or . _ ~ : -.
403provider_module_not_allowedA Technology Provider without the Store module.
404resource_not_foundNo 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
  }
}