Reset potential invoice
What does reset do? Resets all customizations and metadata for a potential invoice, returning it to its default state. This clears all manual adjustments you have made, so the invoice will show the original billable items as they were automatically calculated by the system.
What gets cleared:
- Billed from and billed to dates (reverts to default billing period)
- Contact ID (removes invoice recipient)
- Subscription quantities and order (reverts to default quantities)
- Custom manual positions (removes any manually added items)
- Skipped tasks and express quotations (includes all items back in the invoice)
- Leadtime fee settings (reverts to default configuration)
When to use:
- When you want to start fresh with default invoice settings
- After making mistakes in invoice configuration and want to undo all changes
- To clear all customizations before creating a new invoice from scratch
- When you need to see the original calculated amounts without any adjustments
Important notes:
- This operation cannot be undone
- The invoice will revert to showing all automatically calculated billable items
- Any custom manual positions you added will be removed
- The invoice will use default billing period dates
Invoice ID Format: The invoice ID follows the format: {type}::{projectId}::{dateFrom}::{dateTo}
- Example: SingleProject::0e9d033a-ab41-4212-8637-66c4e3b01fe2::2025-10-01::2025-10-31
Permission requirements: Requires Invoices.manage permission and access to the project to reset potential invoice.
POST
/billing/potential-invoices/{id}/resetAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredPotential invoice ID in format: {type}::{projectId}::{dateFrom}::{dateTo}
Responses
200Potential invoice reset successfully
successbooleanrequiredOperation success flag
401Unauthorized - Invalid or missing authentication token
403User lacks Invoices.manage permission or project access
404Potential invoice not found
Request
curl -X POST "https://leadtime.app/api/public/billing/potential-invoices/SingleProject%3A%3A0e9d033a-ab41-4212-8637-66c4e3b01fe2%3A%3A2025-10-01%3A%3A2025-10-31/reset" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/billing/potential-invoices/SingleProject%3A%3A0e9d033a-ab41-4212-8637-66c4e3b01fe2%3A%3A2025-10-01%3A%3A2025-10-31/reset", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.post(
"https://leadtime.app/api/public/billing/potential-invoices/SingleProject%3A%3A0e9d033a-ab41-4212-8637-66c4e3b01fe2%3A%3A2025-10-01%3A%3A2025-10-31/reset",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
User lacks Invoices.manage permission or project access
Potential invoice not found