cURL
curl --request POST \ --url https://api.example.com/api/refund \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "transactionId": "<string>", "refundTransactionId": "<string>" } '
{ "transactionId": "<string>", "status": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
payment transaction id
refund transaction id, required for query refund
created/refunding/success/failure/cancel/closed