BizKitHub
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

JSON body

Request body

application/json
namestringRequired

Product name (will be normalized and capitalized).

Length: 1
ExampleMy New Product
codestringOptional

Product code. If not provided, generated from name.

Length: 1
Examplemy-new-product
slugstringOptional

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

Examplemy-new-product
eanstringOptional

EAN barcode (validated, ignored if invalid).

Example8594000000123
localestringRequired

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

Examplecs
mainCategoryCodestringOptional

Main category code to assign.

Exampleelectronics

Response schema

1 status code documented

200Success
successbooleanRequired

Whether the product was created.

codestringRequired

Generated product code.

slugstringRequired

Generated URL slug.

Response example

application/json
{
  "success": false,
  "code": "example_code",
  "slug": "example_slug"
}

Request example

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"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key