Skip to main content
POST
/
v1
/
subscriptions
/
calculate-early-return-fee
Calculate early return fee
curl --request POST \
  --url https://api-eu.flexportal.io/v1/subscriptions/calculate-early-return-fee \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Tenant-ID: <tenant-id>' \
  --data '
{
  "rentalId": "<string>"
}
'
{
  "success": true,
  "earlyReturnFee": 123,
  "remainingMonths": 123,
  "penaltyPercentage": 123
}

Authorizations

Authorization
string
header
required

API key obtained from FlexPortal dashboard

Headers

Tenant-ID
string
required

Your tenant identifier

Body

application/json
rentalId
string
required

The subscription ID

Response

Early return fee calculation

success
enum<boolean>
required
Available options:
true,
false
earlyReturnFee
number
required
remainingMonths
number
required
penaltyPercentage
number
required