• Send a order message To send (prices, tax, shipping or discount), for example: USD 12.90, send them without dots or commas, like: 12900

    Parameters

    Returns Promise<SendMessageReturn>

    Example

    // Send Order with a product
    WPP.chat.sendOrderMessage('[number]@c.us', [
    { type: 'product', id: '67689897878', qnt: 2 },
    { type: 'product', id: '37878774457', qnt: 1 },
    ]

    // Send Order with a custom item
    WPP.chat.sendOrderMessage('[number]@c.us', [
    { type: 'custom', name: 'Item de cost test', price: 120000, qnt: 2 },
    ]

    // Send Order with custom options
    WPP.chat.sendOrderMessage('[number]@c.us', [
    { type: 'product', id: '37878774457', qnt: 1 },
    { type: 'custom', name: 'Item de cost test', price: 120000, qnt: 2 },
    ],
    { tax: 10000, shipping: 4000, discount: 10000 }