{
"event_type": "variant.created", // variant.updated
"payload": {
"product_number": "PROD-123",
"product_id": "123e4567-e89b-12d3-a456-426614174000",
"product_slug": "sample-product",
"variant_name": "Sample Variant",
"variant_number": "VAR-123",
"validate_stock": true,
"status": "active",
"id": "123e4567-e89b-12d3-a456-426614174001",
"images": [
{
"id": "123e4567-e89b-12d3-a456-426614174001",
"url": "https://example.com/images/coffee-maker.jpg",
"alt": "Premium Coffee Maker",
"status": "active",
"title": "Premium Coffee Maker - Main Image",
"copyright": "© 2024 Your Brand",
"sort": 1
}
],
"translations": {
"variant_name": [
{
"country_code": "us",
"value": "Sample Variant"
},
{
"country_code": "es",
"value": "Variante de Muestra"
}
],
"variant_description": [
{
"country_code": "us",
"value": "Sample variant description"
},
{
"country_code": "es",
"value": "Descripción de la variante"
}
],
"product_slug_translations": [
{
"country_code": "us",
"value": "sample-product"
},
{
"country_code": "es",
"value": "producto-muestra"
}
]
},
"description": "Sample variant description",
"image_url": "https://example.com/images/variant.jpg",
"is_active": true,
"attributes": [
{
"id": "123e4567-e89b-12d3-a456-426614174002",
"name": "Size",
"key": "size",
"template_key": "size_template",
"values": {
"size": [
{
"id": "123e4567-e89b-12d3-a456-426614174003",
"key": "large",
"type": "size",
"value": "Large",
"translations": {
"value": [
{
"country_code": "us",
"value": "Large"
}
]
}
}
]
}
}
],
"product_dimensions": {
"width": 10,
"height": 20,
"length": 30,
"depth": 15,
"weight": 1000,
"diameter": 5,
"capacity_milliliter": 500
},
"package_dimensions": {
"width": 15,
"height": 25,
"length": 35,
"depth": 20,
"weight": 1200,
"diameter": 10,
"capacity_milliliter": 0
},
"tags": [],
"is_archive": false,
"shipping_attributes": ["fragile", "oversized"],
"brand": {
"id": "123e4567-e89b-12d3-a456-426614174004",
"name": "Sample Brand",
"series": {
"id": "123e4567-e89b-12d3-a456-426614174005",
"name": "Premium Series"
}
},
"listings": {
"static": [
{
"id": "123e4567-e89b-12d3-a456-426614174006",
"slug": "static-listing"
}
],
"smart": [
{
"id": "123e4567-e89b-12d3-a456-426614174007",
"slug": "smart-listing"
}
]
},
"collections": [
{
"id": "123e4567-e89b-12d3-a456-426614174008",
"slug": "summer-collection",
"title": "Summer Collection",
"status": "active",
"translation": {
"title": [
{
"country_code": "us",
"value": "Summer Collection"
}
],
"slug": [
{
"country_code": "us",
"value": "summer-collection"
}
]
}
}
]
}
}