Sale using Visa Card API

This API is used for sale using VISA card.

Endpoint

Productionhttps://pginstance/saleservice/api/v1/sale
Testhttps://areionsbi.pc.enstage-sas.com/saleservice/api/v1/sale
Sample request
curl --request POST \
     --url https://areionsbi.pc.enstage-sas.com/saleservice/api/v1/sale \
     --header 'content-type: application/json' \
     --header 'mle-enabled: 0' \
     --header 'pgInstanceId: 1232324' \
     --header 'x-api-key: 4A02C4267C9A97A1488AB3259FD1A725' \
     --data '
{
  "pgInstanceId": "720200",
  "merchantId": "44065131",
  "action": "SERVICE_POST_MPI",
  "transactionTypeCode": 9003,
  "currencyCode": "356",
  "acquiringBankId": "93734895",
  "pan": "4123234512341234",
  "expiryDateYYYY": "2024",
  "expiryDateMM": "12",
  "nameOnCard": "Ashish",
  "amount": 100,
  "merchantReferenceNo": "AX143565",
  "orderDesc": "Apple iPOD 20GB",
  "cvv2": "122",
  "mpiTransactionId": "d04480d3-9408-483a-85ce-636e19248545",
  "threeDsXid": "QUJDREVGR0hJSjEyMzQ1Njc4OTA=",
  "threeDsEci": "05",
  "threeDsCavvAav": "AAABBGkgUhI0VngQACBSAAAAAAA=",
  "acquirerID": "8645"
}
'
Response parameters
ParameterM/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
orderDescMBrief description of items purchased. Len: 0-50 charsApple iPOD 20GB
merchantReferenceNoMMerchant reference numberAX143565
approvalCodeCApproval code of Transaction560252
rrnORRN no for reference104013006601
creditDebitCardFlagOFlag to say whether its credit card or debit card‘C’ – Credit card ‘D’ – Debit Card ‘P’ – Prepaid Card
ext1OSame value will be sent back as pg has received from merchant in the request.
ext2OSame value will be sent back as pg has received from merchant in the request.
ext3OSame value will be sent back as pg has received from merchant in the request.
ext4OSame value will be sent back as pg has received from merchant in the request.
ext5OSame value will be sent back as pg has received from merchant in the request.
ext6OSame value will be sent back as pg has received from merchant in the request.
ext7OSame value will be sent back as pg has

received from merchant in the request
Sample response

Request parameters

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