curl --location --request PUT '/api/products/12' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": 4777,
"name": "ItemName",
"price": "1.00",
"is_free_price": false,
"is_weight": false,
"default_quantity": "1.000",
"payload": "SomePayload",
"info": {
"blocks": [
{
"kind": "text",
"content": "Some text here1"
},
{
"kind": "barcode",
"type": 2,
"code": "1234567890123"
},
{
"kind": "text",
"content": "Some text here2"
}
]
},
"no_discount": false,
"category": 1,
"fiscal_section": 1,
"tax": 0,
"barcodes": [
{
"barcode": "3475557112",
"discount": 0,
"discount_type": null,
"default_quantity": 1
},
{
"barcode": "1234444712",
"discount": 10,
"discount_type": "percent",
"default_quantity": 1
},
{
"barcode": "1234444755",
"discount": 0,
"discount_type": null,
"default_quantity": 5
}
],
"addons": [
9,
3
]
}'{
"id": 12,
"barcodes": [
{
"barcode": "3475557112",
"discount": 0,
"discount_type": null,
"default_quantity": 1
},
{
"barcode": "1234444712",
"discount": 10,
"discount_type": "percent",
"default_quantity": 1
},
{
"barcode": "1234444755",
"discount": 0,
"discount_type": null,
"default_quantity": 5
}
],
"addons": [
9,
3
],
"status": 1,
"code": 4777,
"name": "ItemName",
"price": 1,
"is_free_price": false,
"is_weight": false,
"default_quantity": 1,
"payload": "SomePayload",
"created_at": "2026-01-09T10:13:28.357056+02:00",
"updated_at": "2026-02-18T10:06:41.387019+02:00",
"info": {
"blocks": [
{
"kind": "text",
"content": "Some text here1"
},
{
"kind": "barcode",
"type": 2,
"code": "1234567890123"
},
{
"kind": "text",
"content": "Some text here2"
}
]
},
"no_discount": false,
"category": 1,
"fiscal_section": 1,
"tax": 0
}