# Create order\_details template message via API

You can find below an example to create an order\_details template message via API:

<details>

<summary>Create order_details template message</summary>

```json
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"
        }
      ]
    }
  ]
}
```

</details>

***

## Portuguese version

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

<details>

<summary>Criar order_details template</summary>

```json
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"
        }
      ]
    }
  ]
}
```

</details>
