# Error Codes

## **Consent API (ERROR Codes)**

| Error Code | Description                                          |
| ---------- | ---------------------------------------------------- |
| 8006       | Required parameter is missing                        |
| 8006       | type is invalid. type must be optin/optout.          |
| 8006       | recipients is required.                              |
| 8006       | source cannot be empty.                              |
| 8006       | source value cannot be greater than 25 characters.   |
| 8006       | Invalid recipient. Only numeric values allowed.      |
| 8006       | recipient value cannot be less than 10 digits.       |
| 8006       | recipient value cannot be greater than 15 digits     |
| 8005       | Optin already found for provided mobilenumber        |
| 8005       | Error occurred while updating optin for mobilenumber |

## **Message API (ERROR Code)**

| ERROR Code | Description                                                                                                                                     |
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| 8001       | Required parameter is missing                                                                                                                   |
| 8002       | Phone number is not opted in                                                                                                                    |
| 8003       | WhatsApp contact does not exist                                                                                                                 |
| 8004       | Client details not found                                                                                                                        |
| 8005       | Technical error occurred                                                                                                                        |
| 8007       | Failed to send message because you are outside the support window for freeform messages to this user. Please use a valid template or reconsider |
| 8008       | Invalid Media id or bad media                                                                                                                   |
| 8006       | message\_type can only be text/media/template/location.                                                                                         |
| 8006       | message\_type cannot be null or blank                                                                                                           |
| 8006       | source cannot be null or blank                                                                                                                  |
| 8006       | recipient\_type cannot be null or blank                                                                                                         |
| 8006       | recipient\_type can only be individual                                                                                                          |
| 8006       | recipient\_whatsapp cannot be null or blank                                                                                                     |
| 8006       | recipient\_whatsapp cannot be less than 10 digits                                                                                               |
| 8006       | recipient\_whatsapp cannot be greater than 15 digits                                                                                            |
| 8006       | Invalid value in recipient\_whatsapp parameter. Only numbers are allowed                                                                        |
