Skip to main content
POST
/
api
/
refund
post refund
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

trace-id
string
default:{{$string.uuid}}

Body

application/json
transactionId
string
required

payment transaction id

refundTransactionId
string
required

refund transaction id, required for query refund

Response

200 - application/json
transactionId
string
required
status
string
required

created/refunding/success/failure/cancel/closed