Update Product Price in Catalog
You can update the pricing information of specific products by sending a request to the Cataloglake API using the following code:
Python
try:
catalog_price_update = catalog.update_price(product_object)
print("catalog_price_update----", catalog_price_update)
except Exception as e:
print(f"Error updating price: {e}")Example Product Object
{
"items": [
{
"groc_item_id": "2640001967",
"pricing_info": {
"mrp": "599.00",
"sale_price": "299.00",
"discount_start_date": "",
"discount_end_date": "",
"discounted_price": ""
}
}
]
}Example App Code
Last updated