Authorize Rupay Card Transaction API

The Authorize Rupay Card Transaction API is used to authorize the transaction where Rupay card is used.

Productionhttps://pginstance/saleservice/api/v1/authorize
Testhttps://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" \
-d '{
  "header": {
    "version": "1.0.0.0",
    "pgInstanceId":”72702415”,
    "x-api-key”: “AF165FBD-4E85-4c66-BEB1C54DC16CD48B”
  },
  "body": {
     "pgInstanceId":"72702415",
     "merchantId":”12345678”,
     “merchantRefernceNo”:”dafa34”,
     “pgTransactionId”:”1232324df”
  }
}'

Response parameters
Field NameM/O/CType & SizeDescriptionExample
transactionIdMN(1-8)PG Sale Id860
statusMN(5)Transaction Status50020 = success. For the complete list of transaction status codes, refer to Transaction Status Codes.
pgErrorCodeMN(1-4)Error Code0 = No Error. For the complete list of error codes, refer to PG Error Codes.
pgErrorDetailCAN(0-

(1024)
Description for the error code.No Error. For the complete list of error codes with description, refer to PG Error Codes .
approvalCodeCN(6)Approval Code of Transaction560252
rrnON(15)RRN No for reference104013006601
Sample response
{
    "approvalCode": "133051",
    "ext10": "Y",
    "rupayTransactionId": "100122024103000000000000430451",
    "transactionId": 26443014,
    "rrn": "430413658649",
    "creditDebitCardFlag": "D",
    "pgErrorDetail": "No Error",
    "merchantReferenceNo": "PayU02NALTID43",
    "pgErrorCode": 0,
    "ext9": null,
    "ext8": null,
    "ext7": null,
    "ext6": null,
    "ext5": null,
    "ext4": null,
    "ext3": null,
    "orderDesc": "Five Burgers",
    "ext2": "345DF45",
    "status": 50020,
    "ext1": "SDFSDF45DF"
}
Language
Click Try It! to start a request and see the response here!