API Reference

Send Coupon Code Template Message

Send a template message that includes a 'Copy Code' button. You must pass the specific coupon code value in the button component parameters.

Example Request Body

{
  "messaging_product": "whatsapp",
  "to": "+919999XXXXXX",
  "type": "template",
  "template": {
    "name": "coupon_code_fall2023_25off",
    "language": {
      "code": "en"
    },
    "components": [
      {
        "type": "body",
        "parameters": [
          {
            "type": "text",
            "text": "25OFF"
          },
          {
            "type": "text",
            "text": "25%"
          }
        ]
      },
      {
        "type": "button",
        "sub_type": "COPY_CODE",
        "index": 1,
        "parameters": [
          {
            "type": "coupon_code",
            "coupon_code": "25OFF"
          }
        ]
      }
    ]
  }
}
Language
Click Try It! to start a request and see the response here!