0% found this document useful (0 votes)
22 views

Sprint API 3.0

Uploaded by

Vaibhav
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Sprint API 3.0

Uploaded by

Vaibhav
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

SMS API Document

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

AUTHOR Amjad Ali


REVIEWED BY Vaibhav Srivastava
APPROVED BY Vaibhav Srivastava
CURRENT VERSION 3.0
DATE OF CURRENT VERSION 3rd January 2023
DOCUMENT TYPE Internal
DOCUMENT STATUS Approved
DOCUMENT CIRCULATION Stakeholders from Sprint Marketing and Technology
OWNER Sprint Marketing and Technology

VALID FROM 3rd January 2023 Replace previous releases, if any.


PUBLISHED BY Sprint Marketing and Valid till Reissued.
Technology All Rights Reserved.

Sprint_SMS_API_3.0

2
Table Of Contents

1. Sending SMS Through API 5


a. Parameters
b. Calling API using GET Request
i. Method-1: Using Get Request
ii. Method-2: Using POST Request
iii. Response Details
iv. CallBack URL Response Details
c. Enquiring Delivery Status
i. Parameters
ii. Calling Delivery Report API Using, Method-1 Get Request
iii. Calling Delivery Report API Using, Method-2 Post Request
iv. Response Format for Both GET AND POST
v. Response Details
2. Managing Contact Lists through API 12
a. Add Number to Contact List through API
i. Parameters List
ii. How to Get Contact List ID
iii. Calling Contact List API using Method 1 (GET REQUEST)
iv. Calling Contact List API using Method 2 (POST REQUEST)
v. Response Format for Both GET AND POST
vi. Response Details
b. Deleting Number from Contact List using API
i. Parameters List
ii. Calling Delete Contact Using API, Method 1, Get Request
iii. Calling Delete Contact Using API, Method 2, POST Request
iv. Response Format for Both GET AND POST
v. Response Details
3. ASMSC Verify API - Sending OTP Verification SMS 16
a. Sending Verification SMS
i. Calling the ASMSC Verify API using Get Request
ii. Calling the ASMSC Verify API using POST Request
iii. Response Format for Both GET AND POST
iv. Response Details
b. Checking Verification Status
i. Checking the verification Status Using Get Request
ii. Checking the verification Status Using Get Request
iii. Response Format for Both GET AND POST
iv. Response Details
4. SenderIDRequest (API) 18
5. GetSenderIDList (API) 19
6. Check Balance 20
7. Register Reseller Customer 21
Sprint_SMS_API_3.0

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

api_password Yes Your SPI Password Sent in password@123


Email
sms_type Yes SMS Type Promotional / P for Promotional
Transactional T for
Transactional
encoding Yes SMS Encoding Text, T for Text
Unicode etc. U for Unicode
FS for Flash Message
UFS for Unicode Flash Message

sender_id Yes Your Sender ID Your Registered Sender ID


phonenumber Yes Recipient Phone Number Phone Number Should No Contain +
Sign
Phone Number Format is Country
Code + Phone Number
Example: 919622333345
In case of bulk submit , separate each
number with a comma like
911234567890,63344455678,971543
213066
templateid Optional Required If You Want to Template ID from Customer Panel
Send Example: 10
Existing Template. Check
Template ID in Customer
Panel
textmessage Conditional If Template ID is provided Text of SMS Message to Send
text message is not required
V1 Optional Variable 1 To Replace in Any Data for Variable 1 You Want
Template to Replace
V2 Optional Variable 2 To Replace in Any Data for Variable 2 You Want
Template to Replace
V3 Optional Variable 3 To Replace in Any Data for Variable 3 You Want
Template to Replace

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

template_id Conditional DLT parameter (if given xyz


pe_id then this field is
required )

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
}

1.2.3 Response Format for Both GET AND POST


{
"message_id": 4125,
"status": "S",
"remarks": "Message Submitted Successfully" ,
“uid”: “xyz”
}

Sprint_SMS_API_3.0

7
Response Details.

message_id System Generated Message ID


status S = Submitted
F = Failed to Submit
remarks Description of the status
uid Reference Value as given

1.2.4 CallBack URL 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”
}

message_id Message ID of the request


PhoneNumber Phone Number to which message was sent
SMSMessage Text of the SMS message
MessageType Message Encoding
MessageLength Length of Message
MessageParts No of Message parts
ClientCost Amount Deducted from account

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 Query Delivery Report / Message Status


URL: http://YOUR_API_URL/api/GetDeliveryStatus

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

1.3.2 Calling Delivery Report API Using, Method-1 Get Request

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”
}

1.3.4 Response Format for Both GET AND POST

