APIs / Inventory

Products API

Create, list, update and delete products and variants.

GET/v1/products

List products.

Response

{ "data": [{ "id": "pr_...", "name": "Sugar 1kg", "price": 4500 }], "next_cursor": null }
POST/v1/products

Create a product.

Request body

{ "name": "Rice 5kg", "price": 22000, "cost_price": 18000, "sku": "RIC-5" }

Response

{ "id": "pr_..." }