Update Product

Sample payload for update product.

Webhook Event

product.update event triggered when a product is modified.

Payload

                    
                        {
                            "event":
                                {
                                    "name":"product.update"
                                },
                            "id":758,
                            "name":"Tata Tea Gold",
                            "image":"https://sourcehub.in/public/images/product/1666956662.jpg",
                            "sku":"tea-001",
                            "hsn_code":"4567",
                            "description":null,
                            "price_per_unit":0,
                            "maximum_retail_price":200,
                            "weight":500,
                            "vol":20,
                            "gst_percent":5,
                            "measurementtype":
                                {
                                    "id":4,
                                    "name":"bundle"
                                },
                            "productcategory":
                                {
                                    "id":18,
                                    "name":"Tea",
                                    "image":"https://sourcehub.in/public/images/productcategory/1666956553.jpg"
                                },
                            "productpricings":
                                [
                                    {
                                        "id":1446,
                                        "product_id":758,
                                        "buying_qty":1,
                                        "price":200
                                    },
                                    {
                                        "id":1447,
                                        "product_id":758,
                                        "buying_qty":5,
                                        "price":500
                                    }
                                ]
                        }
                    
                

Response Parameters

Parameter Datatype Description
event Collection The webhook event.
event.name String The webhook event name.
id Integer The unique identifier of the product.
name String The name of the product.
image String (URL) The URL of the product image.
sku String The SKU of the product and this also a unique identifier of the product.
hsn_code String The HSN code of the product.
description String The description of the product (if the product has no description return value is null).
price_per_unit Double Price of the per unit product.
maximum_retail_price Double MRP of the product.
weight Double Per unit weight of the product.
vol Double Per unit volume of the product (if the product has no vol return value is null).
gst_percent Double GST percentage of the product.
measurementtype Collection Collection of product measurement type.
measurementtype.id Integer The unique identifier of the product measurement type.
measurementtype.name String The name of the product measurement type.
productcategory Collection Collection of product categories.
productcategory.id Integer The unique identifier of the product category.
productcategory.name String The name of the product category.
productcategory.image String (URL) The URL of the product category image.
productpricings Collection Collection of product pricings.
productpricings.id Integer Unique identifier or id of the product pricing or pricing set. Product pricings are pricing sets setup for specific buying quantities of the same product. Example - Tata Tea Gold is the product and Pack of 12, Pack of 18 or Pack of 24 are 3 product pricing sets of the product.
productpricings.product_id Integer ID of the product.
productpricings.buying_qty Integer Product Pricings are basically selling prices for a specific set of quantity or pricing set. Here buying_qty refers to the qty against the pricing set .
productpricings.price Double Selling price of the specific product pricing or pricing set against the specific buying quantity .
Page Overview