Skip to main content
POST
/
api
/
payment
/
{paymentId}
/
refund
Refund via payment route (deprecated)
curl --request POST \
  --url https://api.suby.fi/api/payment/{paymentId}/refund \
  --header 'Content-Type: application/json' \
  --header 'X-Suby-Api-Key: <api-key>' \
  --data '
{
  "reason": "<string>"
}
'
{
  "success": true,
  "data": {
    "paymentId": "<string>",
    "status": "<string>"
  }
}

Authorizations

X-Suby-Api-Key
string
header
required

API key authentication

Path Parameters

paymentId
string
required

Body

application/json
reason
string
Maximum string length: 500

Response

Refund initiated

success
boolean
Example:

true

data
object