Create Product
POST /v2/product
Creates a new product in the system with the specified configuration. This endpoint validates the provided input data, applies default values for any missing optional fields, and processes the product creation. Returns the complete created product object with all assigned identifiers, pricing information, availability settings, and metadata including timestamps.
Request Body
{
"name": "Test product",
"subscription_term": 0,
"payment_period": 0,
"subscription": true,
"status": {
"active": true,
"deleted": false
},
"type": 3,
"description": "",
"country": {
"code": "NO"
},
"currency": {
"code": "NOK",
"title": "Norway kroner"
},
"managementLink": {
"title": "",
"url": ""
},
"integration": [],
"customInputs": [],
"consumption": {
},
"amount": {
"min": 1,
"max": 1,
"default": 1
},
"permission_features": [],
"products": [
{
"amount": {
"default": 1,
"min": 1,
"max": 100
},
"cost_price": 1,
"sku": "1",
"price": 100,
"discount": 0,
"_id": "",
"reference": ""
}
]
}
Response Example
{
"id": "product-id-1",
"group_id": "product-id-1",
"tenant": "tenant-id-1",
"name": "Example Product",
"status": {
"active": true,
"deleted": false
},
"sales_channel": "Shop",
"subscription_term": 0,
"payment_period": 0,
"subscription": true,
"referenced": false,
"amount": {
"min": 1,
"max": 100,
"default": 1
},
"products": [
{
"_id": "variant-id-1",
"sku": "SKU-001",
"cost_price": 1,
"price": 100,
"amount": {
"default": 1,
"min": 1,
"max": 100
},
"reference": ""
}
],
"services": [],
"managementLink": {
"title": "Manage in Portal",
"url": "https://example.com/manage"
},
"categories": [],
"stock": 0,
"shop_enabled": false,
"keys": [],
"media": [],
"country": {
"code": "NO",
"_id": "country-id-1"
},
"currency": {
"code": "NOK",
"_id": "currency-id-1"
},
"type": 3,
"description": "",
"integration": [],
"resell": false,
"msp": false,
"permission_features": [],
"vendor": {
"name": "Example Vendor"
},
"customInputs": [],
"integrations": [],
"created": "2025-01-01T00:00:00.000Z",
"updated": "2025-01-01T00:00:00.000Z"
}