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 NameM/O/CDescriptionExample
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
transactionIdMNew Transaction id generated by PG1235
rrnMRetrieval reference number06711005310
Sample response

Request parameters

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