The Node.js SDK re-exports the WAJS namespace for TypeScript. This reference describes types from WA-JS 4.8.5-rc.0 . For operations available on a connected Node.js client, see Whatsapp . For functions running inside WhatsApp Web, see the WA-JS browser API .
getProductById ( chatId : string , productId : number , ) : Promise < { additional_image_cdn_urls : any [] ; availability : string ; capability_to_review_status : { key : "WHATSAPP" ; value : "APPROVED" } [] ; checkmark : boolean ; currency : string ; description : string ; id : string ; image_cdn_urls : { key : "requested" | "full" ; value : string } [] ; image_hashes_for_whatsapp : string [] ; is_hidden : boolean ; max_available : number ; name : string ; price : string ; retailer_id : string ; url : string ; whatsapp_product_can_appeal : boolean ; } , >
Parameters
chatId : string
productId : number
Returns Promise < { additional_image_cdn_urls : any [] ; availability : string ; capability_to_review_status : { key : "WHATSAPP" ; value : "APPROVED" } [] ; checkmark : boolean ; currency : string ; description : string ; id : string ; image_cdn_urls : { key : "requested" | "full" ; value : string } [] ; image_hashes_for_whatsapp : string [] ; is_hidden : boolean ; max_available : number ; name : string ; price : string ; retailer_id : string ; url : string ; whatsapp_product_can_appeal : boolean ; } , >
Defined in node_modules/@wppconnect/wa-js/dist/catalog/functions/getProductById.d.ts:27
Retrieves product by id