- 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;
},
>
Retrieves product by id