Integrate your application using SabPaisa API documentation

Our developer's guide is lightweight and developer friendly, giving you a quick and clean approach to get you up and go-live.

# Parameter Name Provided by Mandatory Or Optional Description Syntax And other Restriction
1 prodCode SabPaisa Mandatory ONLY if the client is coming from an application which caters to multiple clients The product code is a unique code which will identify the product that is sending request to SabPaisa Maximum length: 5 characters
2 prodCode SabPaisa Mandatory ONLY if the client is coming from an application which caters to multiple clients The product code is a unique code which will identify the product that is sending request to SabPaisa Maximum length: 5 characters
3 usern SabPaisa Mandatory Username provided by Sabpaisa. NA
4 pass SabPaisa Mandatory Password provided by Sabpaisa. NA
5 txnId You Mandatory Unique Transaction ID generated by your application. Must be unique for each request. Maximum length: 15
6 Amt You Mandatory Transaction Amount generated by your application. Must be numeric either whole number or upto two decimal places precision, currency INR Maximum length: 10
7 authKey You Mandatory The Authentication Key Provided by SabPaisa NA
8 authIV SabPaisa Mandatory The Authentication IV provided by Sabpaisa NA
9 ru You Optional The client URL to be called upon completion of transaction successfully NA
10 failureURL You Optional The client URL to be called upon failure of transaction NA
11 firstName You Optional First Name of Payer Maximum length: 15
12 lstName You Optional Last Name of Payer Maximum length: 15
13 Email You Optional Email address of Payer Payer
14 Add You Optional Physical address of Payer Maximum length: 40 characters
15 contactNo You Optional Contact number of Payer 10-digit numeric
16 programId SabPaisa Optional User defined, for separating different processes in the same client code. 25-digit Alphanumeric
# Parameter Name Description
1 SabPaisaTxId Unique Transaction ID generated by Sabpaisa
2 clientTxnId Transaction ID generated by your application provided in the request.
3 PGTxnNo Transaction ID generated by the Payment Gateway
4 issuerRefNo Reference Number generated by the issuer
5 spRespCode Response code from Sabpaisa
6 pgRespCode Response code from the Payment Gateway
7 Amount Transaction Amount
8 authIdCode Authorization Code from Payment Gateway
9 payMode UPayment Mode used to make the payment
10 firstName Payer’sFitName
11 lastName Payer’sLastName echoed back from client request
12 mobileNo Payer’scontact No echoed back from client request
13 email Payer’smail address echoed back from client request
14 transDate Transaction Date
15 clientCode Unique code assigned to the client by SabPaisa
16 spRespStatus Response Status from SabPaisa
17 challanNo Challan No. if the paymode was Cash/NEFT/RTGS and if challan is opted
18 orgTxnAmount Amount forwarded to SabPaisa by the client
19 programId User defined Program ID, for separating different processes in the same client code

Transaction Enquiry API offers to verify the status of a transaction, after it has been initiated. Very useful in reconciling the status of a transaction that might have got dropped while the response is sent from SabPaisa server to your application. This keeps you more updated about the status of your transactions as and when required.

The Request should be a plain get request with a couple of query parameters as mentioned below. / TransactionEnquiryServlet?clientXtnId= " + pTxId + "&clientCode=" + clientCode

For Ex: http://hiturl/SPTxtnEnquiry/TransactionEnquiryServlet?clientXtnId=XXXXX&clientCode=CXY10

Kindly use your clientXtnId and clientCode in place of “CXY10”, please use above URL for taking reference

# Parameter Name Description
1 URL Url to which the request is to be sent
2 Client Txn Id Unique transaction ID sent by the client when the transaction was initiated
3 Client Code The code set by sabpaisa for that particular client to which this clientTxnId belongs

The SabPaisa Response will carry an xml element with multiple attributes and their values to be read by the client.

Debit Card Credit Card Net Banking Cash