The product variant object contains information such as their title, sku, etc.
{
id: "00000000-0000-0000-0000-000000000000",
remoteId: "39302373802042",
createdTimestamp: 1618321872,
updatedTimestamp: 1683179792,
productId: "00000000-0000-0000-0000-000000000000",
title: "Blue",
price: "1000.00",
sku: "shirt-01-b",
optionValues: [
{
name: "Color",
value: "Blue"
}
],
inventory: {
totalCount: 93
},
weight: {
value: 100,
unit: "kg"
}
}
Properties
id
String
The unique identifier for this variant of the product.
remoteId
String
The ID of the object in the third-party application.
createdTimestamp
Number
The Unix timestamp representing when this product variant was created.
updatedTimestamp
Number
The Unix timestamp representing when this product variant was last updated.
productId
String
The unique identifier for the product this variant belongs to.
title
String
The name or title of this product variant.
price
String
The price of this product variant.
sku
String
The SKU (stock-keeping unit) of this product variant.
optionValues
Object[]
An array containing objects representing the option name and value for this variant, e.g. color: blue.
inventory
Object
An object containing inventory information for this variant, such as the total count available.
weight
Object
An object containing the weight and unit of measurement for this variant.
Option Value Object Properties
name
String
The name of the variant option. (e.g. color, size)
value
String
The value of the variant option. (e.g. blue, medium)
Inventory Object Properties
totalCount
Number
The total count of the variant in inventory.
Weight Object Properties
value
Number
The weight value of the variant.
unit
String
The weight unit of the variant.