Zum Inhalt springen
Leadtime
Deutsch
Esc
↑↓navigieren↵öffnen⌘Jvorschau

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}/reset
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired

Potential invoice ID in format: {type}::{projectId}::{dateFrom}::{dateTo}

Responses
200

Potential invoice reset successfully

successbooleanrequired

Operation success flag

401

Unauthorized - Invalid or missing authentication token

403

User lacks Invoices.manage permission or project access

404

Potential invoice not found

Try it
Server
Authorization
Parameters
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"
Response
{
  "success": true
}