DocsAPI ReferenceProduct/bff/product/product-variant-create
postProductAdmin BFF

/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

6 total
Body · 6
mainProductCodestringRequired

Product code to add the variant to.

namestringRequired

Variant display name.

Length: 1
codestringRequired

Variant code (will be slugified and deduplicated).

Length: 1
eanstring

Variant EAN barcode.

pricenumber

Variant price with VAT.

priceAddnumber

Additional price on top of the base product price.

Request

POST /bff/product/product-variant-create

post
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.

Get API Key