{
"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

message_id Message ID of the request


PhoneNumber Phone Number to which message was sent
SMSMessage Text of the SMS message
MessageType Message Encoding
MessageLength Length of Message
MessageParts No of Message parts
ClientCost Amount Deducted from account
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

Sprint_SMS_API_3.0

11
2.0 Managing Contact Lists through API
2.1 Add Number to Contact List through API

2.1.1 Parameters List

Parameter Name Required Description Example

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

2.1.2 How to Get Contact List ID


Step 1. Login in your Customer Panel At http://my.ASMSC.com
Step 2. Go to Contact List in The Left Side Menu Bar
Step 3. Click on Add New Contact List Button & Create a new Contact List

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

Yellow Color Highlighted Is Your Contact List ID

2.1.3 Calling Contact List API using Method 1 (GET REQUEST)


Example:
http://YOUR_API_URL/api/AddContact?api_id=API3434144906&api_password=passwor
d&contact_list_id=1&contact_name=Test&contact_number=919990206824

2.1.4 Calling Contact List API using Method 2 (POST REQUEST)


URL: http://YOUR_API_URL/api/AddContact

Post Request JSON Format


{
"api_id": yourapiid,
"api_password": yourapipassword,
"contact_list_id": 1,
"contact_name": Test,
"contact_number": 91999020238,
}

2.1.5 Response Format for Both GET AND POST


{
"contact_id": 4,
"status": "S",
"remarks": "Contact Created Sucessfully"
}

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

2.2.1 Parameters List


Parameter Name Required Description Example
api_id Yes Your API ID Received in the email or you can get it from API0896731286
your customer panel
api_password Yes Your API Password Received in the email or can change password@123
API password from customer panel
contact_id Yes Contact ID You Have Get While Creating the contact 123
from api

2.2.2 Calling Delete Contact Using API, Method 1, Get Request


Example:
http://YOUR_API_URL/api/DeleteContact?api_id=API4das62144906&api_password=p
as sword&contact_id=4

2.2.3 Calling Delete Contact Using API, Method 2, POST Request


URL: http://YOUR_API_URL/api/DeleteContact
Post Request JSON Format

{
"api_id": yourapiid,
"api_password": yourapipassword,
"contact_id ": 1,
}

2.2.4 Response Format for Both GET AND POST


{
"contact_id": 0,
"status": "S",
"remarks": "Contact Created Successfully"
}
2.2.5 Response Details

contact_id Value Will Always Be Zero


status S = Contact Deleted Successfully F
= Failed to delete contact
remarks Description of the status

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

3.1.2 Calling the ASMSC Verify API using POST Request

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,
}

3.1.3 Response Format for Both GET AND POST


{
"verfication_id": 4,
"status": "S",
"remarks": "Verification Code Sent Successfully"
}

3.1.4 Response Details

verfication_id System generated id of your verification request save it to check the


verification status
status S = Verification SMS Sent Successfully F
= Failed to send verification SMS
remarks Description of the status

Sprint_SMS_API_3.0

16
3.2 Checking Verification Status

3.2.1 Checking the verification Status Using Get Request.

Example: http://YOUR_API_URL/api/VerifyS tatus?verfication_id=2&verfication_code=4022

3.2.2 Checking the verification Status Using Get Request.


URL: http://YOUR_API_URL/api/VerifyStatus
Post Request JSON Format
{
"verfication_id": 2,
"verfication_code": 4022,
}

3.2.3 Response Format for Both GET AND POST


{
"verfication_id": 2,
"status": "F",
"remarks": "Verification Code is Not Verified"
}
3.2.4 Response Details

verfication_id Verification ID You Sent in the Request


status V = Verification Successfully F = Verification Failed

remarks Description of the status

Sprint_SMS_API_3.0

17
4.0 SenderIDRequest (API)
URL: http://YOUR_API_URL/api/SenderIDRequest

Methods Supported : GET & POST

Parameters List : For POST JSON : -


{
"api_id" : "Your API ID",
“api_password" : "Your API Password",
"sender_id": "Desired Sender ID",
"country" : "Desired Country Name",
"remarks" : "Remarks Related To Sender ID"
}

For Get Request:


http://YOUR_API_URL/api/SenderIDRequest?api_id=youapiid&api_password=yourapipassword&sende
r_id=yoursenderid&country=yourcountryname&remarks=remarks

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)

URL : http://YOUR_API_URL/api/ GetSenderIDList


Methods Supported : GET & POST
Parameters List : For POST JSON : -

{
"api_id" : "Your API ID",
"api_password" : "Your API Password",
}

For Get Request :

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 :

Input Parameters Required


1. api_id Yes
2. api_password yes

a) Method-1: Using Get Request

http://YOUR_API_URL/api/CheckBalance?api_id=yourapiid&api_password=yourapipassword

b) Method-2: Using Post Request

Post Request Json Format


{
"api_id ": your api id,
"api_password": your api password
}

Response Details:

BalanceAmount: balance amount in decimal


CurrenceCode : amount currence code

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

Method-2: Using Post Request


Post Request Json Format
{
"Username": ”Reseller account username”,
"Password": “Reseller account password”,
"CompanyName": “Reseller clients company name”,
"CompanyEmail": “Reseller clients company name “,
"BillingEmail": “Reseller clients billing email”,
"Phone": “Reseller clients phone number”,
"CustomerPlanID": 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,
"SenderID": sender id
}

