Collections
Product collections.
List collections#
List collections, newest first. Lists collections of the shop.
Query parameters
Page size. Clamped to 1..200. Non-numeric values fall back to the default. Default: 50.
Value of next_cursor from the previous page. Returns items with created_at strictly before this timestamp.
Filter by active flag.
Exact handle.
Only for OAuth tokens that cover several shops: the shop to query. Must be one of the token's shops (else 403 forbidden). Required when the token covers more than one shop (else 400 shop_required). Optional for API keys (a key belongs to exactly one shop; any other value returns 403).
Response fields
Items of this page.
created_at of the last item when more items exist, otherwise null.
Collection id.
Title.
URL handle (also accepted as :id on the detail endpoint).
Description.
Image URL.
Sort order.
Active flag.
Creation time; pagination key.
Last update.
Errors
Any endpoint. Response carries header WWW-Authenticate: Bearer resource_metadata="<origin>/.well-known/oauth-protected-resource".
Scope check per endpoint (and per body field on PATCH /orders/:id).
shop_id query parameter names a shop outside the credential's reach.
Multi-shop OAuth token without shop_id.
Any endpoint when the resolved shop has active=false.
Any endpoint. Header Retry-After (seconds until the next minute bucket).
Any endpoint.
curl "https://api.ecomone.shop/api/public/v1/collections?limit=10" \
-H "X-Api-Key: $ECOMONE_API_KEY" \
-H "X-Api-Secret: $ECOMONE_API_SECRET"const res = await fetch("https://api.ecomone.shop/api/public/v1/collections?limit=10", {
method: "GET",
headers: {
"X-Api-Key": process.env.ECOMONE_API_KEY,
"X-Api-Secret": process.env.ECOMONE_API_SECRET,
},
});
if (!res.ok) throw new Error((await res.json()).message);
const { data } = await res.json();import os, requests
res = requests.get(
"https://api.ecomone.shop/api/public/v1/collections?limit=10",
headers={
"X-Api-Key": os.environ["ECOMONE_API_KEY"],
"X-Api-Secret": os.environ["ECOMONE_API_SECRET"],
},
timeout=30,
)
res.raise_for_status()
data = res.json()["data"]{
"data": [
{
"id": "5c9a7d20-77f1-4a1e-9e0c-2b7c9f1a4e33",
"title": "Summer Essentials",
"handle": "summer-essentials",
"description": "Light basics for warm days.",
"image_url": "https://cdn.example.com/c/summer.jpg",
"sort_order": 1,
"active": true,
"created_at": "2026-05-14T07:00:00.000Z",
"updated_at": "2026-05-20T07:00:00.000Z"
}
],
"next_cursor": null
}Retrieve a collection#
Retrieve one collection (by UUID or handle) with its product ids. Includes product_ids ordered by their position in the collection.
Path parameters
Collection UUID or handle.
Query parameters
Only for OAuth tokens that cover several shops: the shop to query. Must be one of the token's shops (else 403 forbidden). Required when the token covers more than one shop (else 400 shop_required). Optional for API keys (a key belongs to exactly one shop; any other value returns 403).
Response fields
Collection id.
Title.
URL handle (also accepted as :id on the detail endpoint).
Description.
Image URL.
Sort order.
Active flag.
Creation time; pagination key.
Last update.
Products in the collection, ordered by position.
Errors
Detail endpoints and PATCH.
Detail endpoints.
Any endpoint. Response carries header WWW-Authenticate: Bearer resource_metadata="<origin>/.well-known/oauth-protected-resource".
Scope check per endpoint (and per body field on PATCH /orders/:id).
shop_id query parameter names a shop outside the credential's reach.
Multi-shop OAuth token without shop_id.
Any endpoint when the resolved shop has active=false.
Any endpoint. Header Retry-After (seconds until the next minute bucket).
Any endpoint.
curl "https://api.ecomone.shop/api/public/v1/collections/winter" \
-H "X-Api-Key: $ECOMONE_API_KEY" \
-H "X-Api-Secret: $ECOMONE_API_SECRET"const res = await fetch("https://api.ecomone.shop/api/public/v1/collections/winter", {
method: "GET",
headers: {
"X-Api-Key": process.env.ECOMONE_API_KEY,
"X-Api-Secret": process.env.ECOMONE_API_SECRET,
},
});
if (!res.ok) throw new Error((await res.json()).message);
const { data } = await res.json();import os, requests
res = requests.get(
"https://api.ecomone.shop/api/public/v1/collections/winter",
headers={
"X-Api-Key": os.environ["ECOMONE_API_KEY"],
"X-Api-Secret": os.environ["ECOMONE_API_SECRET"],
},
timeout=30,
)
res.raise_for_status()
data = res.json()["data"]{
"data": {
"id": "5c9a7d20-77f1-4a1e-9e0c-2b7c9f1a4e33",
"title": "Summer Essentials",
"handle": "summer-essentials",
"description": "Light basics for warm days.",
"image_url": "https://cdn.example.com/c/summer.jpg",
"sort_order": 1,
"active": true,
"created_at": "2026-05-14T07:00:00.000Z",
"updated_at": "2026-05-20T07:00:00.000Z",
"product_ids": [
"3b8b1f0a-1d2c-4f34-8a7c-6e2f9b4d5c11"
]
}
}