Commerce
Products
Create and manage products. Products belong to a catalog and optionally a category. They can have multiple variants, each with its own price and inventory.
Create a product
POST
/modules/commerce/products
Create a new product.
curl
curl -X POST https://api.saasignal.saastemly.com/modules/commerce/products \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{"name":"example","price":1}'
json — 201 Created
{ "status": "ok" }
Body field
Type
Description
catalog_idstring
category_idstring
name requiredstring
1–512 chars
slugstring
1–256 chars
descriptionstring
max 8192 chars
typestring
values:
physical, digital, servicestatusstring
values:
active, draft, archivedprice requirednumber
range ≥0
compare_at_pricenumber
range ≥0
cost_pricenumber
range ≥0
currencystring
3–3 chars
skustring
max 128 chars
barcodestring
max 128 chars
weightnumber
range ≥0
weight_unitstring
values:
g, kg, lb, oztaxableboolean
tax_codestring
max 64 chars
track_inventoryboolean
quantityinteger
range ≥0 .. ≤9007199254740991
allow_backorderboolean
imagesarray
max 20 items
tagsarray
max 50 items
metadataobject
Error responses
401 Unauthorized
402 Insufficient tokens
429 Rate limited
List products
GET
/modules/commerce/products
List products with optional filters.
curl
curl https://api.saasignal.saastemly.com/modules/commerce/products \
-H "Authorization: Bearer sk_live_..."
json — 200 OK
{ "status": "ok" }
Query param
Type
Description
catalog_idstring
category_idstring
statusstring
typestring
qstring
min_pricenumber
range ≥0
max_pricenumber
range ≥0
tagsstring
limitinteger
range ≥1 .. ≤100default
25cursorstring
Error responses
401 Unauthorized
402 Insufficient tokens
429 Rate limited
Get a product
GET
/modules/commerce/products/{product_id}
Retrieve a single product.
curl
curl https://api.saasignal.saastemly.com/modules/commerce/products/{product_id} \
-H "Authorization: Bearer sk_live_..."
json — 200 OK
{ "status": "ok" }
Path param
Type
Description
product_id requiredstring
Error responses
401 Unauthorized
402 Insufficient tokens
404 Not found
429 Rate limited
Update a product
PATCH
/modules/commerce/products/{product_id}
Update a product.
curl
curl -X PATCH https://api.saasignal.saastemly.com/modules/commerce/products/{product_id} \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{}'
json — 200 OK
{ "status": "ok" }
Path param
Type
Description
product_id requiredstring
Body field
Type
Description
catalog_idmixed
category_idmixed
namestring
1–512 chars
slugstring
1–256 chars
descriptionmixed
typestring
values:
physical, digital, servicestatusstring
values:
active, draft, archivedpricenumber
range ≥0
compare_at_pricemixed
cost_pricemixed
currencystring
3–3 chars
skumixed
barcodemixed
weightmixed
weight_unitmixed
taxableboolean
tax_codemixed
track_inventoryboolean
quantityinteger
range ≥0 .. ≤9007199254740991
allow_backorderboolean
imagesarray
max 20 items
tagsarray
max 50 items
metadataobject
Error responses
401 Unauthorized
402 Insufficient tokens
404 Not found
429 Rate limited
Delete a product
DELETE
/modules/commerce/products/{product_id}
Permanently remove a product.
curl
curl -X DELETE https://api.saasignal.saastemly.com/modules/commerce/products/{product_id} \
-H "Authorization: Bearer sk_live_..."
json — 200 OK
{ "status": "ok" }
Path param
Type
Description
product_id requiredstring
Error responses
401 Unauthorized
402 Insufficient tokens
404 Not found
429 Rate limited