API Reference

Products

List and create catalog products for the authenticated merchant.

GET/api/products

List products with pagination and optional search.

Auth: Bearer (user session)

Query

FieldTypeDescription
pagenumberPage number (default 1).
limitnumberItems per page.
searchstringSearch term (uses search_products RPC when set).

Example response

{
  "products": [{ "id": "…", "name": "Hoodie", "stock": 12, "price": 499 }],
  "pagination": { "page": 1, "limit": 20, "total": 42 }
}
POST/api/products

Create a product (optional variants and images).

Auth: Bearer (user session)

Body

FieldTypeDescription
namerequiredstringProduct name.
stockrequirednumberNon-negative stock quantity.
pricenumberUnit price.
skustringSKU.
categorystringCategory label.
descriptionstringProduct description.
image_urlstringPrimary image URL.
store_idstringStore scope (recommended).
variantsarrayVariant rows (size/color/stock/price).
imagesarrayAdditional image rows.

Subject to plan product limits and monthly API request limits.

Example request

{
  "name": "Classic Tee",
  "stock": 50,
  "price": 299,
  "store_id": "uuid",
  "variants": [{ "name": "M", "stock": 20, "price_modifier": 0 }]
}