@wppconnect-team/wppconnect - v1.36.4
    Preparing search index...

    Function getProductById

    • Retrieves product by id

      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;
          },
      >

      // Retrieve data of product
      await WPP.catalog.getProductById('5521985565656@c.us', '68685985868923');