List files
Files
List Files
Returns a list of files with optional filtering by order or type.
GET
List files
Overview
Retrieve a list of files associated with orders, subscriptions, or your tenant. Files include contracts, invoices, uploaded documents, and other attachments.File Types
| Type | Description |
|---|---|
contract | Subscription contract documents |
invoice | Billing invoices |
document | General uploaded documents |
attachment | Order or subscription attachments |
Common Use Cases
Order Documents
Retrieve contracts and documents for an order
Customer Portal
Display documents for customer self-service
Invoice History
List invoices for a customer or subscription
Document Management
Manage uploaded documents and attachments
Filtering Files
Response Fields
| Field | Description |
|---|---|
fileId | Unique file identifier |
fileName | Original file name |
fileType | Type: contract, invoice, document, attachment |
mimeType | MIME type (e.g., application/pdf) |
size | File size in bytes |
orderId | Associated order (if applicable) |
customerId | Associated customer |
createdAt | Upload timestamp |
Example: Get Order Documents
Related Endpoints
- Get File - Get file metadata
- Get File URL - Get download URL
- Generate Contract - Create contract document
Authorizations
API key obtained from FlexPortal dashboard
Headers
Your tenant identifier
Query Parameters
Filter by order ID
Filter by file type
Items per page (default: 50)