Export rentals to CSV
Exports
Export Subscriptions
Exports rental/subscription data to CSV format with optional date range and field filtering.
POST
Export rentals to CSV
Overview
Export subscription data to CSV format. Use this for reporting, data analysis, or importing into external systems like spreadsheets or business intelligence tools.Common Use Cases
Financial Reporting
Export data for revenue analysis and forecasting
Accounting Integration
Import subscription data into accounting software
Business Intelligence
Feed data into BI tools for advanced analytics
Compliance Audits
Generate reports for audit and compliance needs
Request Fields
| Field | Required | Description |
|---|---|---|
status | No | Filter by status: active, ended, etc. |
startDateFrom | No | Filter by start date (from) |
startDateTo | No | Filter by start date (to) |
endDateFrom | No | Filter by end date (from) |
endDateTo | No | Filter by end date (to) |
customerId | No | Filter by customer |
Example: Export All Active Subscriptions
Example: Export by Date Range
Response
The response includes a download URL for the CSV file:CSV Columns
The exported CSV includes:| Column | Description |
|---|---|
subscriptionId | Subscription ID |
customerId | Customer ID |
customerEmail | Customer email |
customerName | Customer full name |
company | Company name (if business) |
sku | Product SKU |
productName | Product name |
serialNumber | Asset serial number |
status | Subscription status |
startDate | Contract start date |
endDate | Contract end date |
contractLength | Duration in months |
monthlyAmount | Monthly payment |
currency | Currency code |
totalCollected | Total payments collected |
acquisitionCost | Asset acquisition cost |
costRecoveryPercent | Cost recovery percentage |
Example: Monthly Revenue Report
Example: Customer Data Export
URL Expiration
Download URLs expire after a short period (typically 15-60 minutes). Download the file promptly after generation.Large Exports
For very large exports:- Consider filtering by date range to reduce size
- Export in batches by customer or time period
- Monitor the
recordCountto estimate file size
Related Endpoints
- List Subscriptions - Query subscriptions via API
- Get Subscription - Get individual subscription details
- List Customers - Get customer data
Authorizations
API key obtained from FlexPortal dashboard
Headers
Your tenant identifier
Body
application/json