cURL
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 }
Calculates the early return fee for a subscription without performing the return.
API key obtained from FlexPortal dashboard
Your tenant identifier
The subscription ID
Early return fee calculation
true
false