Errors
whatsapp_marketing_opted_out
The recipient stopped marketing messages.
| HTTP status | Type | Code |
|---|---|---|
| 409 | conflict_error | whatsapp_marketing_opted_out |
What it means
The customer turned off promotional messages from your business in WhatsApp. Marketing templates are refused; utility and authentication templates still go through.
How to handle it
Fetch the resource again to see its current state, then decide whether to retry.
Example response
{
"detail": "The recipient stopped marketing messages.",
"error": {
"type": "conflict_error",
"code": "whatsapp_marketing_opted_out",
"message": "The recipient stopped marketing messages.",
"param": null,
"docUrl": "https://docs.callmitra.ai/errors/whatsapp_marketing_opted_out",
"requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
}
}Branch on error.code; it never changes once published. The message text can change. See Errors for the envelope.
Returned by
POST /api/v1/whatsapp/messages— Send a WhatsApp message