Skip to main content
POST
/
v3
/
{phone_number_id}
/
messages
Order Details
curl --request POST \
  --url https://one.telepie.com/v3/{phone_number_id}/messages \
  --header 'apikey: <api-key>'

Request Body Parameters

phone_number_id
string
required
Specifies the recipient’s phone number in international format (e.g., “1xxxxxxxxxx”).
{
  "messaging_product": "whatsapp",
  "to": "{{Recipient phone number}}",
  "type": "interactive",
  "recipient_type": "individual",
  "interactive": {
    "type": "order_details",
    "body": {
      "text": "Test payment"
    },
    "header": {
      "type": "{{Media-type}}",
      "image": {
        "link": "{{Media-Url}}"
      }
    },
    "action": {
      "name": "review_and_pay",
      "parameters": {
        "reference_id": "EZV2023032712042512044720",
        "type": "digital-goods",
        "currency": "INR",
        "total_amount": {
          "value": 100,
          "offset": 100
        },
        "payment_settings": [
          {
            "type": "payment_gateway",
            "payment_gateway": {
              "type": "razorpay / payu",
              "configuration_name": "payment-config-id"
            }
          }
        ],
        "order": {
          "status": "pending",
          "items": [
            {
              "retailer_id": "R1",
              "product_id": "product-id",
              "name": "Test Payment Rs. 1",
              "amount": {
                "value": 100,
                "offset": 100
              },
              "quantity": 1
            }
          ],
          "subtotal": {
            "value": 100,
            "offset": 100
          },
          "tax": {
            "value": 0,
            "offset": 100
          }
        }
      }
    },
    "footer": {
      "text": "{{text}}"
    }
  }
}