
How to Send Messages Using WhatsApp API for Shopify Stores: Steps and Sample Commands Explained
How to Send Messages Using WhatsApp API for Shopify Stores: Steps and Sample Commands Explained
You launch a sale on your Shopify store, but customer momentum rarely holds on its own. Shoppers want quick answers on stock, shipping, payment options, and order status, and when those replies are delayed, interest slips away. That pressure is growing because messaging is now part of the buying process.
Meta reports that 175 million people message a business on WhatsApp every day, and its latest global consumer research found that 72.4% of consumers are more likely to purchase from a brand that offers messaging.
That creates a clear challenge for e-commerce merchants. If your team is still handling these conversations manually, customer communication becomes slow, repetitive, and difficult to scale during campaigns, peak sales periods, and fulfillment rushes.
The WhatsApp Business API solves that problem, and platforms like Zoko make it easy to use without managing technical complexity.
Key Takeaways
- WhatsApp Business API enables scale that the WhatsApp Business app cannot. While the app works for small teams on a single device, the API allows Shopify brands to automate messages, manage multiple agents, and integrate WhatsApp with Shopify and support tools.
- WhatsApp messaging delivers strong engagement for e-commerce. Industry benchmarks show 45–60% click-through rates, making it effective for cart recovery, order updates, and customer notifications.
- Sending messages through the API follows a structured process. Shopify merchants need API credentials from a BSP, approved message templates, customer opt-ins, and automation triggers tied to store events.
- API message requests follow a defined structure. Each request specifies the recipient number, message type, template name, and dynamic variables such as customer name or product details.
- The API supports multiple message formats. Shopify stores can send template messages, session replies, interactive messages with buttons, and media messages like invoices, product images, or guides.
What Is the WhatsApp Business API?
The WhatsApp Business API (now officially called the WhatsApp Business Platform) is Meta's enterprise-grade messaging solution. Unlike the standard WhatsApp Business app, which is designed for solo owners using a single device, the API is built for businesses that need to send messages at scale, automate customer journeys, and integrate WhatsApp with existing tools like Shopify, CRMs, or helpdesk software.
WhatsApp Business App vs. WhatsApp Business API
The WhatsApp Business app works like a beefed-up personal WhatsApp. One device, one number, limited automation. It is great if you're running a tiny store and personally managing every chat.
The WhatsApp Business API, on the other hand, allows you to connect your number to third-party platforms, run automated message flows, manage multiple agents on the same number, and send messages to thousands of opted-in customers.
For growing Shopify brands, the API is the only real option if you want to scale WhatsApp as a revenue channel.
Why Shopify Merchants Should Be Using the WhatsApp API
Beyond the eye-catching open rate figures, here is why the WhatsApp API has become a priority channel for e-commerce brands:
- Automated shipping updates, delivery confirmations, and refund notices land directly in a customer's WhatsApp, a channel they check 23-25 times a day.
- Brands using WhatsApp for cart recovery report up to 33% recovery rates, compared to single-digit percentages for email retargeting.
- Unlike email, WhatsApp is conversational. Customers can reply, ask questions, and complete purchases without ever leaving the chat.
- According to industry benchmarks, WhatsApp messages can achieve 45-60% click-through rates, compared to 2-5% for email.
- 75% of consumers want post-purchase support via messaging apps. Being there on WhatsApp builds trust and repeat purchases.
How to Get Access to the WhatsApp Business API
You cannot access the WhatsApp Business API directly by signing up on a website. You need to go through a Meta Business Solution Provider (BSP) such as Zoko, a Meta-approved platform that handles the API infrastructure for you. Here is the general path to getting set up:
- Create a Meta Business Manager account at business.facebook.com.
- Verify your business by submitting the required documentation (business registration, website, etc.). This takes 1-3 business days.
- Choose a WhatsApp Business Solution Provider (BSP). This is where your API access lives. The BSP handles message delivery and compliance, and provides you with a dashboard or an integration layer.
- Register a dedicated phone number for your WhatsApp Business Account. This number cannot already be active on a personal or standard WhatsApp account.
- Apply for and get approved for a WhatsApp Business Account (WABA) through your BSP.
- Connect your Shopify store to the BSP platform to enable automated triggers, order syncing, and customer data flow.
Once this setup is complete, you will be ready to send messages programmatically using the WhatsApp API.
Also Read: How to Add and Manage WhatsApp Business Contacts Easily
How to Send Messages Using WhatsApp API for Shopify: Step-by-Step
Once you understand what the WhatsApp Business API does, the next step is learning how messages are actually sent from a Shopify store. Behind the scenes, the API works through a structured workflow where store events trigger message requests that are delivered to customers through WhatsApp.
Step 1: Obtain Your API Credentials
Your BSP will provide you with a permanent access token and a Phone Number ID. These are the two key credentials you will use to authenticate every API request. Store them securely; you should never expose them in client-side code.
Step 2: Create and Submit a Message Template
For outbound messages (messages you initiate to a customer outside a 24-hour conversation window), WhatsApp requires pre-approved message templates. Templates must be submitted through your BSP or directly in Meta Business Manager.
Templates fall into three categories:
- Marketing: Promotional messages, product launches, and sale announcements.
- Utility: Order confirmations, shipping updates, payment receipts, and delivery alerts.
- Authentication: One-time passwords, login verification codes.
Each template requires a name, language, and optional variable placeholders (e.g., {{1}} for dynamic values like a customer's name or order number). Meta reviews templates before approving them, which takes a few hours to a day.
Step 3: Collect Customer Opt-Ins
This is non-negotiable. WhatsApp strictly prohibits messaging users who have not explicitly opted in to receive messages from your business. On Shopify, opt-in collection is done at checkout (a checkbox agreeing to receive WhatsApp notifications), via a pop-up, or through a Click-to-WhatsApp ad flow. Using a BSP like Zoko handles the opt-in compliance infrastructure, so you don't have to build it from scratch.
Step 4: Send a Message via the API
Once your template is approved and you have your customer's opted-in phone number, your BSP platform, or your connected Shopify integration, automatically sends the message on your behalf whenever a store event triggers it.
For example, when a customer places an order, the system picks up that event, fills in the customer's name and order details, and delivers the approved template to their WhatsApp number.
Step 5: Track Replies and Messaging Activity
WhatsApp is a two-way channel; customers can and will reply to your messages. When they do, your BSP captures those incoming responses and surfaces them in your shared inbox or routes them to the right support agent. Beyond replies, the platform also tracks the full journey of every message you send. This gives you real visibility into:
- Whether a message was successfully delivered to the customer's phone.
- Whether the customer opened and read the message, and when.
- Whether the customer replied or clicked a link.
Most BSPs display this data in a simple dashboard, so you never have to dig into raw logs to understand how your messages are performing.
Also Read: What is a Trigger and How do you Set it up in Flow?
Sample of WhatsApp API Commands for Shopify Use Cases
Understanding how the WhatsApp Business API sends messages becomes much easier when you look at real scenarios from an e-commerce workflow. Every message sent through the API follows a structured request that specifies the message type, recipient, and the information to appear inside the message.
Let’s take an example of Abandoned Cart Reminder
When a shopper adds products to their cart but leaves the checkout page, the store can trigger a reminder message. This message usually includes the customer’s name, the product they viewed, and a link that takes them back to their cart.
A WhatsApp API request for this scenario includes the messaging platform, the recipient’s phone number, the template name, and the dynamic variables that personalize the message.
{
"messaging_product": "WhatsApp",
"to": "+14155238886",
"type": "template",
"template": {
"name": "abandoned_cart_reminder",
"language": { "code": "en_US" },
"components": [
{
"type": "body",
"parameters": [
{ "type": "text", "text": "James" },
{ "type": "text", "text": "Wireless Earbuds Pro" },
{ "type": "text", "text": "https://yourstore.com/cart/abc123" }
]
}
]
}
Types of Messages You Can Send with WhatsApp API
The WhatsApp Business API supports different message formats, each designed for specific communication scenarios. Understanding these message types helps Shopify merchants automate customer interactions while staying within WhatsApp’s messaging guidelines.
- Template Messages (Outbound): Pre-approved messages you initiate. Includes marketing campaigns, order updates, payment confirmations, and authentication codes.
- Session Messages (Free-form): Flexible, unstructured responses you send within a 24-hour window after a customer contacts you. Great for personalized support replies, order inquiries, or real-time chat.
- Interactive Messages: Buttons, quick replies, and list messages that let customers tap to respond rather than type. Ideal for order confirmations ("Confirm COD?") or support menus.
- Media Messages: Send images, PDFs, videos, or documents, perfect for product lookbooks, invoices, or how-to guides.
Also Read: WhatsApp’s Session messages and Template messages
Best Practices for Sending WhatsApp API Messages as a Shopify Brand
Access to the WhatsApp Business API allows Shopify stores to automate customer communication at scale, but responsible usage matters just as much as the technology itself.
- Always get explicit opt-in: Never upload a contact list and start sending messages. Customers must clearly agree to receive WhatsApp communication from your brand.
- Personalize every message: Use dynamic variables such as customer names, order numbers, and product details to make messages relevant and contextual.
- Send messages at the right moment: For example, abandoned cart reminders perform best when sent within 1-2 hours of cart abandonment while purchase intent remains high.
- Respect the 24-hour conversation window: Template messages are required for outbound notifications. Free-form replies can be used only after the customer initiates the conversation.
- Monitor message quality rating: WhatsApp evaluates how customers interact with your messages. Poor engagement or frequent reports can lower your rating and restrict messaging.
- Start with transactional messages: New WhatsApp Business API accounts should focus on order confirmations, delivery updates, and support notifications before expanding into marketing campaigns.
Boost Your Shopify Store with Zoko: The WhatsApp API Platform Built for DTC Brands

If you want to put everything in this guide to work without managing API infrastructure yourself, Zoko is the platform to look at. Trusted by 3,000+ DTC brands across 70+ countries, Zoko is an official Meta Business Partner that connects the WhatsApp Business API directly to your Shopify store and goes well beyond just sending messages.
- WhatsApp Broadcasts: Broadcasts go to opted-in customers with personalization built in, product names, order history, and custom attributes included.
- Zoko Flows — Automation Builder: A visual, no-code canvas to build multi-step automated workflows. Configure abandoned cart recovery sequences, COD order confirmation flows, and post-delivery review requests.
- Abandoned Cart Recovery: Automatically send cart reminder messages to customers who drop off at checkout, including direct payment links and optional coupon codes.
- Shopify Catalog Sync: Zoko automatically syncs your Shopify product catalog to WhatsApp, keeping prices, descriptions, and availability up to date in real time.
- Multi-Agent Shared Inbox: Assign as many support agents as you need to a single WhatsApp number. Route conversations by team, add private internal notes, and hand off chats seamlessly.
- Conversational AI Chatbots: Deploy AI-powered bots that handle FAQs, qualify leads, confirm orders, and support customers 24/7, without a human agent.
- WhatsApp Commerce and In-Chat Selling: Turn WhatsApp conversations into a complete sales channel. Customers can discover products, add to cart, and complete payment without ever leaving WhatsApp.
Book a demo with Zoko to see how you can automate WhatsApp messaging and increase conversions.
Also read: WhatsApp Order Management: How to Manage and Take Orders on WhatsApp Business
FAQs
1. Is WhatsApp message API free?
The WhatsApp Business API itself does not have a simple free tier. Businesses usually pay for conversations or messages based on Meta’s pricing model and the platform provider they use.
2. How do I send 5000 WhatsApp messages?
To send messages at that scale, you need access to the WhatsApp Business API through an approved provider. The API allows businesses to send automated messages to large numbers of opted-in customers.
3. Can AI send WhatsApp messages?
Yes. AI tools can generate and send messages through the WhatsApp API when connected to automation workflows. They are often used to handle FAQs, order updates, and customer support conversations.
4. How to automate WhatsApp messages for free?
Basic automation is possible with the WhatsApp Business app using greeting messages and quick replies. More advanced automation, such as triggered notifications or campaigns, typically requires the WhatsApp API.
5. What is the difference between API and messaging?
Messaging refers to the communication itself between a business and a customer. An API is the technical interface that allows software systems to send, receive, and automate those messages.

































