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

/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

6 total
Body · 6
namestringRequired

Product name (will be normalized and capitalized).

Length: 1
codestring

Product code. If not provided, generated from name.

Length: 1
slugstring

URL slug. If not provided, generated from code or name.

eanstring

EAN barcode (validated, ignored if invalid).

localestringRequired

Locale code for the initial translation (e.g. "cs", "en").

mainCategoryCodestring

Main category code to assign.

Request

POST /bff/product/product-create

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

Get API Key