Skip to content

Collections

A collection is a folder that groups your products. Group them any way you like: by season, by delivery or all in one. If you are unsure, put everything in one collection called Default.

Every product is delivered into a collection. The same SKU in two collections is two products.

curl -sS -H "Authorization: Bearer $TOKEN" "$BASE/collections?brand_id=$BRAND_ID" | jq
{
"data": [
{
"id": "c47b...",
"brand_id": "9a2e...",
"name": "Spring 2026 Drop 1",
"products_count": 48,
"created_at": "2026-07-20T08:12:44.501Z",
"updated_at": "2026-07-26T16:03:10.288Z"
}
],
"meta": {
"page": 1,
"limit": 100,
"count": 1,
"pages": 1
}
}

Export the id of the collection you deliver into:

export COLLECTION_ID="c47b..."

Posting a name that already exists returns that collection, 200 instead of 201, so you can call it at the start of every delivery.

curl -sS -X POST "$BASE/collections" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"brand_id": "'"$BRAND_ID"'", "name": "Default"}' | jq
{
"id": "c47b...",
"brand_id": "9a2e...",
"name": "Default",
"products_count": 0,
"created_at": "2026-07-27T09:18:02.644Z",
"updated_at": "2026-07-27T09:18:02.644Z"
}

Export its id as COLLECTION_ID. Names match exactly, so Default and default are two collections. A collection cannot be renamed or deleted through the API.

curl -sS -H "Authorization: Bearer $TOKEN" "$BASE/collections/$COLLECTION_ID" | jq

Its products are listed under Products.