This API is used for sale using VISA card.
Endpoint
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
Parameter | 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 |
M |
Brief description of items purchased. Len: 0-50 chars |
Apple iPOD 20GB |
merchantReferenceNo |
M |
Merchant reference number |
AX143565 |
approvalCode |
C |
Approval code of Transaction |
560252 |
rrn |
O |
RRN no for reference |
104013006601 |
creditDebitCardFlag |
O |
Flag to say whether its credit card or debit card |
‘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. |
|
ext2 |
O |
Same value will be sent back as pg has received from merchant in the request. |
|
ext3 |
O |
Same value will be sent back as pg has received from merchant in the request. |
|
ext4 |
O |
Same value will be sent back as pg has received from merchant in the request. |
|
ext5 |
O |
Same value will be sent back as pg has received from merchant in the request. |
|
ext6 |
O |
Same value will be sent back as pg has received from merchant in the request. |
|
ext7 |
O |
Same value will be sent back as pg has |
Sample response