WHMCS Integration

WHMCS โ†’ WhatsApp Notifications

Automatically send WhatsApp messages to your WHMCS clients

Step 1 โ€” Configure WHMCS Webhook

In WHMCS Admin: Setup โ†’ API โ†’ Hooks โ†’ Add the following URL:

https://your-site.netlify.app/api/v1/whmcs-webhook?api_key=YOUR_API_KEY
InvoiceCreatedInvoicePaidInvoicePaymentReminderTicketOpenTicketReplyAfterModuleCreateAfterModuleSuspend

Step 2 โ€” Supported Events

๐Ÿงพ

Invoice Created

Send notification when new invoice is created

โœ…

Invoice Paid

Confirm payment received

โš ๏ธ

Invoice Overdue

Remind about overdue payments

๐ŸŽซ

Ticket Opened

Notify when support ticket is opened

๐Ÿ’ฌ

Ticket Reply

Notify when support ticket gets a reply

๐Ÿš€

Service Activated

Notify when service is activated

๐Ÿ”ด

Service Suspended

Notify when service is suspended

๐Ÿ’ฐ

Payment Reminder

Remind about upcoming payments

Message Templates

Invoice Created
๐Ÿงพ *New Invoice #{{invoice_id}}*

Hi {{client_name}},

Total: {{amount}} {{currency}}
Due: {{due_date}}

Pay here: {{invoice_url}}
Invoice Paid
โœ… *Payment Received*

Hi {{client_name}},

Your payment of {{amount}} {{currency}} for invoice #{{invoice_id}} has been received.

Thank you! ๐Ÿ™
Ticket Opened
๐ŸŽซ *Support Ticket #{{ticket_id}}*

Hi {{client_name}},

Your support request has been received.
Subject: {{subject}}

Our team will respond shortly.

Step 3 โ€” Test It

Direct API Usage

You can also trigger notifications programmatically:

curl -X POST https://your-site.netlify.app/api/v1/whmcs-webhook \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "action": "InvoicePaid", "invoiceid": "42", "userid": "7" }'