Here i create a code for create a product in catalogue.
I used /{whatsapp_catalogue_id}/products this api
I will share my code also
import requests
json_data = {
"product_type":self.categ_id.name if self.categ_id else 'All',
"currency":self.env.company.currency_id.name,
"image_url":f'{base_url}/web/image/product.template/{self.id}/image_1920',
"name":self.name,
"price":int(self.list_price*100),
"retailer_id":str(self.id),
"description":self.name,
"link":"https://test.itieit.com/web#id=23&cids=2&menu_id=237&action=404&model=product.template&view_type=form"
}
_logger.info("=-=-json_data=---%s"%json_data)
response = headers = {
'Authorization':'Bearer accesstoken'
}
response = requests.request('POST', "https://graph.facebook.com/v18.0/{self.env.company.whatsapp_catalogue_id}/products", headers=headers, data=json_data)
When i send this request it is always give me error
{"error":{"message":"Invalid parameter","type":"OAuthException","code":100,"error_subcode":1803002,"is_transient":false,"error_user_title":"A required field is missing","error_user_msg":"Products without \"link\" information can't be uploaded. Please check that this field is included for each product in a separate, labelled column.","fbtrace_id":"AQC2Gd5rz3C4Ijy4qz0U2Jc"}}
This is message
Products without \"link\" information can't be uploaded. Please check that this field is included for each product in a separate, labelled column.
But i am sending link parameter already.
All the APIs are working only this API give me same error again and again even i am passing the parameter.