Send a location via WhatsApp API (sendLocation)
This scenario sends a map location with sendLocation during the 24-hour customer service window.
Common errors
| Status | API response | Cause | Fix |
|---|---|---|---|
| 200 | Message was not sent: provide chatId, phone, bsuid, or username | No recipient the channel could resolve. | Pass exactly one recipient: phone (country code plus number, digits only), chatId (for example [email protected]) or bsuid. |
| 401 | token is required | The request has no token. | Add your channel token as the token query parameter: https://api.1msg.io/{channelId}/{method}?token=… |
| 429 | too many requests. please try later | The channel is over its send rate. | Queue messages on your side and retry with exponential backoff. |
Common questions
Related
Orders & Delivery
Order delivered notification via WhatsApp API
The scenario sends the customer a personalized WhatsApp template when their order is marked delivered.
Orders & Delivery
Order cancellation notification via WhatsApp API
The scenario sends the customer a personalized WhatsApp template when an order is cancelled.
Orders & Delivery
New route notification for dispatchers (API)
The scenario sends a manager or dispatcher contact a personalized WhatsApp template when a new delivery route or trip is created.
Orders & Delivery
Order confirmation message via WhatsApp API
The scenario sends the customer a personalized WhatsApp template right after a new order is created.
Orders & Delivery
Failed delivery attempt alert via WhatsApp API
The scenario sends the customer a personalized WhatsApp template when a delivery attempt fails.
Orders & Delivery
Delivery delay notification via WhatsApp API
The scenario sends the customer a personalized WhatsApp template when their order delivery is delayed.
Orders & Delivery
Share courier contact card via WhatsApp API
This scenario sends a WhatsApp contact card with sendContact during the 24-hour customer service window after a driver or courier is assigned to the order.
Orders & Delivery
Order status update notification via WhatsApp API
The scenario sends the client a personalised WhatsApp template when the status of their order, application, or request changes.


