# Transfer approval one-time code WhatsApp template

> Authentication template that sends a one-time code to approve a money transfer or new payee. Copy-code button, expiry and security note.

- Category: Authentication
- Industry: Finance and banking
- Use case: Verification code
- Language: en_US
- Approval rate: 75%
- Page: https://template-builder.dev/whatsapp-template/finance-transfer-approval-code
- JSON: https://template-builder.dev/whatsapp-template/finance-transfer-approval-code.json
- Open in the playground: https://template-builder.dev/playground#t=eyJuYW1lIjoiZmluYW5jZV90cmFuc2Zlcl9hcHByb3ZhbF9jb2RlIiwibGFuZ3VhZ2UiOiJlbl9VUyIsImNhdGVnb3J5IjoiQVVUSEVOVElDQVRJT04iLCJib2R5Ijp7ImFkZFNlY3VyaXR5UmVjb21tZW5kYXRpb24iOnRydWV9LCJmb290ZXIiOnsiY29kZUV4cGlyYXRpb25NaW51dGVzIjoxMH0sImJ1dHRvbiI6eyJ0eXBlIjoiT1RQIiwib3RwVHlwZSI6IkNPUFlfQ09ERSJ9fQ

## How to get it approved

Send the code only after the user starts the transfer, and invalidate it on expiry. Use a separate template from login codes so you can track them.

## Message text

One-time verification code with a copy button.

## Template JSON

```json
{
  "name": "finance_transfer_approval_code",
  "language": "en_US",
  "category": "AUTHENTICATION",
  "body": {
    "addSecurityRecommendation": true
  },
  "footer": {
    "codeExpirationMinutes": 10
  },
  "button": {
    "type": "OTP",
    "otpType": "COPY_CODE"
  }
}
```

## Create it with the Meta Cloud API

```sh
curl -X POST "https://graph.facebook.com/v26.0/$WABA_ID/message_templates" \
  -H "Authorization: Bearer $META_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "finance_transfer_approval_code",
  "language": "en_US",
  "category": "AUTHENTICATION",
  "components": [
    {
      "type": "BODY",
      "add_security_recommendation": true
    },
    {
      "type": "FOOTER",
      "code_expiration_minutes": 10
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "OTP",
          "otp_type": "COPY_CODE"
        }
      ]
    }
  ]
}'
```
