/bff/product/product-create
Creates a new product with default values (inactive, price 0, not sold out). Generates a unique code and slug, creates an initial price history entry, and writes the first translation row for the specified locale.
ProductpostBffProductProduct-create
Parameters
6 body
Body · 6
namestringRequiredProduct name (will be normalized and capitalized).
Length: 1–∞
codestringProduct code. If not provided, generated from name.
Length: 1–∞
slugstringURL slug. If not provided, generated from code or name.
eanstringEAN barcode (validated, ignored if invalid).
localestringRequiredLocale code for the initial translation (e.g. "cs", "en").
mainCategoryCodestringMain category code to assign.
Request
POST /bff/product/product-create
curl -X POST "https://api.bizkithub.com/bff/product/product-create" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"name": "My New Product",
"code": "my-new-product",
"slug": "my-new-product",
"ean": "8594000000123",
"locale": "cs",
"mainCategoryCode": "electronics"
}'Response
JSON payload
{
"success": false,
"code": "example_code",
"slug": "example_slug"
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.