Skip to main content
POST
/
v3
/
{phone_number_id}
/
messages
Send Coupon Code Template Message
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",
  "recipient_type": "individual",
  "to": "91XXXXXXXXXX",
  "type": "template",
  "template": {
    "name": "copycode_07",
    "language": {
      "code": "en_US"
    },
    "components": [
      {
        "type": "body",
        "parameters": [
          {
            "type": "text",
            "text": "25OFF"
          },
          {
            "type": "text",
            "text": "25%"
          }
        ]
      },
      {
        "type": "button",
        "sub_type": "COPY_CODE",
        "index": 0,
        "parameters": [
          {
            "type": "coupon_code",
            "coupon_code": "25OFF"
          }
        ]
      }
    ]
  }
}