The Pre-Auth Capture Transaction API is used to complete (authorize) or cancel an Pre-Auth tranaction.
Note:This API endpoint is same as Sale API, but with action=SERVICE_POST_MPI_PRE_AUTH_COMPLETION and transactionTypeCode=9001 fields. For more information, refer to Sale using Visa Card API.
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",
    "Authorization": "AF165FBD-4E85-4c66-BEB1C54DC16CD48B"
  },
  "body": {
    "merchantId": "123",
    "merchantRefernceNo": "dafa34",
    "pgTransactionId": "1232324df"
  }
}'Response parameters
| Field Name | M/O/C | Description | Example | 
|---|---|---|---|
| transactionId | M | Unique value generated for each transaction internally by the PG | 123456 | 
| status | M | Transaction Status | 50020 = SUCCESS | 
| pgErrorCode | M | PG Error Code | 0 = No Error | 
| pgErrorDetail | M | PG Error detail | pg error detail was not set | 
| orderDesc | O | Brief description of items purchased of pre auth. Len: 0-50 chars | Apple iPOD 20GB | 
| merchantReferenceNo | O | Merchant reference number of pre auth | AX143565 | 
| approvalCode | O | Approval code of Transaction of pre auth | 560252 | 
| rrn | O | RRN no for reference of pre auth | 104013006601 | 
| creditDebitCardFlag | O | Flag to say whether its credit card or debit card of pre auth | ‘C’ – Credit card ‘D’ – Debit Card ‘P’ – Prepaid Card | 
| ext1 | O | Same value will be sent back as pg has received from merchant in the request of pre auth. | |
| ext2 | O | Same value will be sent back as pg has received from merchant in the request of pre auth. | |
| ext3 | O | Same value will be sent back as pg has received from merchant in the request of pre auth. | |
| ext4 | O | Same value will be sent back as pg has received from merchant in the request of pre auth. | |
| ext5 | O | Same value will be sent back as pg has received from merchant in the request of pre auth. | |
| ext6 | O | Same value will be sent back as pg has received from merchant in the request of pre auth. | |
| ext7 | O | Same value will be sent back as pg has | 
Sample response
{
      "status":"success",
      "errorcode":"0",
      "errormsg":"",
      "pgTransactionId":"32424",
      "rupayTransactionId":"10000000002332"
}