Response Details:

UserRegistered: 1 for success, 0 for fail


Remarks : Description of the status
Sprint_SMS_API_3.0

21
8.0. Register Customer
URL: http://YOUR_API_URL/api/RegisterCustomer

Auth : Basic Auth ( Username as RegistrationUsername, Password as RegistrationPassword)

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

a) Method-2: Using Post Request

Post Request Json Format

{
"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:

UserRegistered: 1 for success, 0 for fail


Remarks : Description of the status

Sprint_SMS_API_3.0

22
9.0. Get Country List
URL: http://YOUR_API_URL/api/GetCountryList

Type: POST

Auth : Basic Auth ( Username as RegistrationUsername, Password as RegistrationPassword)

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

Auth : Basic Auth ( Username as RegistrationUsername, Password as RegistrationPassword)

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”
}
]

11.0. Get Customer List


URL: http://YOUR_API_URL/api/ViewCustomerList

Type: POST

Optional parameter : CustomerID

Auth : Basic Auth ( Username as APIUsername, Password as APIPassword)

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

Optional Parameter: CustomerID, CustomerSMPPAccountID

Auth : Basic Auth ( Username as APIUsername, Password as APIPassword)

Note: For APIUsername and APIPassword you can contact to your administrator or support team.

Response Details:
[
{
“CustomerSMPPAccountID” : 1,
“SMPPUsername” : “test_SM1”,
“SMPPAccountName” : “SM1”
}
]

13.0. Get Vendor List


URL: http://YOUR_API_URL/api/ViewVendorList

Type: POST

Optional Parameter: VendorId

Auth : Basic Auth ( Username as APIUsername, Password as APIPassword)

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.

a) Method-1: Using Get Request


http://YOUR_API_URL/api/ReceiveIncoming?ChannelNumber=22222&MessageText=test
msg&IncomingNumber=9123123211212

b) Method-2: Using Post Request


URL: http://YOUR_API_URL/api/ReceiveIncoming

For aSMSC V2 : Post Json data


{
"ChannelNumber": 2222222,
"MessageText": “test” ,
"IncomingNumber": 12323123123
}

For aSMSC V3 : Post Form data

Response Details: Success / Bad Request

Auto Post: Receive data in Request Form Body


Content Type: application/json
Received Parameters: IncomingNumber, MessageText, ChannelNumber, Keyword

Sprint_SMS_API_3.0

26
15.0. SenderID Status

URL: http://YOUR_API_URL/api/SenderIDStatus

Input Parameters :

Input Parameters Required Default Value


api_id Yes API123
api_password Yes 123xyz
request_id Yes 1234

A) Method-1: Using Get Request

http://YOUR_API_URL/api/SenderIDStatus?api_id=API123&api_password=123&request_id=123

B) Method-2: Using Post Request

URL: http://YOUR_API_URL/api/SenderIDStatus

Post Json data


{
"api_id": “API123”,
"api_password": “wd123” ,
"request_id": 123
}

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 :

Input Parameters Required Default Value


api_id Yes API123
api_password Yes 123xyz
phonenumber Yes 1234123123
otp_code Yes 123

A) Method-1: Using Get Request

http://YOUR_API_URL/api/SendVoiceOTP?api_id=API123&api_password=123&phonenumber=98123
123123&otp_code=123

B) Method-2: Using Post Request

URL: http://YOUR_API_URL/api/SendVoiceOTP

Post Json data

{
"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 :

Input Parameters Required Default Value


api_id Yes API123
api_password Yes 123xyz
message_id Yes 123

A) Method-1: Using Get Request

http://YOUR_API_URL/api/VoiceOTPStatus?api_id=API123&api_password=123&message_id=123

B) Method-2: Using Post Request

URL: http://YOUR_API_URL/api/VoiceOTPStatus

Post Json data

{
"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

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:

Input Parameters Required Default Value


vendor_id Yes 1
Amount Yes 123.0
invoice_date Yes Should be less than or equals to Today Date (YYYY-mm-dd)
invoice_number Yes Ix1231234
billing_start_date Yes Should be less than or equals to Today Date (YYYY-mm-dd)
billing_end_date Yes Should be less than or equals to Today Date,
Should be less than or equals to Billing Start Date (YYYY-mm-dd)

A) Method-1: Using Post Request

URL: http://YOUR_API_URL/api/AddVendorInvoice

Post Json data

{
"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

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 :

Input Parameters Required Default Value


vendor_id Yes 1
amount Yes 123.0
amount_main_currency Yes 123.0
remarks Yes test
payment_date Yes YYYY-mm-dd

A) Method-1: Using Post Request

URL: http://YOUR_API_URL/api/AddVendorPayment

Post Json data

{
"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 :

Input Parameters Required Default Value


user_email Yes [email protected]
amount Yes 123.0
remarks Yes test
recharge_date Yes YYYY-mm-dd

A) Method-1: Using Post Request

URL: http://YOUR_API_URL/api/Recharge

Post Json data

{
"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

You might also like