post https://areionsbi.pc.enstage-sas.com/saleservice/api/v1/authorize
The Inititate Rupay Card Transaction API is used to initiate the transaction in a non-seamless or redirection flow.
Production | https://pginstance/saleservice/api/v1/authorize |
Test | https://areionsbi.pc.enstage-sas.com/saleservice/api/v1/authorize |
Sample request
curl -X POST https://areionsbi.pc.enstage-sas.com/saleservice/api/v1/authorize \
-H "Content-Type: application/json" \
-H "pgInstanceId: 720200" \
-d '{
"header": {
"version": "1.0.0.0",
"pgInstanceId": "720200",
"x-api-key”: “AF165FBD-4E85-4c66-BEB1C54DC16CD48B”
},
"body": {
“pgInstanceId”:” 72702415”,
"merchantId":”123”,
"pan": “6075xxxxxxxx4412”,
"expDate_:"022024",
"cvd2":”123”,
"nameOnCard":”test”,
"email":”[email protected]”,
"currencyCode":”356”,
"amount":”11025”
"merchantReferenceNo":”122344sdg”
"orderDesc":”One bat”,
"mobileNumber":”8867772222”
"httpAccept": “text/html, application/xhmtl (http accept of a browser)”,
"browserUserAgent":"user agent of a browser",
"ipAddress":"ip-address of a customer",
“ext1”:”123456”,
“ext2”:”123456”,
“amountInINR:”11025”,
“originalAmount”:”11025”,
“merchantResponseURL”:”https://merchantdomain.com/response”
“purposeOfAuthentication”:”Token Transaction”,
“tokenAuthenticationValue”:”wwopqds/qww=”
}
}'
Response parameters
Field Name | M/O/C | Type & Size | Description | Example |
---|---|---|---|---|
transactionId | M | N(1-8) | PG Sale Id | 860 |
status | M | N(5) | Transaction Status | 50020 = success. For the complete list of transaction status codes, refer to Transaction Status Codes. |
pgErrorCode | M | N(1-4) | Error Code | 0 = No Error. For the complete list of error codes, refer to PG Error Codes. |
pgErrorDetail | C | AN(0- (1024) | Description for the error code. | No Error. For the complete list of error codes with description, refer to PG Error Codes . |
approvalCode | C | N(6) | Approval Code of Transaction | 560252 |
rrn | O | N(15) | RRN No for reference | 104013006601 |
Sample response
{
"status": "success",
"redirectURL": "https://qccert.npci.org.in/bepg/cert/iasAuthentication?AccuCardholderId=67971410626&AccuGuid=085bf526-ca2b-4806-8a99-c51d4597500b&AccuHkey=8bf38ac2-69ec-47af-a0df-1c23d1162759",
"accuRequestId": "MmFkNTcwNzYxZTkzYzUzNmI0MzgzZTEyNjRlYzVlOGU0MWVkZTYxNDRhYjc3YzEwZjQ1NjBiNGRlODcxOTUzZg==",
"session": "sendRupayRedirectionResponse|26443013|PayU02NALTID43|90009356|72702415",
"pgTransactionId": "26443013",
"errorcode": 0,
"errormsg": "",
"rupayTransactionId": "100112024103000000000000430450"
}
Form-based
pg_instance_id:72702415
merchant_id:90009356
transaction_type_code:9003
transaction_id:26443016
pgTransactionId:26443016
amount:5121000
exponent:2
currency_code:356
merchant_reference_no: PayU02NALTID43
status:50013
rrn:430413659186
stan:
approval_code:
card_type:R
credit_debit_flag:D
domestic_international_flag:Domestic
3ds_eci:
3ds_cavv_aav:
3ds_status:
pg_error_code:0
pg_error_detail:No Error
errorcode:0
errormsg:
transactionReferenceId:
message_hash:13:D2gf/8DlTfnnQZ+RJu48rZNGy/M