/bff/product/product-update
Updates all editable fields of a product. Locale determines which translation to write to. If saving in the primary locale, base product columns are also updated. If the price changes, a price history entry is created and watchdog notifications are triggered. Custom fields can be batch-updated via customFieldsRaw. Read models for all locales are regenerated.
Parameters
23 body
namestringRequiredProduct name (will be normalized and capitalized).
codestringRequiredProduct code (used to identify the product).
localestringRequiredLocale code for translation (e.g. "cs", "en").
slugstringURL slug. If not provided, keeps existing slug.
eanstringEAN barcode (validated, ignored if invalid).
shortDescriptionstringShort HTML description.
longDescriptionstringLong HTML description.
internalNotestringInternal note (admin only).
activebooleanWhether the product is active.
b2bbooleanWhether the product is B2B only.
showInFeedbooleanWhether the product appears in product feeds.
soldOutbooleanWhether the product is sold out.
pricenumberPrice with VAT.
costnumberInternal cost in the organisation default currency. Defaults to 0 when omitted.
standardPricePercentagenumberStandard price percentage for discount calculation.
vatnumberVAT rate percentage.
sizeWidthMmnumberProduct width in millimeters.
sizeHeightMmnumberProduct height in millimeters.
sizeDepthMmnumberProduct depth in millimeters.
weightGramsnumberProduct weight in grams.
warehouseAllQuantitynumberTotal warehouse stock quantity.
warehouseLimitnumberMinimum stock level before reorder alert.
customFieldsRawobjectCustom fields key-value map for batch update.
Request
POST /bff/product/product-update
curl -X POST "https://api.bizkithub.com/bff/product/product-update" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"name": "My Product",
"code": "my-product",
"locale": "cs",
"slug": "my-product",
"ean": "8594000000123",
"shortDescription": "example_shortDescription",
"longDescription": "example_longDescription",
"internalNote": "example_internalNote",
"active": false,
"b2b": false,
"showInFeed": false,
"soldOut": false,
"price": 299.9,
"cost": 120,
"standardPricePercentage": 100,
"vat": 21,
"sizeWidthMm": 150,
"sizeHeightMm": 200,
"sizeDepthMm": 50,
"weightGrams": 500,
"warehouseAllQuantity": 100,
"warehouseLimit": 10,
"customFieldsRaw": {}
}'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.