v1

latestOpenAPI 3.0.02026-07-2483164186.3 KB
Outgoing Messages

Send Whatsapp Order (Payment) Message

Send Whatsapp Order (Payment) Message

post/whatsapp/message/order

Request body

tostring phone

The phone number to which the message is sent, with the country code.

fromstring phone

The WABA phone number the message is sent from, with the country code.

messageIdstring

Message ID (UUID v4). Generated if not provided.

Example request

{
  "to": "9199999999",
  "from": "9199999999",
  "messageId": "uuid-v4",
  "content": {
    "header": {
      "link": "https://example.com/thumb.jpg"
    },
    "body": "Great pick! Review the details and pay to confirm your booking.",
    "footer": "Secure payment via WhatsApp",
    "orderDetails": {
      "configurationName": "doubletick_payments_test",
      "referenceId": "pay_abc123xyz",
      "provider": "razorpay",
      "currency": "INR",
      "type": "digital-goods",
      "items": [
        {
          "name": "Goa 3N/4D Package",
          "amount": 8,
          "quantity": 1,
          "saleAmount": 2,
          "retailerId": "SKU-GOA-01",
          "countryOfOrigin": "IN",
          "importerName": "Acme Imports",
          "importerAddress": {
            "addressLine1": "12 MG Road",
            "addressLine2": "Near Central Mall",
            "city": "Bengaluru",
            "state": "Karnataka",
            "countryCode": "IN",
            "postalCode": "560001",
            "zoneCode": "KA"
          }
        }
      ],
      "taxDescription": "GST",
      "discount": 1,
      "catalogId": "123456789"
    }
  }
}