post https://areionsbi.pc.enstage-sas.com/voidrefundservice/api/v1/voidorrefund
This API is used to void a transaction or refund a transaction.
Endpoint
Production | https://pginstance/api/v1/voidorrefund |
Test | https://areionsbi.pc.enstage-sas.com/saleservice/api/v1/voidorrefund |
Sample request
curl --request POST \
--url https://areionsbi.pc.enstage-sas.com/voidrefundservice/api/v1/voidorrefund \
--header 'content-type: application/json' \
--header 'mle-enabled: eesrfferertretertertert' \
--data '
{
"pgInstanceId": "72702415",
"merchantId": "35890949",
"merchantReferenceNo": "AX143565",
"originalTransactionId": "1234",
"amount": "10000",
"ext1": "CTX147258369QAZXWERTAXSFGHQWED"
}
'
Response parameters
Field Name | M/O/C | Description | Example |
---|---|---|---|
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 |
transactionId |
M |
New Transaction id generated by PG |
1235 |
rrn |
M |
Retrieval reference number |
06711005310 |
Sample response