API reference
Products
List products
/api/v1/products
Lists the shop's products with their all-time views, likes, units sold, and revenue. Filter by status, title, or category, and sort by newest, price, views, or sales.
- Scope
- MCP tool
- products_list
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
statusquery · optional | enum | Only products in this status |
qquery · optional | string | Matches anywhere in the title, case-insensitive |
category_slugquery · optional | string | Only products in this storefront category |
sortquery · optional | enum | `newest` first, `price` low to high, most `views`, or most units sold (`sales`) |
limitquery · optional | integer | Results per page, 1-100 |
cursorquery · optional | string | The `next_cursor` from the previous page |
Request
curl "https://3commerce.com/api/v1/products" \
-H "Authorization: Bearer 3c_live_…"Response
{
"data": [
{
"id": "5f1c2a9e-8d3b-4f61-9a0e-2b7c4d1e6f80",
"slug": "merino-crew-sweater",
"title": "Merino crew sweater",
"status": "published",
"price": 128,
"compare_at_price": 160,
"category_slug": "womens-sweaters",
"stock": 42,
"image": "https://images.example.com/crew.jpg",
"views": 1840,
"likes": 96,
"units_sold": 37,
"revenue": 4736,
"scheduled_at": null,
"published_at": "2026-10-02T15:04:00.000Z",
"updated_at": "2026-10-02T15:04:00.000Z"
}
],
"next_cursor": "MjU"
}List product categories
/api/v1/products/categories
The storefront categories a product can be filed under, grouped by department. Use a `slug` from here as `category_slug` when you create or edit a product.
- Scope
- MCP tool
- products_categories
- Changes data
- No
Parameters
No parameters.
Request
curl "https://3commerce.com/api/v1/products/categories" \
-H "Authorization: Bearer 3c_live_…"Response
{
"data": [
{
"department": "Women",
"categories": [
{
"slug": "womens-dresses",
"name": "Dresses"
},
{
"slug": "womens-sweaters",
"name": "Sweaters"
}
]
}
]
}Get a product
/api/v1/products/{id}
One product in full: description, photos, tags, badges, stock, status and its schedule, all-time sales, and its storefront URL when it is live.
- Scope
- MCP tool
- products_get
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl "https://3commerce.com/api/v1/products/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…"Response
{
"id": "5f1c2a9e-8d3b-4f61-9a0e-2b7c4d1e6f80",
"slug": "merino-crew-sweater",
"title": "Merino crew sweater",
"description": "A midweight merino crew, knit in Portugal.",
"price": 128,
"compare_at_price": 160,
"category_slug": "womens-sweaters",
"status": "published",
"scheduled_at": null,
"published_at": "2026-10-02T15:04:00.000Z",
"stock": 42,
"images": [
{
"src": "https://images.example.com/crew.jpg",
"alt": "Merino crew sweater",
"width": 1200,
"height": 1600
}
],
"tags": [
"merino",
"knitwear"
],
"badges": [
"new"
],
"source": "manual",
"library_product_id": null,
"views": 1840,
"likes": 96,
"units_sold": 37,
"revenue": 4736,
"storefront_url": "https://3commerce.com/product/merino-crew-sweater",
"created_at": "2026-09-28T10:12:00.000Z",
"updated_at": "2026-10-02T15:04:00.000Z"
}Create a product
/api/v1/products
Adds a product to the shop as a draft, live now, or scheduled. Its URL slug comes from the title. Going live needs at least 1 photo.
- Scope
- MCP tool
- products_create
- Changes data
- Yes
- Idempotency-Key
- Accepted
Parameters
| Name | Type | Description |
|---|---|---|
titlebody · required | string | Product title, 2-120 characters |
descriptionbody · optional | string | Plain text, up to 5000 characters |
pricebody · required | number | Price in USD, e.g. 48.5 for $48.50 |
compare_at_pricebody · optional | number or null | The struck-through "was" price in USD. Must be more than `price`; null clears it |
category_slugbody · required | enum | A storefront category slug from `products.categories`, e.g. `womens-sweaters` |
stockbody · optional | integer | Units on hand, 0-1,000,000 |
tagsbody · optional | array of string | Up to 20 lowercase search tags, each under 40 characters |
badgesbody · optional | array of enum | Flags shown on the product card: new, sale, bestseller, limited, exclusive |
imagesbody · optional | array of object | Gallery photos in order, the first is the cover. Up to 12; at least 1 to go live |
statusbody · optional | enum | `draft` hides it, `published` puts it live now, `scheduled` puts it live at `scheduled_at` |
scheduled_atbody · optional | string (date-time) | ISO 8601 time to go live, required with `status: scheduled`, within the next year |
Request
curl -X POST "https://3commerce.com/api/v1/products" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{
"title": "Linen overshirt",
"price": 48,
"category_slug": "womens-dresses"
}'Response
{
"id": "5f1c2a9e-8d3b-4f61-9a0e-2b7c4d1e6f80",
"slug": "merino-crew-sweater",
"title": "Merino crew sweater",
"description": "A midweight merino crew, knit in Portugal.",
"price": 128,
"compare_at_price": 160,
"category_slug": "womens-sweaters",
"status": "draft",
"scheduled_at": null,
"published_at": null,
"stock": 42,
"images": [
{
"src": "https://images.example.com/crew.jpg",
"alt": "Merino crew sweater",
"width": 1200,
"height": 1600
}
],
"tags": [
"merino",
"knitwear"
],
"badges": [
"new"
],
"source": "manual",
"library_product_id": null,
"views": 1840,
"likes": 96,
"units_sold": 0,
"revenue": 4736,
"storefront_url": null,
"created_at": "2026-09-28T10:12:00.000Z",
"updated_at": "2026-10-02T15:04:00.000Z"
}Update a product
/api/v1/products/{id}
Changes any of a product's fields; omitted fields keep their value. `images`, `tags`, and `badges` replace the whole list. The slug never changes. Setting `status` here works like publish, schedule, or unpublish.
- Scope
- MCP tool
- products_update
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
titlebody · optional | string | Product title, 2-120 characters |
descriptionbody · optional | string | Plain text, up to 5000 characters |
pricebody · optional | number | Price in USD, e.g. 48.5 for $48.50 |
compare_at_pricebody · optional | number or null | The struck-through "was" price in USD. Must be more than `price`; null clears it |
category_slugbody · optional | enum | A storefront category slug from `products.categories`, e.g. `womens-sweaters` |
stockbody · optional | integer | Units on hand, 0-1,000,000 |
tagsbody · optional | array of string | Up to 20 lowercase search tags, each under 40 characters |
badgesbody · optional | array of enum | Flags shown on the product card: new, sale, bestseller, limited, exclusive |
imagesbody · optional | array of object | Gallery photos in order, the first is the cover. Up to 12; at least 1 to go live |
statusbody · optional | enum | `draft` hides it, `published` puts it live now, `scheduled` puts it live at `scheduled_at` |
scheduled_atbody · optional | string (date-time) | ISO 8601 time to go live, required with `status: scheduled`, within the next year |
Request
curl -X PATCH "https://3commerce.com/api/v1/products/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{}'Response
{
"id": "5f1c2a9e-8d3b-4f61-9a0e-2b7c4d1e6f80",
"slug": "merino-crew-sweater",
"title": "Merino crew sweater",
"description": "A midweight merino crew, knit in Portugal.",
"price": 128,
"compare_at_price": 160,
"category_slug": "womens-sweaters",
"status": "published",
"scheduled_at": null,
"published_at": "2026-10-02T15:04:00.000Z",
"stock": 42,
"images": [
{
"src": "https://images.example.com/crew.jpg",
"alt": "Merino crew sweater",
"width": 1200,
"height": 1600
}
],
"tags": [
"merino",
"knitwear"
],
"badges": [
"new"
],
"source": "manual",
"library_product_id": null,
"views": 1840,
"likes": 96,
"units_sold": 37,
"revenue": 4736,
"storefront_url": "https://3commerce.com/product/merino-crew-sweater",
"created_at": "2026-09-28T10:12:00.000Z",
"updated_at": "2026-10-02T15:04:00.000Z"
}Delete a product
/api/v1/products/{id}
Deletes a product for good, with its comments and view history. Past order lines keep their title and price. To hide a product but keep it, use `products.unpublish` instead.
- Scope
- MCP tool
- products_delete
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl -X DELETE "https://3commerce.com/api/v1/products/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c" \
-H "Authorization: Bearer 3c_live_…"Response
{
"id": "5f1c2a9e-8d3b-4f61-9a0e-2b7c4d1e6f80",
"deleted": true
}Publish a product
/api/v1/products/{id}/publish
Puts a draft, scheduled, or archived product live on the storefront now and clears any schedule. It needs at least 1 photo.
- Scope
- MCP tool
- products_publish
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl -X POST "https://3commerce.com/api/v1/products/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/publish" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{}'Response
{
"id": "5f1c2a9e-8d3b-4f61-9a0e-2b7c4d1e6f80",
"slug": "merino-crew-sweater",
"title": "Merino crew sweater",
"description": "A midweight merino crew, knit in Portugal.",
"price": 128,
"compare_at_price": 160,
"category_slug": "womens-sweaters",
"status": "published",
"scheduled_at": null,
"published_at": "2026-10-02T15:04:00.000Z",
"stock": 42,
"images": [
{
"src": "https://images.example.com/crew.jpg",
"alt": "Merino crew sweater",
"width": 1200,
"height": 1600
}
],
"tags": [
"merino",
"knitwear"
],
"badges": [
"new"
],
"source": "manual",
"library_product_id": null,
"views": 1840,
"likes": 96,
"units_sold": 37,
"revenue": 4736,
"storefront_url": "https://3commerce.com/product/merino-crew-sweater",
"created_at": "2026-09-28T10:12:00.000Z",
"updated_at": "2026-10-02T15:04:00.000Z"
}Unpublish a product
/api/v1/products/{id}/unpublish
Takes a product off the storefront and back to draft. Also cancels a schedule and restores an archived product. Its sales history stays.
- Scope
- MCP tool
- products_unpublish
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
Request
curl -X POST "https://3commerce.com/api/v1/products/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/unpublish" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{}'Response
{
"id": "5f1c2a9e-8d3b-4f61-9a0e-2b7c4d1e6f80",
"slug": "merino-crew-sweater",
"title": "Merino crew sweater",
"description": "A midweight merino crew, knit in Portugal.",
"price": 128,
"compare_at_price": 160,
"category_slug": "womens-sweaters",
"status": "draft",
"scheduled_at": null,
"published_at": "2026-10-02T15:04:00.000Z",
"stock": 42,
"images": [
{
"src": "https://images.example.com/crew.jpg",
"alt": "Merino crew sweater",
"width": 1200,
"height": 1600
}
],
"tags": [
"merino",
"knitwear"
],
"badges": [
"new"
],
"source": "manual",
"library_product_id": null,
"views": 1840,
"likes": 96,
"units_sold": 37,
"revenue": 4736,
"storefront_url": null,
"created_at": "2026-09-28T10:12:00.000Z",
"updated_at": "2026-10-02T15:04:00.000Z"
}Schedule a product
/api/v1/products/{id}/schedule
Sets a product to go live on the storefront at `scheduled_at`, at least 1 minute ahead and within the next year. It needs at least 1 photo.
- Scope
- MCP tool
- products_schedule
- Changes data
- Yes
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
scheduled_atbody · required | string (date-time) | ISO 8601 time to go live, required with `status: scheduled`, within the next year |
Request
curl -X POST "https://3commerce.com/api/v1/products/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/schedule" \
-H "Authorization: Bearer 3c_live_…" \
-H "Content-Type: application/json" \
-d '{
"scheduled_at": "2026-12-01T09:00:00.000Z"
}'Response
{
"id": "5f1c2a9e-8d3b-4f61-9a0e-2b7c4d1e6f80",
"slug": "merino-crew-sweater",
"title": "Merino crew sweater",
"description": "A midweight merino crew, knit in Portugal.",
"price": 128,
"compare_at_price": 160,
"category_slug": "womens-sweaters",
"status": "scheduled",
"scheduled_at": "2026-12-01T09:00:00.000Z",
"published_at": "2026-10-02T15:04:00.000Z",
"stock": 42,
"images": [
{
"src": "https://images.example.com/crew.jpg",
"alt": "Merino crew sweater",
"width": 1200,
"height": 1600
}
],
"tags": [
"merino",
"knitwear"
],
"badges": [
"new"
],
"source": "manual",
"library_product_id": null,
"views": 1840,
"likes": 96,
"units_sold": 37,
"revenue": 4736,
"storefront_url": null,
"created_at": "2026-09-28T10:12:00.000Z",
"updated_at": "2026-10-02T15:04:00.000Z"
}Get product performance
/api/v1/products/{id}/performance
One product's views, units sold, revenue, and conversion (orders per view) over the last `days`, with a day-by-day breakdown. Refunded orders are left out.
- Scope
- MCP tool
- products_performance
- Changes data
- No
Parameters
| Name | Type | Description |
|---|---|---|
idpath · required | string (uuid) | The resource id |
daysquery · optional | integer | Window in days, 1-365 |
Request
curl "https://3commerce.com/api/v1/products/6f1c2a4e-8b3d-4c5e-9a7f-1d2e3f4a5b6c/performance" \
-H "Authorization: Bearer 3c_live_…"Response
{
"id": "5f1c2a9e-8d3b-4f61-9a0e-2b7c4d1e6f80",
"days": 7,
"views": 312,
"units": 9,
"orders": 8,
"revenue": 1152,
"conversion": 0.0256,
"daily": [
{
"date": "2026-11-19",
"views": 41,
"units": 1,
"revenue": 128
}
]
}