Pre-Auth Capture Transaction API

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.

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" \
-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 NameM/O/CDescriptionExample
transactionIdMUnique value generated for each transaction internally by the PG123456
statusMTransaction Status50020 = SUCCESS

(any other value is a failure, full status codes shall be provided in appendix A)
pgErrorCodeMPG Error Code0 = No Error

(any other value means some kind of error, full error codes list shall be provided in appendix B)
pgErrorDetailMPG Error detailpg error detail was not set
orderDescOBrief description of items purchased of pre auth. Len: 0-50 charsApple iPOD 20GB
merchantReferenceNoOMerchant reference number of pre authAX143565
approvalCodeOApproval code of Transaction of pre auth560252
rrnORRN no for reference of pre auth104013006601
creditDebitCardFlagOFlag to say whether its credit card or debit card of pre auth‘C’ – Credit card ‘D’ – Debit Card ‘P’ – Prepaid Card
ext1OSame value will be sent back as pg has received from merchant in the request of pre auth.
ext2OSame value will be sent back as pg has received from merchant in the request of pre auth.
ext3OSame value will be sent back as pg has received from merchant in the request of pre auth.
ext4OSame value will be sent back as pg has received from merchant in the request of pre auth.
ext5OSame value will be sent back as pg has received from merchant in the request of pre auth.
ext6OSame value will be sent back as pg has received from merchant in the request of pre auth.
ext7OSame value will be sent back as pg has

received from merchant in the request of pre auth
Sample response
{
      "status":"success",
      "errorcode":"0",
      "errormsg":"",
      "pgTransactionId":"32424",
      “rupayTransactionId”:”10000000002332”
   }

Language
Click Try It! to start a request and see the response here!