WhatsApp Business API Integration: How to Connect WhatsApp to Your CRM, ERP or Orders
Sending a WhatsApp message through the API takes an afternoon. Turning what customers actually send, voice notes, photos, three texts in a row, into clean records in your CRM or ERP is the real project. We build that, starting with a $1,900 fixed-price starter on one connection, live on your own number in about two weeks.
A WhatsApp Business API integration connects WhatsApp to your software: incoming messages arrive at a webhook you host, and your system replies through Meta's Cloud API. The plumbing is the easy part. The project is turning voice notes, photos and three messages in a row into a clean order or CRM update. We build it starting with a $1,900 fixed-price starter: one WhatsApp connection on your own number and data, in about two weeks, credited against the first full flow.
What you get in two weeks
- Your number on the Cloud API, with a verified webhook, a signature check on every delivery and a system user token, in your own Meta account.
- One flow, end to end: for example, a customer's message or voice note becomes a draft order, lead or CRM note, matched to your records.
- A person approves the writes at first. Nothing lands in your CRM or ERP without a yes.
- A log of every message with the WhatsApp message ID and the record it created, so any line can be traced.
- An estimate of your Meta bill for that flow, and a fixed price for taking it to production.
How to integrate the WhatsApp Business API, step by step
The Cloud API, hosted by Meta, is the only WhatsApp Business API left: the self-hosted On-Premises API was sunset on October 23, 2025, and new numbers can only be registered on Cloud API.
- Verify your business in Meta Business Manager. Start here: Meta's review time is the one step you don't control, and verification also raises your sending limit (below).
- Create a WhatsApp Business Account and add a phone number. Plan which number: the one customers already message is the one worth connecting. A number already in the WhatsApp Business app can keep the app and add the API ("coexistence"); a number registered on the API directly can't also be used in the app.
- Set the display name. Meta reviews it against its display name guidelines, and the name shows in chats once approved.
- Create a system user access token for your server, so the integration doesn't depend on someone's personal login.
- Subscribe a webhook: a URL Meta calls with every incoming message and every delivery status.
- Get templates approved for anything you send outside the 24-hour customer service window: confirmations, reminders, re-engagement.
The 24-hour window and template categories
When a customer messages you, a 24-hour customer service window opens, and each new message from them resets it. Inside it you can reply freely. Outside it you can only send approved templates, in one of three categories: marketing, utility (about an order or account the customer already has) and authentication (one-time codes).
Messaging limits
Limits count the unique customers you can start a conversation with, outside open windows, per rolling 24 hours, and they are shared across every number in your business portfolio. A new portfolio starts at 250. Verifying your business (or sending enough high-quality templates) lifts it to 2,000; from there Meta raises it automatically to 10,000, 100,000 and unlimited when you use at least half your limit and your quality stays high. Replies to customers who wrote first don't count.
The webhook, done properly
Two checks, both simple, both commonly skipped:
- Verification, once. When you register the webhook, Meta sends a GET request with a
hub.challengeand the verify token you chose. Your service checks the token and echoes the challenge back. - A signature, on every delivery. Each POST carries an
X-Hub-Signature-256header: an HMAC-SHA256 of the body, keyed with your app secret. Check it before trusting anything in the payload. Without it, anyone who finds your webhook URL can post fake orders.
Then answer fast and do the work afterwards. Meta retries deliveries that aren't acknowledged, so slow processing turns into duplicate messages. Key everything on the WhatsApp message ID so a redelivery is recognized, not processed twice.
Don't key customers on the phone number alone. Since April 2026, webhooks carry a business-scoped user ID (user_id), because WhatsApp is rolling out usernames: a customer who adopts one may reach you with no phone number in the webhook. Store the BSUID next to the number, and watch for the user_changed_number and user_changed_user_id system messages, which carry the previous ID.
Message types and their limits
What we hit in production, in our WhatsApp service built on Graph API v21.0 (Meta retires v21.0 on January 21, 2027, so plan the upgrade; these limits are unchanged in current versions):
- Reply buttons: up to 3 per message, titles up to 20 characters. Good for "Approve / Return / Call me".
- Lists: up to 10 rows in total across all sections, row titles up to 24 characters, descriptions up to 72. More than 10 choices means a different design, not a longer list.
- No media with buttons. An interactive message carries its own text and cannot also carry an image or a document. Send the PDF first, then the buttons.
- Media is uploaded, then referenced. You upload the file to Meta, get a media ID, and send a message pointing to it. Give documents a filename, or the customer sees an opaque ID instead of "Quotation 1042.pdf".
- Read receipts are yours to send. Mark incoming messages as read so the customer sees the blue ticks, and knows someone is on it.
Calls go through a separate Calling API on the same Cloud API number. Customers can call you wherever Cloud API is available. Calls you place to customers need their permission and a messaging limit of at least 2,000, and are not available to US, Canadian, Egyptian, Vietnamese or Nigerian numbers.
Voice notes: the part customers actually use
In many markets the order doesn't come as text. It comes as a voice note, sometimes several, sometimes in two languages.
For Qortex, a retail platform in the UAE, we built the engine that turns WhatsApp voice notes from shops into structured orders. Whisper transcribes the audio, in Arabic, English or both; running transcriptions in parallel per conversation made them 30 to 47% faster. The hard part wasn't transcription: it was ordering. Customers send a voice note, then a text correction, then another note. A queue processes each conversation's messages in strict sequence and merges them into one order, matched against that merchant's own catalog. The case study has the details.
For Casa Europa, quotation approvals happen on a dedicated WhatsApp number: an approver receives the quotation PDF, then approves or returns it by button or by voice note. A transcript is never trusted directly: it is read back to the approver for confirmation before anything is acted on. And the WhatsApp service holds no authorization logic of its own: the sender's phone number is resolved by the quotation platform, which applies its own roles.
That last point generalizes. The WhatsApp layer receives, normalizes and replies; your business system decides who may do what. Keeping the two apart is what lets one WhatsApp integration serve several workflows safely.
How to connect the WhatsApp API to your CRM or ERP
Native connectors first. Salesforce offers a WhatsApp channel in Service Cloud, and HubSpot connects a WhatsApp number to its conversations inbox on Professional and Enterprise plans. If agents only need to read and answer chats inside the CRM, use them.
Custom when messages must become records. A connector logs the conversation; it doesn't turn "same as last week, plus two cases of the red" into an order line. The pattern we use, the same as for order entry automation:
- Normalize every message, text, voice, image or button press, into one internal format.
- Understand it: transcribe, extract who, what and how many.
- Match it to your records: the customer from the phone number or BSUID, the products from their catalog or their usual orders.
- Ask when something is ambiguous, with buttons where possible, instead of guessing.
- Confirm and write: read back what will be recorded, wait for the yes, then create the order or update the CRM.
The stage-by-stage version, with where it breaks, is in From WhatsApp to Salesforce, a reference architecture.
BSP or direct Cloud API?
| Direct on Meta's Cloud API | Through a BSP | |
|---|---|---|
| Who builds | Your developers or an integrator | The provider, with your configuration |
| You pay | Meta's per-message rates only | Meta's rates plus the provider's monthly or per-message fee |
| Best for | Messages that must become orders, quotes or CRM records | A shared inbox, broadcasts and a chatbot builder |
| Lock-in | None: the number and templates sit in your Meta account | Moving the number to another provider takes a migration |
Many businesses run both: a BSP inbox for agents, and a direct integration for the flows that write to the CRM or ERP. One policy point either way: since January 15, 2026, Meta's terms bar general-purpose AI assistants from the Business API. A bot that serves your own customers for your own business, like an ordering or support bot, is still allowed.
What a WhatsApp Business API integration costs
The bill has two parts: what Meta charges per message, and what the build costs.
Meta's fees. Since July 1, 2025, Meta bills per delivered message, by category (marketing, utility, authentication, service) and by the recipient's country. Since October 1, 2026, service replies are billed beyond 1,000 free per number per month, and utility messages sent inside the 24-hour window are billed too. Customers never pay to message you. Rates, the October changes and a worked example are in WhatsApp Business API pricing.
Our build, in US dollars:
| Scope | Price | What you get |
|---|---|---|
| Starter | $1,900 fixed | One WhatsApp connection on your own number and data, with drafts a person approves, in about two weeks. Credited against the first flow. |
| First flow, live | $5,000 to $18,000 | One flow in production, such as orders from WhatsApp into your ERP, with logs and alerts. |
| Several flows | $18,000 to $45,000 | Two-way sync across several systems, approval steps and a reconciliation report. |
| Hosting | $50 to $100 / month | The integration running on our platform or in a cloud account you own. |
| Maintenance | from $470 / month | Monitoring, API version and token updates, fixes, small changes. |
More on how we work in API integration services.
Questions to ask before you build
- Which number, and who replies today? Moving a number customers already use is where most of the value is.
- What arrives: text, voice, photos, documents? Voice changes the project.
- What must happen outside 24 hours? Each of those needs an approved template, and is billed as one.
- Who may approve what? Keep that in your business system, not in the WhatsApp layer.
- What does a wrong record cost you? It decides where a person confirms before anything is written.
Related: WhatsApp Business API pricing, Transcribing mixed Arabic-English voice messages, Get your field team to fill the CRM from WhatsApp, and From WhatsApp to Salesforce, a reference architecture.