On this page6 sections
Create Product
Creates a new single-variant or multi-variant product in the active tenant and dispatches `product.created` webhook events if configured.
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Request
Provide the following fields in the request payload.
name parameter.
code parameter.
category parameter.
cost parameter.
price parameter.
weight parameter.
uom parameter.
pricing Type parameter.
type parameter.
brand parameter.
supplier parameter.
tags parameter.
image Url parameter.
images parameter.
is Active parameter.
description parameter.
storage parameter.
barcode parameter.
track Inventory parameter.
outlet parameter.
variant Mode parameter.
variants parameter.
id parameter.
name parameter.
code parameter.
barcode parameter.
cost parameter.
price parameter.
weight parameter.
uom parameter.
is Default parameter.
is Active parameter.
sort Order parameter.
Responses
Select a status code to inspect schema.
Success (true).
Message.
Response payload or null.
curl -X POST "https://api.invoger.com/api/products/create-product" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{ "name": "Palm Sugar Latte", "code": "COF-01", "category": "Beverages", "cost": 9000, "price": 22000, "uom": "Cup", "pricingType": "Single", "type": "Standard", "trackInventory": true }'Response
{
"success": true,
"message": "Product created successfully",
"data": {
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"code": "COF-01"
}
}