Fetch Product Price
You can fetch the catalog data by sending a request to the Cataloglake method using the following code:
Python
try:
catalog_price_fetch = catalog.fetch_price(product_object)
print("catalog_price_fetch----", catalog_price_fetch)
except Exception as e:
print(f"Error fetching price data: {e}")
Example of Product Object
{
"items": [
{
"groc_item_id": "string"
}
]
}
Example App Code
product_object = {
"items": [
{
"groc_item_id": "1384267950"
}
]
}
catalog_price_fetch = catalog.fetch_price(product_object)
print("catalog_price_fetch----", catalog_price_fetch)
#RESPONSE FROM PRICE FETCH
# {
# "groc_account_id": "c4ca4238a0b923820dcc509a6f75849b",
# "items": [
# {
# "groc_item_id": "1384267950"
# }
# ]
# }
Last updated