Sprint API 3.0
Sprint API 3.0
Classification: Internal
This document is the sole property of Sprint Marketing and Technology. Any use or duplication of this document
without express permission of Sprint Marketing and Technology is strictly forbidden and illegal.
Document Information
Sprint_SMS_API_3.0
2
Table Of Contents
3
8. Register Customer 22
9. Get Country List 23
10. Get Time-Zone List 24
11. Get Customer List 24
12. Get Customer SMPP Account List 25
13. Get Vendor List 25
14. Receive Incoming 26
15. SenderID Status 27
16. Send Voice OTP 28
17. Voice OTP Status 29
18. Add Vendor Invoice 30
19. Add Vendor Payment 31
20. Recharge Customer 32
Sprint_SMS_API_3.0
4
1.0 Sending SMS Through Web API
Send Single SMS to URL: http://YOUR_API_URL/api/SendSMS
To send single text to multiple numbers using a single submission use below link
http://YOUR_API_URL/api/SendSMSMulti
1.1 Parameters
Parameter Name Required Description Example
api_id Yes Your API ID Sent in Email API43404236
Sprint_SMS_API_3.0
5
V4 Optional Variable 4 To Replace in Any Data for Variable 4 You Want
Template to Replace
V5 Optional Variable 5 To Replace in Any Data for Variable 5 You Want
Template to Replace
ValidityPeriodInS Optional Message validity period Default is 2 days, you can set it
econds (Expiry time) manually int value as second like 60
for 1 min.
uid Optional Message reference variable, xyz
this value will return as it is
in quick response and
delivery
callback_url Optional The CallBack-URL where https://xyz.com/
you wanna delivery report.
We will post the json data
of delivery.
pe_id Optional DLT parameter xyz
Note: uid and callback_url parameters is not supported with SendSMSMulti API. Only for
SendSMS API.
Sprint_SMS_API_3.0
6
1.2 Calling The API
1.2.1 Method-1: Using Get Request
Example:
http://YOUR_API_URL/api/SendSMS?api_id=API4623444906&api_password=password@123
&sms_type=P&encoding=T&sender_id=ASMSC&phonenumber=91999020323&textmessage=te
st&uid=xyz&callback_url=https://xyz.com/
1.2.2 Method-2: Using POST Request
Post Request JSON Format
{
"api_id": yourapiid,
"api_password": yourapipassword,
"sms_type": T,
"encoding": T,
"sender_id": ASMSC,
"phonenumber": 919990123312,
"templateid": null,
"textmessage":test message,
"V1": null,
"V2": null,
"V3": null,
"V4": null,
"V5": null,
"ValidityPeriodInSeconds": 60,
"uid":"xyz",
"callback_url":"https://xyz.com/",
"pe_id":NULL,
"template_id":NULL
}
Sprint_SMS_API_3.0
7
Response Details.
{
"message_id": 32,
"PhoneNumber": "9713254",
"SMSMessage": "Test Message",
"MessageType": "Default",
"MessageLength": 159,
"MessageParts": 1,
"ClientCost": 1,
"DLRStatus": "Delivered",
"SMSID": "9cbd20a1-0cd8-420e-b384-5767b7df7a87",
"ErrorCode": 0,
"ErrorDescription": "000",
"SentDateUTC": "2017-05-05T10:16:39.523",
"Remarks": "OK" ,
“uid” : “xyz”
}
Sprint_SMS_API_3.0
8
DLRStatus Delivery Status Can Be One Of the following
1. Pending
2. Delivered
3. Undeliverable
4. Acknowledged
5. Expired
6. Accepted
7. Rejected
8. Unknown
9. Failed
10. DND
SMSID Carrier Generated SMS ID
ErrorCode Error Code If Any
ErrorDescription Error Description If Any
SentDateUTC SMS Sent Date Time in UTC (Universal Time Coordinate)
Remarks Remarks for the Request
uid Reference parameter as you submit with sms
1.3.1 Parameters
Parameter Name Required Description Example
Conditional Message ID You Received at The 4134
message_id Time of Submit (Not Required if
your are using uid parameter)
uid Conditional Reference value as you sent and XYZ
received at the time of submit message
api_id Yes Your API ID API1234
api_password Yes Your API password 1234XYZ
Example:
http://YOUR_API_URL/api/GetDeliveryStatus?api_id=API123&api_password=123xyz&message_id=23
23&uid=xyz
Sprint_SMS_API_3.0
9
1.3.3 Calling Delivery Report API Using, Method-2 Post Request
Post Request JSON Format
{
“api_id” : “API123”,
“api_password” : “123”
" message_id ": 32423,
“uid” : “xyz”
}
{
"message_id": 32,
"PhoneNumber": "9713254",
"SMSMessage": "Test Message",
"MessageType": "Default",
"MessageLength": 159,
"MessageParts": 1,
"ClientCost": 1,
"DLRStatus": "Delivered",
"SMSID":"9cbd20a1-0cd8-420e-b384-
5767b7df7a87",
"ErrorCode": 0,
"ErrorDescription": "000",
"SentDateUTC": "2017-05-05T10:16:39.523",
"Remarks": "OK" ,
“uid” : “xyz”
}
Sprint_SMS_API_3.0
10
1.3.5 Response Details
Sprint_SMS_API_3.0
11
2.0 Managing Contact Lists through API
2.1 Add Number to Contact List through API
api_id yes Your API ID Received in the email or you can API0896731286
get it from your customer panel
api_password Yes Your API Password Received in the email or password@123
can change the API password from the
customer panel
contact_list_id Yes Create Contact List in Customer Panel and Get 1
the ID from There See Image Below for
Detailed Explanation
contact_name Yes Name of the person you want to save John
contact_number Yes Contact Number of the person you want to 919876543210
save
Sprint_SMS_API_3.0
12
Step 4. Enter Contact List Name and Click Create New Contact List
Step 5 : Once Created You Will Find Contact List ID in the Grid Below
Sprint_SMS_API_3.0
13
2.1.6 Response Details
contact_id System generated id of your contact save it for future deletion of this contact via
api.
status S = Contact Created Successfully
F = Failed to create contact
remarks Description of the status
Sprint_SMS_API_3.0
14
2.2 Deleting Number from Contact List using API
{
"api_id": yourapiid,
"api_password": yourapipassword,
"contact_id ": 1,
}
Sprint_SMS_API_3.0
15
3.0 ASMSC Verify API - Sending OTP Verification SMS
This API helps you to verify user's phone number using OTP (One Time Password).
3.1 Sending Verification SMS
3.1.1 Calling the ASMSC Verify API using Get Request Example:
http://YOUR_API_URL/api/Verfiy?api_id=API651344002&api_password=password&b
ran d=aSMSC_name&phonenumber=91340206824&sender_id=S MS ALA
URL: http://YOUR_API_URL/api/Verify
Post Request JSON Format
{
"api_id": yourapiid,
"api_password": yourapipassword,
"brand": ASMSC_Name,
"phonenumber": 91999664445,
"sender_id": ASMSC,
}
Sprint_SMS_API_3.0
16
3.2 Checking Verification Status
Sprint_SMS_API_3.0
17
4.0 SenderIDRequest (API)
URL: http://YOUR_API_URL/api/SenderIDRequest
Reponse JSON:
{
"status": "S",
“remarks": "Sender ID Request Created Sucessfully"
}
status = S (Successful)
status = F (Failed)
Sprint_SMS_API_3.0
18
5.0 GetSenderIDList (API)
{
"api_id" : "Your API ID",
"api_password" : "Your API Password",
}
http://YOUR_API_URL/api/GetSenderIDList?api_id=youapiid&api_password=yourapipassword
Reponse JSON
[
{
"sender_id": "SMS UPDATE",
"country": "United Arab Emirates"
},
{
"sender_id": "ASMSC",
"country": "United Arab Emirates"
}
]
Sprint_SMS_API_3.0
19
6.0 Check Balance
URI: http://YOUR_API_URL/api/CheckBalance
Input Parameters :
http://YOUR_API_URL/api/CheckBalance?api_id=yourapiid&api_password=yourapipassword
Response Details:
Sprint_SMS_API_3.0
20
7.0. Register Reseller Customer
URL: http://YOUR_API_URL/api/RegisterResellerCustomer
Auth : Basic Auth ( Username as RegistrationUsername, Password as RegistrationPassword)
Note: For RegistrationUsername and RegistrationPassword you can contact to your administrator or
support team.
Input Parameters:
Input Parameters Required Default Value
Username Yes ABC123
Password Yes 12345
CompanyName Yes aSMSC
CompanyEmail Yes [email protected]
BillingEmail Yes [email protected]
Phone Yes 9197xxxx23
CustomerPlanID Yes 0
DefaultSMSPrice Yes 0
CurrencyID Yes 50
BalanceAmount Yes 0
TimeZoneID Yes 1
TemplateLocked Yes False
CountryID Yes 0
SenderID Yes TST
Response Details:
21
8.0. Register Customer
URL: http://YOUR_API_URL/api/RegisterCustomer
Note: For RegistrationUsername and RegistrationPassword you can contact to your administrator or
support team.
Input Parameter:
Input Parameters Required Default Value
CompanyName Yes aSMSC
CompanyEmail Yes aSMSC@ aSMSC.com
BillingEmail Yes aSMSC@ aSMSC.com
Phone Yes 9197xxxx23
CustomerPlanID Yes 0
CustomerRouteID Yes 0
DefaultSMSPrice Yes 0
CurrencyID Yes 50
BalanceAmount Yes 0
TimeZoneID Yes 1
TemplateLocked Yes False
CountryID Yes 0
{
"CompanyName": “clients company name”,
"CompanyEmail": “clients company name” ,
"BillingEmail": “clients billing email”,
"Phone": “clients phone number”,
"CustomerPlanID": customers plan id ,
"CustomerRouteID": customers plan id ,
"DefaultSMSPrice: customers default price,
"CurrencyID": currency id,
"BalanceAmount": default balance amount,
"TimeZoneID": time zone ,
"TemplateLocked": true or false,
"CountryID": country id of customer
}
Response Details:
Sprint_SMS_API_3.0
22
9.0. Get Country List
URL: http://YOUR_API_URL/api/GetCountryList
Type: POST
Note: For RegistrationUsername and RegistrationPassword you can contact to your administrator or
support team
Response Details:
[
{
“DialingCodeID” : 1,
“CountryRealName” : “India”,
“ISOName” : “IN”,
“ISO3Code” : “IND”
}
]
Sprint_SMS_API_3.0
23
10.0. Get Time-Zone List
URL: http://YOUR_API_URL/api/GetTimeZoneList
Type: POST
Note: For RegistrationUsername and RegistrationPassword you can contact to your administrator or
support team.
Response Details:
[
{
“TimeZoneID” : 1,
“Display” : “(GMT-12:00) International Date Line West”
}
]
Type: POST
Note: For APIUsername and APIPassword you can contact to your administrator or support team.
Response Details:
[
{
“CustomerID” : 1,
“CustomerType” : “CLIENT”,
“CompanyName” : “test client”,
“CompanyEmail” : “[email protected]”,
“BillingEmail” : “[email protected]”,
“Phone” : “222222222”,
“Username” : “SAU77252123”
}
]
Sprint_SMS_API_3.0
24
12.0. Get Customer SMPP Account List
URL: http://YOUR_API_URL/api/ViewCustomerSMPPAccountList
Type: POST
Note: For APIUsername and APIPassword you can contact to your administrator or support team.
Response Details:
[
{
“CustomerSMPPAccountID” : 1,
“SMPPUsername” : “test_SM1”,
“SMPPAccountName” : “SM1”
}
]
Type: POST
Note: For APIUsername and APIPassword you can contact to your administrator or support team.
Response Details:
[
{
“VendorID” : 1,
“VendorName” : “test_SM1”,
“VendorEmail” : “[email protected]”,
“VendorBillngEmail” : “[email protected]”,
“VendorTechnicalEmail” : “[email protected]”,
“VendorPhone” : “123456”,
“VendorAddress” : “Xyz”
}
]
Sprint_SMS_API_3.0
25
14.0. Receive Incoming
URL: http://YOUR_API_URL/api/ReceiveIncoming
Input Parameters :
Input Parameters Required Default Value
ChannelNumber Yes 2222222
MessageText Yes Txt msg.
IncomingNumber Yes 91xxxxxx1234
Circle No XYZ
Operator No XYZ
Time No 0
Note: All parameters are dynamic , you have to set parameter name in incoming vendor in admin
panel and use the same parameters name as you mention for the same.
Sprint_SMS_API_3.0
26
15.0. SenderID Status
URL: http://YOUR_API_URL/api/SenderIDStatus
Input Parameters :
http://YOUR_API_URL/api/SenderIDStatus?api_id=API123&api_password=123&request_id=123
URL: http://YOUR_API_URL/api/SenderIDStatus
Response Details:
Failed:
{
“request_id”:123,
“status”: ”F”,
“remarks”: “API Password Is Invalid”
}
Success:
{
“request_id”: 123,
“company_name”: ”acdsa”,
“country”: ”india”,
“sender_id”: ”TST”,
“status”: “Approved”,
“created_time”: ”2021-05-20 15:30:49.730”,
“approval_time” : ”2021-05-20 15:30:49.730”,
“request_deleted”: 0
}
Sprint_SMS_API_3.0
27
16.0. Send Voice OTP
URL: http://YOUR_API_URL/api/SendVoiceOTP
Input Parameters :
http://YOUR_API_URL/api/SendVoiceOTP?api_id=API123&api_password=123&phonenumber=98123
123123&otp_code=123
URL: http://YOUR_API_URL/api/SendVoiceOTP
{
"api_id": “API123”,
"api_password": “wd123” ,
"phonenumber": 123234234123,
“otp_code” : 123
}
Response Details:
{
“message_id”:123,
“status”: ”S”,
“remarks”: “Submitted Successful”
}
Sprint_SMS_API_3.0
28
17.0. Voice OTP Status
URL: http://YOUR_API_URL/api/VoiceOTPStatus
Input Parameters :
http://YOUR_API_URL/api/VoiceOTPStatus?api_id=API123&api_password=123&message_id=123
URL: http://YOUR_API_URL/api/VoiceOTPStatus
{
"api_id": “API123”,
"api_password": “wd123” ,
"message_id": 123
}
Response Details:
{
“PhoneNumber”:123,
“status”: ”Delivered”,
“OTP”: “123”,
“Remarks”:”OK”,
“JobDetailID”:123
}
Sprint_SMS_API_3.0
29
18.0. Add Vendor Invoice
URL: http://YOUR_API_URL/api/AddVendorInvoice
Type: POST
Note: For APIUsername and APIPassword you can contact to your administrator or support team.
Input Parameters:
URL: http://YOUR_API_URL/api/AddVendorInvoice
{
"vendor_id": 1,
"amount": 123.0 ,
"invoice_date": “YYY-mm-dd”,
"invoice_number": “wd123” ,
"billing_start_date": “YYY-mm-dd”,
"billing_end_date": “YYY-mm-dd”
}
Response Details:
{
“vendor_invoice_id”:123,
“status”: ”S”,
“remarks”:”Invoice Created Successfully”,
}
Sprint_SMS_API_3.0
30
19.0. Add Vendor Payment
URL: http://YOUR_API_URL/api/AddVendorPayment
Type: POST
Note: For APIUsername and APIPassword you can contact to your administrator or support team.
Input Parameters :
URL: http://YOUR_API_URL/api/AddVendorPayment
{
"vendor_id": 1,
"amount": 123.0 ,
"amount_main_currency": 123.0,
"remarks": “wd123” ,
"payment_date": “YYY-mm-dd”
}
Response Details:
{
“vendor_payment_id”:123,
“status”: ”S”,
“remarks”:”Payment Created Successfully”,
}
Sprint_SMS_API_3.0
31
20.0. Recharge Customer
URL: http://YOUR_API_URL/api/Recharge
Type: POST
Auth : Basic Auth ( Username as APIUsername, Password as APIPassword)
Note: For APIUsername and APIPassword you can contact to your administrator or support
team.
Input Parameters :
URL: http://YOUR_API_URL/api/Recharge
{
"user_email": “[email protected]”,
"amount": 123.0 ,
"remarks": “wd123” ,
"recharge_date": “YYY-mm-dd”
}
Response Details:
{
“customer_payment_id”:123,
“status”: ”S”,
“remarks”:”Payment Created Successfully”,
}
Sprint_SMS_API_3.0
32