Shopify

Add WhatsApp OTP phone verification to Shopify

You can verify Shopify customers' phone numbers with a WhatsApp code by calling the WAppOTP API from a Shopify app backend or App Proxy route. WAppOTP provides the integration guide and example code; the secret API key always stays on your server.

Shopify stores that sell cash on delivery or ship locally lose money on unreachable customers. A WhatsApp OTP step confirms the phone before you ship, and the same WAppOTP project can send shipping and delivery updates.

Today the Shopify integration is a developer guide with example code for a custom Shopify app (built on Shopify's React Router app template), not a one-click App Store listing.

Updated

How the flow works

  1. The customer enters a phone number in your storefront.
  2. The storefront calls your Shopify app backend (or an App Proxy route).
  3. Your backend calls POST /v1/otp/send with the WAppOTP project key and keeps only the verificationId in the session.
  4. The customer types the code; your backend calls POST /v1/otp/verify.
  5. When valid is true, your app marks the order or account as phone-verified.

Backend example (Node.js)

Node.js
import { WhatsAppOtpClient } from "@whatsappotp/sdk";

const whatsapp = new WhatsAppOtpClient({
  baseUrl: process.env.WHATSAPPOTP_API_URL,
  apiKey: process.env.WHATSAPPOTP_API_KEY
});

const sent = await whatsapp.sendOtp({ to: "+639171234567" });
const checked = await whatsapp.verifyOtp({
  verificationId: sent.verificationId,
  code: codeFromCustomer
});

Keep the key secret

  • Never put a WAppOTP secret key in Liquid, theme JavaScript, Checkout UI extensions or storefront code.
  • Call the API only from your app backend or an App Proxy route.
  • Store only the verificationId in the browser session.

Send order updates on WhatsApp

Save a message template such as "Hi {{name}}, your order {{order}} has shipped" and send it with one API call when an order is fulfilled. Long tracking links can be shortened automatically with the URL shortener add-on.

Frequently asked questions

Is there a one-click Shopify app?

Not yet. The integration is a guide with example code for your own Shopify app backend. WooCommerce has a ready-made WordPress plugin.

Do I need the WhatsApp Business API for Shopify?

No. WAppOTP uses the WhatsApp number you link by QR, so there is no Meta onboarding.

Can I send shipping updates too?

Yes. Use POST /v1/messages with text or a saved template, with delivery and read status for every message.

Start sending in minutes

Free plan, no card and no Meta approval. Link your WhatsApp number by QR and make your first API call today.

Create a free account

Related