The product variant object contains information such as their title, sku, etc.
{
id: "00000000-0000-0000-0000-000000000000",
remoteId: "200100200100",
productId: "00112233-4455-6677-8899-aabbccddeeff",
remoteCreatedAt: "2023-11-19T17:00:17.000Z",
remoteUpdatedAt: "2023-11-19T17:00:17.000Z",
remoteDeleted: false,
createdAt: "2024-02-22T11:17:53.264Z",
updatedAt: "2024-02-22T13:54:03.445Z"
title: "Medium",
price: "25.00",
sku: "SHIRT-M",
optionValues: [
{
name: "Size",
value: "Medium"
}
],
inventory: {
totalCount: 50
},
weight: [
{
value: 9.525451098148434,
unit: "kg"
},
{
value: 9525.451098148435,
unit: "g"
},
{
value: 336.00076203608785,
unit: "oz"
},
{
value: 20.999999999999996,
unit: "lb"
}
]
}
Properties
id
String
The unique identifier for this variant of the product.
remoteId
String
The ID of the object in the third-party application.
productId
String
The unique identifier for the product this variant belongs to.
title
String
read-only
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.
remoteCreatedAt
DateTime
The exact date and time when the record was first added or created in the third-party application.
remoteUpdatedAt
DateTime
The latest date and time when any modifications or updates were made to the record's details in the third-party application.
remoteDeleted
Boolean
Flag to indicate that the record has been deleted in the third-party application.
createdAt
DateTime
Date and time the record has been synced into the data cache.
updatedAt
DateTime
Date and time the record has been updated in the data cache.
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.