Browse the API docs

Products

Products with up to three options and their variants. Descriptions are sanitized HTML; prices are decimal strings in the store's currency.

Endpoints#

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.

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"
}

List products#

GET/products.jsonread_products
Query parameters
ParameterDescription
limitResults per page, 1–250 (default 50).
page_infoCursor from the Link header for the next or previous page.
since_idOnly results after this id.
idsComma-separated ids.
created_at_min / created_at_maxISO 8601 bounds on creation time.
updated_at_min / updated_at_maxISO 8601 bounds on last change; use for incremental sync.
fieldsComma-separated fields to return, e.g. id,title,updated_at.
statusactive, draft or archived.
title, vendor, product_type, handle, collection_idFilters.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/products.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{ "products": [ … ] }

Count products#

GET/products/count.jsonread_products
Query parameters
ParameterDescription
status, vendor, product_type, collection_id, created_at_*, updated_at_*Same filters as the list.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/products/count.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{ "count": 12 }

Get a product#

GET/products/{id}.jsonread_products
Request
curl "https://store.weftgrid.com/api/admin/2026-10/products/$PRODUCT_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{
  "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#

POST/products.jsonwrite_products

Variants 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…

Request body
{
  "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" }]
  }
}
Request with curl
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 responseShow
{
  "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#

PUT/products/{id}.jsonwrite_products

Fields 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.

Request body
{ "product": { "title": "Linen shirt (relaxed)", "tags": "linen, summer", "status": "active" } }
Request with curl
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 responseShow
{
  "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#

DELETE/products/{id}.jsonwrite_products
Request
curl -X DELETE "https://store.weftgrid.com/api/admin/2026-10/products/$PRODUCT_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{}