Skip to main content

JSON Response

This section explains the response codes used and include JSON response examples returned by the Sandeza platform after a message is sent. These codes provide useful information to help track and verify the success or failure of message delivery.

Description Parameter RC
RCDESCRIPTION
0Success
1Invalid Parameter / Invalid JSON Format
2Internal Error
Channel Not Found
Invalid Parameter Channel
Config Not Found
Corporate Not Found
Routes Not Found
Template Not Found
Role email validation not found
3Invalid Recipient
4Invalid Sign
5Invalid Corporate
6Not Ip Whitelist
7Not Enough Token
8Unknown Sender Id
9Invalid Refnum
10Invalid user OTP
11INVALID_TIME
21Unsubscribed Recipients
22Special Characters Not Supported
23Country Not Available
24Character Limit Exceeded
Response With RC 0

This is a sample JSON Response With RC 0 (success)

{
"rc": "0",
"ref_id": "reffid-sms-001",
"code_sms": "wMjAyMTA0MTQwODA2MjMxNTg3MTQ4NzQS",
"reason_status": ""
}

Response when RC is not 0

This is a sample JSON Response when RC is not 0 (failed)

{
"rc": "8",
"ref_id": "reffid-emaile-000cd",
"code_sms": "",
"reason_status": "Unknown Sender Id"
}