Skip to main content

Variant Details

Use this API to get the details of the variant. 
 

OAuthScope

ZohoCommerce.items.READ

 

HTTP Request

GET https://commerce.zoho.com/store/api/v1/variants/<variant_id>

Request Example

Copiedcurl -i -X GET \
   -H "Authorization:Zoho-oauthtoken ******" \
   -H "X-com-zoho-store-organizationid:687591958" \
 'https://commerce.zoho.com/store/api/v1/variants/1831511000001417001'

Success Response

Copied{
    "code": 0,
    "message": "success",
    "variant": {
        "product_id": "1831511000001417005",
        "product_name": "new",
        "variant_id": "1831511000001417001",
        "order": 1,
        "name": "new-L",
        "unit": "",
        "tax_id": "",
        "documents": [
        ],
        "description": "",
        "tax_name": "",
        "tax_percentage": 0,
        "tax_type": "",
        "product_type": "goods",
        "purchase_account_id": "1831511000000034003",
        "purchase_account_name": "Cost of Goods Sold",
        "account_id": "1831511000000000388",
        "account_name": "Sales",
        "inventory_account_id": "1831511000000034001",
        "inventory_account_name": "Inventory Asset",
        "attribute_id1": "1831511000001410300",
        "attribute_id2": "",
        "attribute_id3": "",
        "attribute_name1": "Size",
        "attribute_name2": "",
        "attribute_name3": "",
        "attribute_type1": "Text",
        "attribute_type2": "",
        "attribute_type3": "",
        "status": "active",
        "source": "user",
        "is_combo_product": false,
        "track_serial_number": false,
        "variant_type": "inventory",
        "rate": 123.00,
        "minimum_order_quantity": "",
        "maximum_order_quantity": "",
        "label_rate": 0.00,
        "pricebook_rate": 123.00,
        "purchase_rate": 0.00,
        "reorder_level": "",
        "initial_stock": 23.00,
        "initial_stock_rate": 123.000000,
        "package_details": {
            "length": "",
            "width": "",
            "height": "",
            "weight": "",
            "weight_unit": "lb",
            "dimension_unit": "in"
        },
        "vendor_id": "",
        "vendor_name": "",
        "stock_on_hand": 22.000000,
        "asset_value": "",
        "available_stock": 22.000000,
        "actual_available_stock": 22.000000,
        "available_sale_stock": 22.000000,
        "sku": "",
        "upc": "",
        "ean": "",
        "isbn": "",
        "part_number": "",
        "attribute_option_id1": "1831511000001410468",
        "attribute_option_id2": "",
        "attribute_option_id3": "",
        "attribute_option_name1": "L",
        "attribute_option_name2": "",
        "attribute_option_name3": "",
        "attribute_option_data1": "",
        "attribute_option_data2": "",
        "attribute_option_data3": "",
        "image_name": "",
        "custom_fields": [
        ],
        "custom_field_hash": {
        },
        "track_serial_number": false,
        "track_batch_number": false,
        "purchase_description": "",
        "image_type": "",
        "sales_channels": [
        ]
    }

Show full

Show less