Last updated

Set up the WhatsApp Cloud API (Meta)

WhatsApp Notifications

Set up the WhatsApp Cloud API (Meta)

This page walks you through every value the WhatsApp Cloud API (Meta) provider asks for, where to find it at Meta, and how to connect the webhook with one click. Meta's own pages need your Facebook login, so the steps below link straight to them.

You need: a Meta Business account (business.facebook.com), a phone number that is not already used in the WhatsApp app, and about 20 minutes.

1. Create a Meta app with WhatsApp

  1. Open Meta for Developers → My Apps and click Create app.
  2. Choose the use case Connect with customers through WhatsApp (or type Business), pick your business portfolio, and finish.
  3. In the app dashboard, open WhatsApp → API Setup. Meta creates a WhatsApp Business Account and a free test number for you here.

2. Add your business phone number

  1. On WhatsApp → API Setup, click Add phone number.
  2. Enter your display name and number, then confirm the code Meta sends by SMS or call.
  3. Under From, pick the new number. Two IDs appear below it:
    • Phone number ID — copy it into Phone number ID in CartWhizz (a long number, not the phone number itself).
    • WhatsApp Business Account ID — copy it into WhatsApp Business Account ID.

You can also see the account ID in Business settings → Accounts → WhatsApp accounts.

3. Copy the App ID and App secret

  1. In the app dashboard open App settings → Basic.
  2. Copy App ID into Meta App ID.
  3. Next to App secret click Show, confirm your password, and copy it into App secret.

The App secret lets CartWhizz check that every webhook really comes from Meta, and lets the Configure webhook button do the webhook setup for you.

4. Create a permanent access token

The token on the API Setup page expires after 24 hours, so make a permanent one:

  1. Open Business settings → Users → System users and click Add. Give it a name and the Admin role.
  2. Select the system user and click Assign assets:
    • Apps → your app → Manage app (full control).
    • WhatsApp accounts → your account → Manage WhatsApp Business accounts (full control).
  3. Click Generate token, choose your app, set Token expiration to Never, and tick these permissions:
    • whatsapp_business_messaging
    • whatsapp_business_management
    • business_management
  4. Copy the token (it starts with EAA) into Access token in CartWhizz. Meta shows it only once.

5. Save in CartWhizz

  1. Open Messaging → WhatsApp channel, choose WhatsApp Cloud API (Meta) and fill in the five values above. Leave Webhook verify token empty and Graph API version as it is.
  2. Switch on Send messages and click Save changes.

Each field also has a Where to find this link that opens the right Meta page.

6. Connect the webhook with one click

  1. On the same page, the Webhook card on the right shows Webhook at Meta.
  2. Click Configure webhook. CartWhizz:
    • creates a verify token if there is none,
    • asks Meta to send WhatsApp events (messages, delivery reports, template approvals) to this store's webhook address,
    • links your WhatsApp Business Account to your app.
  3. All three lines turn green and the badge says Connected. Click Check webhook at any time to ask Meta again.

Nothing is sent to customers when you press the button.

If you prefer to do it by hand: in the app dashboard open WhatsApp → Configuration → Webhook → Edit, paste the Delivery status webhook link as the Callback URL, enter your verify token, click Verify and save, then subscribe to messages, message_template_status_update, message_template_quality_update and template_category_update.

If the button shows an error

MessageWhat to do
Enter the Meta App ID / App secret / WhatsApp Business Account ID firstFill in that field, save, and try again.
The access token is wrong or has expiredGenerate a new System User token (step 4) and paste it.
The token is missing a permissionGive the System User the app and the WhatsApp account (step 4.2) and tick all three permissions.
Meta rejected the App ID and App secret pairCopy both again from App settings → Basic.
Meta could not reach this store's webhook addressThe store's address must open over https. Try again after a minute; if it keeps failing, contact support.
Turn on Send messages for WhatsApp and save firstSwitch on Send messages, save, then press the button.
This Meta app already sends its webhook somewhere elseOne Meta app has one webhook address. Use a separate Meta app for this store. Press Replace anyway only if the address shown is no longer used: it stops receiving messages.

Your CartWhizz operator can run the same check and setup from Mastermind → Storefronts → your store → Modules → WhatsApp webhook.