cURL
curl --request POST \ --url https://api-eu.flexportal.io/v1/subscriptions/{subscriptionId}/buyout \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Tenant-ID: <tenant-id>' \ --data ' { "tenantId": "<string>", "rentalId": "<string>", "reason": "customer_request", "buyoutPrice": 1, "notes": "<string>" } '
{ "success": true, "rentalId": "<string>", "assetSerialNumber": "<string>", "buyoutPrice": 1, "currency": "<string>", "effectiveDate": "<string>", "message": "<string>" }
Customer purchases the device, ending the subscription.
API key obtained from FlexPortal dashboard
Your tenant identifier
The subscription ID
1
customer_request
end_of_contract
other
x >= 0
Buyout completed