SOAP / General messages
If you do not specify an action, blocked customer account or provide incorrect customer data, SerwerSMS.pl will generate a document in JSON or XML format with information about the error that occurred. For example, if you provide an incorrect login or password, the customer will see the following message:
{
"error":
{
"code":1001,
"type":"InvalidUser",
"message":"Incorrect login or password"
}
}
If no action is specified, the system will display the message:
{
"error":
{
"code":1000,
"type":"InvalidAction",
"message":"No action has been specified"
}
}
Preview the error message can be checked with the action:
error/[code]
example:
https://api2.serwersms.pl/error/1000
response:
{
"error":
{
"code":1000,
"type":"InvalidAction",
"message":"No action has been specified"
}
}
List of error codes returned by the AP
Below is a table of codes and associated text descriptions.
Code | Type | Description |
---|---|---|
General | ||
1000 | InvalidAction | No action has been specified |
1001 | InvalidUser | Incorrect login or password |
1002 | InvalidRole | You do not have permission to use the API |
1003 | InvalidIP | Unauthorized IP address |
1004 | InvalidID |
Invalid ID parameter |
1005 | InvalidRole |
No permissions |
1006 | InvalidData |
Incorrect data format |
1007 | InvalidRole |
Account is not fully active |
1008 | InvalidRole |
You do not have permission to view numbers |
2000 | ValidationRequiredError | No parameters required |
2001 | ValidationPhoneError |
Invalid phone number |
2002 | ValidationCodeError |
Invalid error code |
Messages | ||
3000 | SendError | The SMS ECO+ SMS limit has been exhausted |
3001 | SendError | Brak uprawnień do wysyłania wiadomości SMS ECO+ |
3002 | SendError |
No permission to send SMS ECO+ |
3003 | SendError |
No permissions to send FULL SMS |
3004 | SendError |
The limit of available MMS messages has been exhausted |
3005 | SendError | No permission to send MMS |
3006 | SendError |
The available VOICE message limit has been exhausted |
3007 | SendError | No permission to send VOICE messages |
3008 | SendError | No permission to send Flash SMS messages |
3009 | SendError |
No permissions to send SMS |
3100 | SendError |
Sending SMS messages has been blocked |
3101 | SendError |
Message is empty |
3102 | SendError |
Message exceeded the allowed number of characters |
3103 | SendError |
Wrong recipient number |
3104 | SendError |
No phone numbers listed |
3105 | SendError | Incorrect message content |
3106 | SendError |
This sender name can not be used |
3107 | SendError |
You do not have permission to send personalized messages |
3108 | SendError | Invalid dispatch time |
3109 | SendError |
Invalid file |
3110 | SendError | Too many messages to send, the maximum is 100,000 SMS in one application |
3111 | SendError |
Unique error |
3200 | SendError | Incorrect characters in uniqe_id |
3201 | SendError |
Uploaded unique_id are not unique |
3202 | SendError |
Inconsistent amount of personalized and uniqe_id |
3330 | MessageError | No message |
Pliki | ||
4000 | FileError |
File is too large |
4001 | FileError |
FIle does not exist |
4002 | FileInvalid |
Invalid file |
Phone number / HLR | ||
4100 | PhoneError |
Connection error |
4101 | PhoneError | Invalid number |
4102 | PhoneError |
No permission to HLR |
4103 | PhoneError |
HLR query limit has been exhausted |
4104 | PhoneError |
Account lockout |
4105 | PhoneError | Waiting for the answer |
4106 | PhoneError |
Invalid identifier |
Premium | ||
4200 | PremiumError | Dispatch error |
4201 | PremiumError | Incorrect data |
Account | ||
4300 | AccountError | No login |
4301 | AccountError |
No password |
4302 | AccountError |
No phone number |
4303 | AccountError |
No email address |
4304 | AccountError | No first name |
4305 | AccountError | No last name |
4306 | AccountError |
No company name |
4307 | AccountError |
Invalid number |
4308 | AccountError | Incorrect e-mail address |
4309 | AccountError |
Too short login |
4310 | AccountError | Invalid login |
4311 | AccountError |
Incorrect company |
4312 | AccountError |
Login exists |
4313 | AccountError | Registration error |
4320 | AccountError |
No current password entered |
4321 | AccountError |
Current password is invalid |
4322 | AccountError | No new password entered |
4323 | AccountError | New password entries are not identical |
4324 | AccountError |
No login |
4325 | AccountError | Invalid login |
Sender's name | ||
4400 | SenderExists |
The name of the sender already exists |
4401 | SenderError |
It is not possible to add a number as the sender's name |
4402 | SenderInvalid | Invalid sender name |
4403 | SenderError |
Invalid number |
4404 | SenderError |
Invalid code or number |
4405 | SenderError | The number was already active |
Subaccounts | ||
4500 | SubaccountError | No permissions to users department |
4501 | SubaccountError |
Subaccount can not create subaccount |
4502 | SubaccountError | Login exists |
4503 | SubaccountError |
No permission template |
4504 | SubaccountError |
Incorrect login or password |
Black list |
||
4600 | BlacklistError | No operations to be performed |
4601 | BlacklistPhoneExists |
The number already exists in the list |
4602 | BlacklistError |
No number was found |