cURL
curl --request POST \ --url https://api-eu.flexportal.io/v1/subscriptions/calculate-buyout \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Tenant-ID: <tenant-id>' \ --data ' { "rentalId": "<string>" } '
{ "success": true, "buyoutPrice": 123, "remainingPayments": 123, "depreciatedValue": 123 }
Calculates the buyout price for a subscription without performing the buyout.
API key obtained from FlexPortal dashboard
Your tenant identifier
The subscription ID
Buyout calculation
true
false