/bff/product/product-variant-create
Creates a new variant for a product. The variant code is generated from the provided code (or from product code + name) and deduplicated. Each variant gets a unique relation hash for identification.
ProductpostBffProductProduct-variant-create
Parameters
6 body
Body · 6
mainProductCodestringRequiredProduct code to add the variant to.
namestringRequiredVariant display name.
Length: 1–∞
codestringRequiredVariant code (will be slugified and deduplicated).
Length: 1–∞
eanstringVariant EAN barcode.
pricenumberVariant price with VAT.
priceAddnumberAdditional price on top of the base product price.
Request
POST /bff/product/product-variant-create
curl -X POST "https://api.bizkithub.com/bff/product/product-variant-create" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"mainProductCode": "my-product",
"name": "Size XL",
"code": "xl",
"ean": "8594000000456",
"price": 399.9,
"priceAdd": 50
}'Response
JSON payload
{
"success": false
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.