Products
Products with up to three options and their variants. Descriptions are sanitized HTML; prices are decimal strings in the store's currency.
Endpoints#
- GET
/products.jsonList products - GET
/products/count.jsonCount products - GET
/products/{id}.jsonGet a product - POST
/products.jsonCreate a product - PUT
/products/{id}.jsonUpdate a product - DELETE
/products/{id}.jsonDelete a product
Paths are relative to https://store.weftgrid.com/api/admin/2026-10. The examples read the token from $STORELOOM_TOKEN and ids from variables like $ORDER_ID.
The product object#
What the endpoints below return for one product, and the payload of the products/create, products/update webhooks.
{
"id": "cm2product01",
"title": "Linen shirt",
"handle": "linen-shirt",
"body_html": "<p>Washed European linen.</p>",
"vendor": "Juniper & Co.",
"product_type": "Shirts",
"status": "active",
"tags": "linen, wardrobe",
"options": [
{
"name": "Size",
"position": 1,
"values": [
"S",
"M"
]
}
],
"variants": [
{
"id": "cm2variant01",
"title": "S",
"price": "58.00",
"sku": "LINEN-01",
"option1": "S",
"inventory_quantity": 6,
"inventory_policy": "deny"
}
],
"images": [
{
"position": 1,
"src": "https://storeloom.example/uploads/…/shirt.webp",
"alt": null
}
],
"template_suffix": null,
"updated_at": "2026-10-23T09:30:00.000Z"
}List products#
/products.jsonread_products| Parameter | Description |
|---|---|
limit | Results per page, 1–250 (default 50). |
page_info | Cursor from the Link header for the next or previous page. |
since_id | Only results after this id. |
ids | Comma-separated ids. |
created_at_min / created_at_max | ISO 8601 bounds on creation time. |
updated_at_min / updated_at_max | ISO 8601 bounds on last change; use for incremental sync. |
fields | Comma-separated fields to return, e.g. id,title,updated_at. |
status | active, draft or archived. |
title, vendor, product_type, handle, collection_id | Filters. |
curl "https://store.weftgrid.com/api/admin/2026-10/products.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "products": [ … ] }Count products#
/products/count.jsonread_products| Parameter | Description |
|---|---|
status, vendor, product_type, collection_id, created_at_*, updated_at_* | Same filters as the list. |
curl "https://store.weftgrid.com/api/admin/2026-10/products/count.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "count": 12 }Get a product#
/products/{id}.jsonread_productscurl "https://store.weftgrid.com/api/admin/2026-10/products/$PRODUCT_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"product": {
"id": "cm2product01",
"title": "Linen shirt",
"handle": "linen-shirt",
"body_html": "<p>Washed European linen.</p>",
"vendor": "Juniper & Co.",
"product_type": "Shirts",
"status": "active",
"tags": "linen, wardrobe",
"options": [{ "name": "Size", "position": 1, "values": ["S", "M"] }],
"variants": [{ "id": "cm2variant01", "title": "S", "price": "58.00", "sku": "LINEN-01", "option1": "S", "inventory_quantity": 6, "inventory_policy": "deny" }],
"images": [{ "position": 1, "src": "https://storeloom.example/uploads/…/shirt.webp", "alt": null }],
"template_suffix": null,
"updated_at": "2026-10-23T09:30:00.000Z"
}
}Create a product#
/products.jsonwrite_productsVariants take option1–option3 values, price, compare_at_price, sku, barcode, grams, inventory_quantity (initial stock available online, added at the first location that sells online), inventory_policy (deny or continue). Leave options out to name them Option 1, Option 2…
{
"product": {
"title": "Canvas tote",
"body_html": "<p>Heavy cotton canvas.</p>",
"status": "active",
"tags": ["canvas", "bags"],
"options": [{ "name": "Color", "values": ["Natural", "Black"] }],
"variants": [
{ "option1": "Natural", "price": "30.00", "sku": "TOTE-NAT", "inventory_quantity": 25 },
{ "option1": "Black", "price": "30.00", "sku": "TOTE-BLK", "inventory_quantity": 10 }
],
"images": [{ "src": "https://example.com/tote.jpg" }]
}
}curl -X POST "https://store.weftgrid.com/api/admin/2026-10/products.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"product": {
"title": "Canvas tote",
"body_html": "<p>Heavy cotton canvas.</p>",
"status": "active",
"tags": ["canvas", "bags"],
"options": [{ "name": "Color", "values": ["Natural", "Black"] }],
"variants": [
{ "option1": "Natural", "price": "30.00", "sku": "TOTE-NAT", "inventory_quantity": 25 },
{ "option1": "Black", "price": "30.00", "sku": "TOTE-BLK", "inventory_quantity": 10 }
],
"images": [{ "src": "https://example.com/tote.jpg" }]
}
}'Example responseShowHide
{
"product": {
"id": "cm2product01",
"title": "Linen shirt",
"handle": "linen-shirt",
"body_html": "<p>Washed European linen.</p>",
"vendor": "Juniper & Co.",
"product_type": "Shirts",
"status": "active",
"tags": "linen, wardrobe",
"options": [{ "name": "Size", "position": 1, "values": ["S", "M"] }],
"variants": [{ "id": "cm2variant01", "title": "S", "price": "58.00", "sku": "LINEN-01", "option1": "S", "inventory_quantity": 6, "inventory_policy": "deny" }],
"images": [{ "position": 1, "src": "https://storeloom.example/uploads/…/shirt.webp", "alt": null }],
"template_suffix": null,
"updated_at": "2026-10-23T09:30:00.000Z"
}
}Update a product#
/products/{id}.jsonwrite_productsFields you leave out keep their values. When variants are sent, the list replaces the product's variants: include existing variants by id to keep them. Change stock with the inventory_levels endpoints.
{ "product": { "title": "Linen shirt (relaxed)", "tags": "linen, summer", "status": "active" } }curl -X PUT "https://store.weftgrid.com/api/admin/2026-10/products/$PRODUCT_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "product": { "title": "Linen shirt (relaxed)", "tags": "linen, summer", "status": "active" } }'Example responseShowHide
{
"product": {
"id": "cm2product01",
"title": "Linen shirt",
"handle": "linen-shirt",
"body_html": "<p>Washed European linen.</p>",
"vendor": "Juniper & Co.",
"product_type": "Shirts",
"status": "active",
"tags": "linen, wardrobe",
"options": [{ "name": "Size", "position": 1, "values": ["S", "M"] }],
"variants": [{ "id": "cm2variant01", "title": "S", "price": "58.00", "sku": "LINEN-01", "option1": "S", "inventory_quantity": 6, "inventory_policy": "deny" }],
"images": [{ "position": 1, "src": "https://storeloom.example/uploads/…/shirt.webp", "alt": null }],
"template_suffix": null,
"updated_at": "2026-10-23T09:30:00.000Z"
}
}Delete a product#
/products/{id}.jsonwrite_productscurl -X DELETE "https://store.weftgrid.com/api/admin/2026-10/products/$PRODUCT_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{}