Create order_details template message via API

Você pode encontrar abaixo um exemplo de como criar um template do tipo order_details por API:

Criar order_details template
POST - https://waba-v2.360dialog.io/message_templates

Payload:
{
  "name": "order_details_pix_2",
  "language": "pt_BR",
  "category": "UTILITY",
  "display_format": "ORDER_DETAILS",
  "components": [
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "Teste pagamento pix"
    },
    {
      "type": "BODY",
      "text": "Obrigado pela sua compra. Segue abaixo o codigo"
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "ORDER_DETAILS",
          "text": "Copy Pix code"
        }
      ]
    }
  ]
}

English

You can find below an example to create an order_details template message via API:

Create order_details template message
POST - https://waba-v2.360dialog.io/message_templates

Payload:
{
  "name": "order_details_pix_2",
  "language": "pt_BR",
  "category": "UTILITY",
  "display_format": "ORDER_DETAILS",
  "components": [
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "Teste pagamento pix"
    },
    {
      "type": "BODY",
      "text": "Obrigado pela sua compra. Segue abaixo o codigo"
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "ORDER_DETAILS",
          "text": "Copy Pix code"
        }
      ]
    }
  ]
}

Last updated

Was this helpful?