Update a Variant
OAuthScope
ZohoCommerce.items.UPDATE
HTTP Request
PUT https://commerce.zoho.com/store/api/v1/variants/
Body Parameters
Parameter | Description |
rate | string: Give selling price of the variant. |
initial_stock | string: Give stock count for the variant. This field is MANDATORY if you pass variant_type as "inventory |
attribute_option_name1, attribute_option_name2, attribute_option_name3 | string: Give attribute values for the corresponding attributes. For eg: If attribute_name1 is SIZE then give attribute_option_name1 (eg: large,medium,..etc) with the corresponding values. |
attribute_option_data1, attribute_option_data2, attribute_option_data3 | string: Give color code for the correspoding attributes. This field is only needed when you give attribute_type as colour.For Eg: If attribute_type2 is Colour then give corresponding color code value in attribute_option_data2. |
label_rate | string: Give retail price of the variant. |
document_ids | array: Give set of document_id of the iamges to map with variants. |
status | string: Give status of the variant. Allowed values: active, inactive. |
sku | string: Give SKU for the variant. |
custom_fields | array: Give set of custom_field values for the variant. |
customfield_id | long: Give unique custom field id to denote the label. |
value | string: Give corresponding values for the label. |
reorder_level | string: Low stock limit for the variant below which will trigger an email remainder. |
package_details | array: Give package details such as weight, width, height and length. This is used to calculate shipping charges at the time of checkout. |
height | string: Give the package height. |
weight | string: Give the package weight. |
length | string: Give the package length |
width | string: Give the package width. |
ean | string: Give EAN for the variant |
upc | string: Give UPC for the variant. |
isbn | string: Give ISBN for the variant. |
part_number | string: Give MPN for the variant. |
hsn_or_sac | string: Give HSN or SAC for the variant. For India only. |
avatax_tax_code | string: Give Avalara tax code for the variant. For US only. |
Sample Request
Copied
Success Response
Copied
Show full
Show less