Create a Product with Variant
OAuthScope
ZohoCommerce.items.CREATE
HTTP Request
POST https://commerce.zoho.com/store/api/v1/products
Body Parameters
Parameter | Description |
name* | string: Name of the product. |
url* | string: URL of the product. |
variant_type | string: Give variant_type as "inventory" to track inventory stock for the product. |
product_short_description | string: Concise description of the product. |
product_description | string: Detailed description of the product. |
show_in_storefront | boolean: When enabled, this shows the product in store. |
attribute_name1,attribute_name2, attribute_name3 | string: Give attribute name for the product. You can add maximum of 3 attributes. |
attribute_type1,attribute_type2,attribute_type3 | string: Give attribute type corresponding to the attribute name given. Two possible values are Text (default value) or Color. |
category_id | category_id long: Give the unique category_id to map the category. |
tags | array: Give the list of tags for the product. |
brand | string: Give the brand name for the product. |
is_returnable | boolean: Enable this if product can be returned by the customers. |
is_featured | boolean: Enable this if product is on sale. |
seo_title | string: Give title for SEO. |
seo_keyword | string: Give SEO keywords for the product. |
seo_description | string: Give SEO description for the product. |
specificationset_id | long: Give unique specification set ID to give specification details for the product. |
specifications | array: Give set of specification_id and specification_value_id. |
specification_id | long: Give unique specification id that denotes the label. |
specification_value_id | long: Give unique specification value id that denotes the value for the particular label. |
variants* | array: Give list of all the variants for the product |
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. |
sku | string: Give SKU for the variant. |
custom_fields | array: Give set of customfield_id and value for the variant |
customfield_id | long: Give unique cusomfield 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 calcuate 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 |
Request Example
Copied
Show full
Show less
Success Response
Copied
Show full
Show less
Use this API to create a product with n number of variants.