Void or Refund a Transaction API

This API is used to void a transaction or refund a transaction.

Endpoint

Productionhttps://pginstance/api/v1/voidorrefund
Testhttps://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

(Any other value is a failure, full status codes shall be provided in appendix A)

pgErrorCode

M

PG Error Code

0 = No Error

(Any other value means some kind of error, full error codes list shall be provided in appendix B)

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

Request parameters

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