This API call allows Merchants to process a refund for customers without having the physical card. This is know as the CNP Refund

👍

POST

{{url}}/retail/transaction/cnp-refund?group_id={{group-id}}

Headers


NameDescription
x-tu-authorizationprotocol:TU1,accesskey:{{accessKey}},signedheaders:X-tu-date,signature:{{signature}}
X-tu-date{{X-tu-date}}

Parameters:

ParameterDescription
group_id{{group-id}}

Body:

curl --location -g '{{url}}/retail/transaction/cnp-refund?group_id={{group-id}}' \
--header 'x-tu-authorization: protocol:TU1,accesskey:{{accessKey}},signedheaders:X-tu-date,signature:{{signature}}' \
--header 'X-tu-date: {{X-tu-date}}' \
--data-raw '{"merchantNumber" : "{{merchantId}}",
"originalTransactionUuid" : "969f5887-caaf-4491-a363-b9ecc06d58af",
"transactionUuid" : "{{tx-uuid}}",
"description" : "Testing123",
"cardNotPresentData": {
"receiptEmail": "[email protected]",
"currency" : "ZAR"
},
"amount" : 100,
"groupId" : "{{group-id}}"
}'