Message Submission
This API allows us to send messages from our applications. Whether it is a message to one person, a message to a group or a message to several numbers.
PRODUCTION_URL | https://didstation.com/sms_http_api |
SAMPLE_REQUEST | https://www.didstation.com/sms_http_api&lang=en&username=smstest&password=191979&from=econsulting&to=237695877264&message=just_to_see_01&dlr=1&message_type=0&route_type=1 |
Paramètre
Champ | Type | Description |
---|---|---|
username | string |
Username of the user. |
password | string |
Password of the user. |
type | string |
It indicates the type of message. |
dlr | string |
Indicates whether the client wants delivery report for this message. |
destination | string |
Mobile number to which the message is to be sent |
source | string |
The source address that should appear in the message. |
message | string |
The message to be sent. |
Balance Check
This API allows us to send messages from our applications. Whether it is a message to one person, a message to a group or a message to several numbers.
PRODUCTION_URL | https://didstation.com/sms_http_api |
SAMPLE_REQUEST | https://www.didstation.com/sms_http_api&lang=en&username=smstest&password=191979&from=econsulting&to=237695877264&message=just_to_see_01&dlr=1&message_type=0&route_type=1 |
Champ | Type | Description |
---|---|---|
username | string |
Username of the user. |
password | string |
Password of the user. |
Response Message
Nom | Description |
---|---|
AUTHORIZATION_FAILED |
User is inactive |
BALANCE |
Credit balance remaining in the account. |
INVALID_URL |
Username or Password or both are incorrect. |
INTERNAL_ERROR |
Cannot fetch credit balance. |
PERMISSION_DENIED |
You have reached the maximum number of allowed hits. |
Add a review
Response Message
Nom | Description |
---|---|
AUTHORIZATION_FAILED |
User is inactive |
BALANCE |
Credit balance remaining in the account. |
INVALID_URL |
Username or Password or both are incorrect. |
INTERNAL_ERROR |
Cannot fetch credit balance. |
PERMISSION_DENIED |
You have reached the maximum number of allowed hits. |
Delivery Repport
This API allows us to send messages from our applications. Whether it is a message to one person, a message to a group or a message to several numbers.
PRODUCTION_URL | https://didstation.com/sms_http_api |
SAMPLE_REQUEST | https://www.didstation.com/sms_http_api&lang=en&username=smstest&password=191979&from=econsulting&to=237695877264&message=just_to_see_01&dlr=1&message_type=0&route_type=1 |
Champ | Type | Description |
---|---|---|
sSender | string |
Source address. |
sMobileNo | string |
Destination number of sent message. |
sStatus | string |
Status of the message. |
dtSubmit | string |
Date and time when the message is submitted. |
dtDone | string |
Date and time when the delivery report is received. |
sMessageId | string |
Unique identification for a message given at the time of submission. |
iCostPerSms | string |
Cost per message or SMS. |
iCharge | string |
Total credits deducted depending upon number of message parts. |
iMCCMNC | string |
Mobile Country Code and Mobile Network Code. |
iErrCode | string |
No error=0 |
sTagName optionnel | string |
Campaign name for that batch. |
sUdf1 optionnel | string |
User defined field 1. |
sUdf2 optionnel | string |
User defined field 2. |
Error Codes
Nom | Description |
---|---|
200 |
OK: |
202 |
Accepted: |
Note |
The response codes other than 200 or 202 are not taken into consideration and requests for such response codes are considered as failed. |
Success Code
Success. Message submitted successfully.
Response will be in below format :
1701|<CELL_NO>|<MESSAGE_ID>
You can then use the message ID later to map the delivery report to the message.
Error Codes
Invalid URL. This means that one of the parameters was not provided or left blank.
Invalid value in username or password field.
Invalid message type.
Invalid message.
Invalid destination.
Invalid source (Sender ID).
Invalid dlr value.
User validation has failed.
Internal error.
Response timeout.
Insufficient credit.
DND reject.
Spam message.