Format of WhatsApp API for Sending Message
Merciglobal ERP
1. Overview
This document explains the format used to send WhatsApp messages from Merciglobal ERP using the following webhook endpoint:
https://webhooks.whatapi.in/webhook/6711cb08774577ab9b3e479c?mobile=91XXMOBILEXX&msg=XXMESSAGEXX&url=XXURLXX&filename=XXFILENAMEXX
The API is triggered using an HTTP GET request with query parameters.
2. API Endpoint Structure
Base URL
https://webhooks.whatapi.in/webhook/6711cb08774577ab9b3e479c
Query Parameters
| Parameter | Required | Description |
|---|---|---|
mobile |
Yes | Recipient mobile number with country code (without + sign) |
msg |
Yes | Message text (must be URL encoded) |
url |
No | Publicly accessible file URL (for media/document sending) |
filename |
No | Display name of the file attachment |
3. Parameter Details
3.1 mobile
- Format: Country code + mobile number
- Example:
919876543210
3.2 msg
- Plain text message
- Must be URL encoded
-
Example:
-
Original:
Hello from Merciglobal ERP - Encoded:
Hello%20from%20Merciglobal%20ERP
3.3 url (Optional)
- Used when sending media or document
- Must be a publicly accessible URL
- Must be URL encoded
3.4 filename (Optional)
- Name shown to recipient
- Example:
invoice123.pdf
4. Integration Flow in Merciglobal ERP
- Merciglobal Cloud ERP executes the API automatically, internally, replacing the parameter values.
- ERP generates message content.
- ERP encodes parameters.
- ERP constructs API URL.
- HTTP request is sent to the webhook endpoint.
- Response is logged in system.