cURL
curl --request POST \ --url https://api-eu.flexportal.io/v1/exports/rentals \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Tenant-ID: <tenant-id>' \ --data ' { "startDate": "2023-11-07T05:31:56Z", "endDate": "2023-11-07T05:31:56Z", "format": "csv", "includeFields": { "customerDetails": true, "deviceDetails": true, "financialDetails": true, "customFields": true }, "status": "active", "customerIds": [ "<string>" ] } '
{ "success": true, "filename": "<string>", "csvData": "<string>", "totalRecords": 123, "generatedAt": "<string>", "filters": {}, "totalRentals": 123, "activeRentals": 123, "totalRevenue": 123, "averageMonthlyRevenue": 123 }
Exports rental/subscription data to CSV format with optional date range and field filtering.
API key obtained from FlexPortal dashboard
Your tenant identifier
csv
Show child attributes
active
cancelled
ended_completed
ended_buyout
ended_upgrade
ended_early_return
Export generated