api-key: ********************
{
"description": "test variant",
"number": "007",
"webshopStartDate": "2025-07-17",
"configuration": {
"items": [
{
"optionBarcode": "9900000002244",
"valueBarcode": "9900000002572"
},
{
"optionBarcode": "9900000002367",
"valueBarcode": "9900000003371"
},
{
"optionBarcode": "9900000003098",
"valueBarcode": "9900000003104"
}
]
}
}
curl --location --request POST 'https://api.logictrade.cloud/rest/v1/products//variants' \
--header 'api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"description": "test variant",
"number": "007",
"webshopStartDate": "2025-07-17",
"configuration": {
"items": [
{
"optionBarcode": "9900000002244",
"valueBarcode": "9900000002572"
},
{
"optionBarcode": "9900000002367",
"valueBarcode": "9900000003371"
},
{
"optionBarcode": "9900000003098",
"valueBarcode": "9900000003104"
}
]
}
}'
{
"id": 0,
"number": "string",
"description": "string",
"invalid": true,
"barcode": "string",
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"webshop": true,
"webshopStartDate": "2019-08-24T14:15:22Z",
"webshopEndDate": "2019-08-24T14:15:22Z",
"configuration": {
"id": 0,
"items": [
{
"option": "string",
"optionBarcode": "string",
"optionCode": "string",
"value": "string",
"valueBarcode": "string",
"valueCode": "string"
}
]
},
"attributes": [
{
"id": 0,
"group": {
"code": "string",
"name": "string"
},
"type": "string",
"name": "string",
"suffix": "string",
"code": "string",
"sequence": 0,
"values": [
{
"id": 0,
"code": "string",
"value": "string"
}
]
}
]
}