This repo stores created product variants defined by a certain set of attribute values.

GET
Retrieve product variants by conditions

_cnd[limit]
array 
Sets the offset (first item) and the limit (second item)
_cnd[orderBy]
array 
Sets sorting order field
default Success <XLite\Module\XC\ProductVariants\Model\ProductVariant>[] array
Sample response
[{"id":"integer","product":"<XLite\\Model\\Product>","price":"string","defaultPrice":"boolean","amount":"integer","defaultAmount":"boolean","weight":"string","defaultWeight":"boolean","sku":"string","variant_id":"string","defaultValue":"boolean","image":"<XLite\\Module\\XC\\ProductVariants\\Model\\Image\\ProductVariant\\Image>","attributeValueC":"<XLite\\Model\\AttributeValue\\AttributeValueCheckbox>[] array","attributeValueS":"<XLite\\Model\\AttributeValue\\AttributeValueSelect>[] array","orderItems":"<XLite\\Model\\OrderItem>[] array"}]

GET
Retrieve product variant by id

id
integer Required
Id value of the ProductVariant object
default Success <XLite\Module\XC\ProductVariants\Model\ProductVariant>
Sample response
{"id":"integer","product":"<XLite\\Model\\Product>","price":"string","defaultPrice":"boolean","amount":"integer","defaultAmount":"boolean","weight":"string","defaultWeight":"boolean","sku":"string","variant_id":"string","defaultValue":"boolean","image":"<XLite\\Module\\XC\\ProductVariants\\Model\\Image\\ProductVariant\\Image>","attributeValueC":"<XLite\\Model\\AttributeValue\\AttributeValueCheckbox>[] array","attributeValueS":"<XLite\\Model\\AttributeValue\\AttributeValueSelect>[] array","orderItems":"<XLite\\Model\\OrderItem>[] array"}
id
integer
Unique ID
product
price
string
Price
defaultPrice
boolean
Default price flag
amount
integer
Amount
defaultAmount
boolean
Default amount flag
weight
string
Weight
defaultWeight
boolean
Default weight flag
sku
string
Product SKU
variant_id
string
Product variant unique id
defaultValue
boolean
Default flag
image
attributeValueC
[] array
Attribute value (checkbox)
attributeValueS
[] array
Attribute value (select)
orderItems
[] array
Product order items

PUT
Update product variant by id

id
integer Required
Id value of the ProductVariant object
<XLite\Module\XC\ProductVariants\Model\ProductVariant>
id
integer
Unique ID
product
price
string
Price
defaultPrice
boolean
Default price flag
amount
integer
Amount
defaultAmount
boolean
Default amount flag
weight
string
Weight
defaultWeight
boolean
Default weight flag
sku
string
Product SKU
variant_id
string
Product variant unique id
defaultValue
boolean
Default flag
image
attributeValueC
[] array
Attribute value (checkbox)
attributeValueS
[] array
Attribute value (select)
orderItems
[] array
Product order items
default Success <XLite\Module\XC\ProductVariants\Model\ProductVariant>
Sample response
{"id":"integer","product":"<XLite\\Model\\Product>","price":"string","defaultPrice":"boolean","amount":"integer","defaultAmount":"boolean","weight":"string","defaultWeight":"boolean","sku":"string","variant_id":"string","defaultValue":"boolean","image":"<XLite\\Module\\XC\\ProductVariants\\Model\\Image\\ProductVariant\\Image>","attributeValueC":"<XLite\\Model\\AttributeValue\\AttributeValueCheckbox>[] array","attributeValueS":"<XLite\\Model\\AttributeValue\\AttributeValueSelect>[] array","orderItems":"<XLite\\Model\\OrderItem>[] array"}
id
integer
Unique ID
product
price
string
Price
defaultPrice
boolean
Default price flag
amount
integer
Amount
defaultAmount
boolean
Default amount flag
weight
string
Weight
defaultWeight
boolean
Default weight flag
sku
string
Product SKU
variant_id
string
Product variant unique id
defaultValue
boolean
Default flag
image
attributeValueC
[] array
Attribute value (checkbox)
attributeValueS
[] array
Attribute value (select)
orderItems
[] array
Product order items

DELETE
Delete product variant by id

id
integer Required
Id value of the ProductVariant object
default Success <XLite\Module\XC\ProductVariants\Model\ProductVariant>
Sample response
{"id":"integer","product":"<XLite\\Model\\Product>","price":"string","defaultPrice":"boolean","amount":"integer","defaultAmount":"boolean","weight":"string","defaultWeight":"boolean","sku":"string","variant_id":"string","defaultValue":"boolean","image":"<XLite\\Module\\XC\\ProductVariants\\Model\\Image\\ProductVariant\\Image>","attributeValueC":"<XLite\\Model\\AttributeValue\\AttributeValueCheckbox>[] array","attributeValueS":"<XLite\\Model\\AttributeValue\\AttributeValueSelect>[] array","orderItems":"<XLite\\Model\\OrderItem>[] array"}
id
integer
Unique ID
product
price
string
Price
defaultPrice
boolean
Default price flag
amount
integer
Amount
defaultAmount
boolean
Default amount flag
weight
string
Weight
defaultWeight
boolean
Default weight flag
sku
string
Product SKU
variant_id
string
Product variant unique id
defaultValue
boolean
Default flag
image
attributeValueC
[] array
Attribute value (checkbox)
attributeValueS
[] array
Attribute value (select)
orderItems
[] array
Product order items

POST

<XLite\Module\XC\ProductVariants\Model\ProductVariant>
id
integer
Unique ID
product
price
string
Price
defaultPrice
boolean
Default price flag
amount
integer
Amount
defaultAmount
boolean
Default amount flag
weight
string
Weight
defaultWeight
boolean
Default weight flag
sku
string
Product SKU
variant_id
string
Product variant unique id
defaultValue
boolean
Default flag
image
attributeValueC
[] array
Attribute value (checkbox)
attributeValueS
[] array
Attribute value (select)
orderItems
[] array
Product order items
default Success <XLite\Module\XC\ProductVariants\Model\ProductVariant>
Sample response
{"id":"integer","product":"<XLite\\Model\\Product>","price":"string","defaultPrice":"boolean","amount":"integer","defaultAmount":"boolean","weight":"string","defaultWeight":"boolean","sku":"string","variant_id":"string","defaultValue":"boolean","image":"<XLite\\Module\\XC\\ProductVariants\\Model\\Image\\ProductVariant\\Image>","attributeValueC":"<XLite\\Model\\AttributeValue\\AttributeValueCheckbox>[] array","attributeValueS":"<XLite\\Model\\AttributeValue\\AttributeValueSelect>[] array","orderItems":"<XLite\\Model\\OrderItem>[] array"}
id
integer
Unique ID
product
price
string
Price
defaultPrice
boolean
Default price flag
amount
integer
Amount
defaultAmount
boolean
Default amount flag
weight
string
Weight
defaultWeight
boolean
Default weight flag
sku
string
Product SKU
variant_id
string
Product variant unique id
defaultValue
boolean
Default flag
image
attributeValueC
[] array
Attribute value (checkbox)
attributeValueS
[] array
Attribute value (select)
orderItems
[] array
Product order items