Get potential invoices
What are Potential Invoices? Potential invoices represent billable items that are ready to be invoiced but have not been converted to actual invoices yet. These are invoice drafts that appear in the invoice review section, waiting to be checked, adjusted, and finalized into official invoice documents.
What gets included:
- Subscription billing rows that have passed their billing date
- Time-based work (tasks with logged time) that has not been billed yet
- Express quotations that have been accepted by customers
- Products and components that are ready for billing
- Manual positions and interim payments
What data is returned:
- List of all potential invoices grouped by project, organization, and billing period
- Each potential invoice includes the billing period (dateFrom, dateTo), total net amount, and invoice type
- Results are automatically filtered based on project access permissions
- Each entry shows which organization and project it belongs to
Invoice Types:
- Mixed: Combined invoice with multiple billing types (time, subscriptions, products, components)
- Subscription: Recurring subscription billing only (monthly or periodic fees)
- TimeBased: Time-based work (logged hours on tasks) only
- ExpressQuotation: Accepted express quotations only (quick add-ons from tickets)
- SingleProject: Single project invoice (project-based billing)
- InterimPayment: Interim or advance payment invoice
How it works: The system automatically creates potential invoices when billable items become due. For example, completed tickets appear as time-based items, subscriptions generate entries on their billing dates, and accepted express quotations become billable immediately.
Permission requirements: Requires Invoices.manage permission to view potential invoices. Results are scoped to projects you have access to.
/billing/potential-invoicesAuthorizationOAuth2 access token · headerrequiredapi:readAuthorizationBearer token (JWT) · headerrequiredPotentialInvoiceResponseDtodateFromstring<date>requireddateKeystringrequireddateTostring<date>requiredidstring<string>requiredorgIdstring<uuid>requiredprojectIdstring<uuid>requiredtotalnumberrequiredtypestringrequiredMixedSubscriptionTimeBasedExpressQuotationSingleProjectInterimPaymentSupportContingentChargecurl -X GET "https://leadtime.app/api/public/billing/potential-invoices" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/billing/potential-invoices", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/billing/potential-invoices",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)[
{
"dateFrom": "2024-01-01",
"dateKey": "2024-01",
"dateTo": "2024-01-31",
"id": "SingleProject::0e9d033a-ab41-4212-8637-66c4e3b01fe2::2025-10-01::2025-10-31",
"orgId": "660e8400-e29b-41d4-a716-446655440001",
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"total": 1250.5,
"type": "Mixed"
}
]