WhatsApp Verification Codes Before Refunds, Order Changes and Account Steps

By Alva Chew 7 min read Updated November 26, 2026

To verify a customer on WhatsApp, send a one-time code with a WhatsApp authentication message and check it before the sensitive step. AeroChat does this inside the chat: when a customer asks for a refund, an order change or their order history, it sends a code with a Copy code button, checks what the customer pastes, and only then carries out the request. You choose which steps need a code, and the same check works on website chat and email.

What it is

Meta’s term is an authentication template: a WhatsApp message that carries a one-time passcode, also called an OTP or verification code. Businesses use them for logins and to confirm a person before a sensitive action.

A phone number on a chat is a good sign of who you are talking to, but it is not proof. A shared phone, a borrowed handset or a customer who hides their number behind a WhatsApp username all leave room for doubt. A code sent to the customer’s own WhatsApp, and typed back, closes that gap before money moves or an order changes.

What the customer sees

Customer: Hi, the blender from order #5820 arrived cracked. Can I get a refund? (example)

AeroChat: Sorry it arrived damaged. To protect your account, I’ve sent you a 6-digit code in a separate message. Paste it here and I’ll process the refund.

WhatsApp message: 481 092 is your verification code. This code expires in 10 minutes. [Copy code]

Customer: 481092

AeroChat: Thanks, you’re verified. Your refund of $89.00 to your original card is done. It usually shows on your statement within 5 to 10 business days (example).

What happens in your systems: the code is checked by AeroChat, the refund is created on order #5820 in your store, and a verified record is kept on the customer’s profile with the time of the check.

How AeroChat handles it, step by step

  1. A sensitive step is requested. The customer asks for something you marked as needing a code, such as a refund.
  2. The step waits. AeroChat will not run it until this customer has passed a code in this conversation within the time you set. This is a fixed rule in AeroChat, not a choice the AI makes.
  3. A code goes out on the customer’s own channel. On WhatsApp it is an authentication message with a Copy code button. A new code replaces the previous one, and each code works once.
  4. The customer pastes it. AeroChat checks it and tells the conversation only whether it passed. The digits are never passed to the AI, and AeroChat stores a scrambled form of each code, never the code itself.
  5. The step runs. The refund, cancellation or lookup goes ahead, and the customer gets the result in the same chat.
  6. Wrong or late codes are handled. A wrong code reports how many tries are left. At the limit the code locks. An expired code gets a fresh one on request. If the customer cannot pass, the step is not done and your team is alerted.

Steps you can protect

Step Examples
Refunds Full and partial refunds
Order changes Canceling an order, editing items, changing the delivery address
Order history Listing past orders or the customer’s purchase history
Checkout and login Account linking, sign-in, checkout on the customer’s behalf
Cash on delivery and high-value orders COD confirmations, and any order at or above an amount you set
Vouchers and loyalty Redeeming points, rewards and vouchers
AI agent approvals Requests made by a customer’s own AI agent that need the customer’s approval

You can also list extra steps that always need a code, and steps that never do. The check stays off until you turn it on.

On other channels and for customers without a number

  • Website chat and email: the code goes to the customer’s email address, and they type it into the chat.
  • Customers who hide their phone number: Meta does not send authentication messages to a customer known only by their business-scoped user ID. AeroChat emails the code if it has their address. If not, it sends WhatsApp’s one-tap share phone number button and sends the code once they share it.
  • If Meta refuses the message (for example the template is not approved yet), AeroChat emails the code when it can. Otherwise the step is not done and your team is alerted.
  • Channels that cannot carry a code, such as Instagram or Messenger: the protected step is not done in that chat, and your team is alerted to finish it.

Set it up in AeroChat

  1. In your WhatsApp number’s settings in AeroChat, turn on Login codes.
  2. Choose the code settings: length, how long a code lasts, wrong tries allowed, codes per customer per hour, and the wait before a new code.
  3. Submit the authentication template from the same screen. Meta reviews it, and the status updates in AeroChat when it is approved.
  4. Turn on “Ask for a code before sensitive steps” and tick the steps to protect, plus the high-value amount if you use it.
  5. If you have your own Android app and want codes to fill in by themselves, add the app’s package name and signing hash, then resubmit the template.

Copy this into AeroChat

When a customer asks for a refund on WhatsApp, follow these steps.

  1. Find the order by their phone number, or ask for the order number if there is no match.
  2. Check the order is inside our 30-day refund window (example).
  3. Verify the customer with a code before refunding.
  4. Refund to the original payment method and tell them the amount and when it will show.
  5. If the order is outside the window, offer store credit instead.

Reply in the customer’s language.

Limits Meta sets

From Meta’s authentication template and business-scoped user ID documentation, checked 26 November 2026:

  • The message text is fixed by Meta: “code is your verification code”, with an optional security line and an expiry line. You cannot write your own wording.
  • The expiry line can be set from 1 to 90 minutes.
  • Three delivery styles exist. Copy code works everywhere. One-tap autofill opens your Android app with the code, and on iOS 26 and later the keyboard suggests the code. Zero-tap fills the code into your Android app with no tap and works on Android only.
  • The code is shown only on the customer’s main phone. Linked devices see a masked prompt.
  • Copy code, one-tap and zero-tap authentication messages need the customer’s phone number. They cannot go to a business-scoped user ID.
  • Authentication is its own message category with its own rate per country. See WhatsApp pricing.

Questions

How do I verify a customer on WhatsApp before showing their order?

Send a one-time code with a WhatsApp authentication message and ask the customer to paste it back. AeroChat does this automatically before any step you mark as sensitive, including order history.

Does the AI see the code?

No. AeroChat checks the code itself and only tells the conversation whether it passed. It stores a scrambled form of each code, never the digits.

Can I use WhatsApp codes for logins to my own app?

Yes. With your Android app’s package name and signing hash, one-tap and zero-tap codes go straight into your app, and your app sends the code to AeroChat to check.

What if the customer uses a WhatsApp username and hides their number?

Meta does not send authentication codes without a phone number. AeroChat emails the code if it has the customer’s email, or asks them to share their number with one tap.

Will every refund now need a code?

Only if you choose that. The check is off until you turn it on, and you pick the steps it covers. Once a customer passes, they are not asked again in that conversation for the time you set.

Protect refunds and order changes on WhatsApp

Let AeroChat finish refunds, cancellations and address changes in the chat, with a code check first. More on the WhatsApp features page and in our guide to agentic WhatsApp.

Start your 7-day free trial. No credit card needed.

On Shopify? Install AeroChat from the Shopify App Store.

Related workflows: returns and refunds, order changes, COD confirmation and loyalty. Stores on Shopify and WooCommerce are built in.