Variant events
Every event has the common fields and a data object, the snapshot of the entity at the moment of the event. This page lists what data holds, for the version 2026-01 of the format.
Events
| Event | When |
|---|---|
product-variant.assets.replaced | The images and videos of a variant are replaced: the new full list is sent. |
product-variant.attributes.replaced | The attribute values of a variant are replaced: the new full list is sent. |
product-variant.created | A variant is created. |
product-variant.deleted | A variant is deleted. |
product-variant.option-values.replaced | The option values of a variant are replaced: the new full list is sent. |
product-variant.prices.replaced | The prices of a variant are replaced: the new full list is sent. |
product-variant.shipping-methods.replaced | The shipping methods of a variant are replaced: the new full list is sent. |
product-variant.shipping-zones.replaced | The shipping zones of a variant are replaced: the new full list is sent. |
product-variant.stock.updated | The stock of a variant changes. |
product-variant.tags.replaced | The tag values of a variant are replaced: the new full list is sent. |
product-variant.tax-zones.replaced | The tax zones of a variant are replaced: the new full list is sent. |
product-variant.updated | A variant is updated. |
Payloads
Payload of product-variant.assets.replaced
| Field | Type | Notes |
|---|---|---|
data.productId | uuid | |
data.variantId | uuid | |
data.assets | object[] | |
data.assets[].id | uuid | |
data.assets[].url | string | |
data.assets[].type | string | |
data.assets[].fileName | string | can be null |
data.assets[].size | number | can be null |
data.assets[].alt | string | can be null |
data.assets[].thumbnail | string | can be null |
data.assets[].externalId | string | can be null |
data.assets[].createdAt | datetime | optional |
data.assets[].updatedAt | datetime | optional |
Payload of product-variant.attributes.replaced
| Field | Type | Notes |
|---|---|---|
data.productId | uuid | |
data.variantId | uuid | |
data.attributes | object[] | |
data.attributes[].attributeId | uuid | |
data.attributes[].value | string |
Payload of product-variant.created
Also sent for: product-variant.updated.
| Field | Type | Notes |
|---|---|---|
data.productId | uuid | |
data.variantId | uuid | |
data.name | string | |
data.slug | string | |
data.visible | boolean | |
data.isFavourite | boolean | |
data.inheritAssets | boolean | |
data.inheritTagValues | boolean | |
data.inheritAttributes | boolean | |
data.inheritPackageDimensions | boolean | |
data.inheritShippingMethods | boolean | |
data.inheritShippingZones | boolean | |
data.inheritTaxZones | boolean | |
data.inheritDisableCoupons | boolean | |
data.disableCoupons | boolean | |
data.packageWeight | number | can be null |
data.packageLength | number | can be null |
data.packageWidth | number | can be null |
data.packageHeight | number | can be null |
data.sku | string | can be null |
data.ean | string | can be null |
data.mpn | string | can be null |
data.upc | string | can be null |
data.gtin | string | can be null |
data.isbn | string | can be null |
data.asin | string | can be null |
data.hsCode | string | can be null |
data.supplierCode | string | can be null |
data.externalId | string | can be null |
data.useStripeTax | boolean | |
data.taxCodeExternalId | string | can be null |
data.allowBackorder | boolean | |
data.purchaseRestock | boolean | |
data.allowFreeShipping | boolean | |
data.forceFreeShipping | boolean | |
data.backorderDays | integer | |
data.maxOrderQuantity | integer | |
data.createdAt | datetime | |
data.updatedAt | datetime | |
data.metadata | any | optional |
data.translations | any | optional |
Payload of product-variant.deleted
| Field | Type | Notes |
|---|---|---|
data.productId | uuid | |
data.variantId | uuid |
Payload of product-variant.option-values.replaced
| Field | Type | Notes |
|---|---|---|
data.productId | uuid | |
data.variantId | uuid | |
data.options | object[] | |
data.options[].optionId | uuid | |
data.options[].productOptionValueId | uuid |
Payload of product-variant.prices.replaced
| Field | Type | Notes |
|---|---|---|
data.productId | uuid | |
data.variantId | uuid | |
data.prices | object[] | |
data.prices[].currencyCode | string | |
data.prices[].cadence | string | |
data.prices[].amount | string | |
data.prices[].comparePrice | string | can be null |
data.prices[].externalId | string | can be null |
data.prices[].isDefault | boolean | |
data.prices[].quantityTable | any | can be null |
Payload of product-variant.shipping-methods.replaced
| Field | Type | Notes |
|---|---|---|
data.productId | uuid | |
data.variantId | uuid | |
data.shippingMethods | object[] | |
data.shippingMethods[].id | uuid | |
data.shippingMethods[].label | string | |
data.shippingMethods[].provider | string | can be null |
data.shippingMethods[].availableCountries | string[] | |
data.shippingMethods[].etaMin | number | can be null |
data.shippingMethods[].etaMax | number | can be null |
data.shippingMethods[].pricing | any | |
data.shippingMethods[].enabled | boolean | |
data.shippingMethods[].maxWeight | number | can be null |
data.shippingMethods[].maxVolume | number | can be null |
data.shippingMethods[].assetId | string | can be null |
data.shippingMethods[].createdAt | datetime | optional |
data.shippingMethods[].updatedAt | datetime | optional |
Payload of product-variant.shipping-zones.replaced
| Field | Type | Notes |
|---|---|---|
data.productId | uuid | |
data.variantId | uuid | |
data.shippingZones | object[] | |
data.shippingZones[].id | uuid | |
data.shippingZones[].label | string | |
data.shippingZones[].countryCode | string | |
data.shippingZones[].surchargePricing | any | |
data.shippingZones[].taxRate | number | |
data.shippingZones[].stripeTaxRateId | string | can be null |
data.shippingZones[].createdAt | datetime | optional |
data.shippingZones[].updatedAt | datetime | optional |
Payload of product-variant.stock.updated
| Field | Type | Notes |
|---|---|---|
data.productId | uuid | |
data.variantId | uuid | |
data.stock.warehouseId | uuid | |
data.stock.quantity | integer |
Payload of product-variant.tags.replaced
| Field | Type | Notes |
|---|---|---|
data.productId | uuid | |
data.variantId | uuid | |
data.tagValues | object[] | |
data.tagValues[].id | uuid | |
data.tagValues[].tagId | string | |
data.tagValues[].storeId | string | |
data.tagValues[].value | string | |
data.tagValues[].alias | string | can be null |
data.tagValues[].visible | boolean | |
data.tagValues[].createdAt | datetime | optional |
data.tagValues[].updatedAt | datetime | optional |
Payload of product-variant.tax-zones.replaced
| Field | Type | Notes |
|---|---|---|
data.productId | uuid | |
data.variantId | uuid | |
data.taxZones | object[] | |
data.taxZones[].id | uuid | |
data.taxZones[].label | string | |
data.taxZones[].rate | number | |
data.taxZones[].stripeId | string | can be null |
data.taxZones[].countryCode | string | can be null |
data.taxZones[].isDefault | boolean | |
data.taxZones[].createdAt | datetime | optional |
data.taxZones[].updatedAt | datetime | optional |