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": "Order-123",
  "requestId": "Order-123-R",
  "amount": "123"
}
'
{
  "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