Errors
BSG uses standard HTTP status codes to indicate the success or failure of an API request. Codes in the 2xx range indicate that a request was successfully processed.
In case of an error, the body of the response includes a JSON formatted answer which tells you exactly what is wrong.
Attributes
An integer that represents the error type.
A human-readable description of the error. You can provide your users with this information to indicate what they can do about the error.
COMMON Error Codes
No errors
Invalid API key
Not enough params
Account blocked
Invalid request or API method does not exist
Unknown error
Invalid price grid parameter
Invalid or missing parameters
Not enough money
Inactive price grid
Invalid time sent
Exceeded limit for messages processed simultaneously
Exceeded batch size limit
SMS Error Codes
SMS not found
Invalid MSISDN
External ID absent
External ID already exists
Invalid request payload
Invalid originator
Invalid sms text
Invalid External ID
Invalid validity time
Invalid task ID
Task not found
MSISDN already present in a request
Originator not allowed
VIBER Error Codes
Message not found
Invalid MSISDN
External ID already exists
Invalid request payload
Invalid or unregistered sender
Invalid message text
Invalid External ID
Invalid validity time
Invalid combination of Viber options
Duplicate phone
HLR Error Codes
HLR not found
Invalid MSISDN
External ID absent
External ID already exists
Invalid request payload
Invalid External ID
MSISDN already present in request