Skip to main content
POST
/
api
/
refund
Initiate refund
curl --request POST \
  --url https://sbx.api.easybilling.cloud/payment-hub/api/refund \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "transactionId": "275374c30d584b599c57aef0ccd03ada",
  "requestId": "r1e2q3u4e5s6t7i8d9",
  "amount": "100"
}
'
{
  "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

requestId
string
required

refund transaction id, required for query refund

status
string
required

status

Response

200 - application/json
transactionId
string
required
status
string
required

created/refunding/success/failure/cancel/closed