Leadtime icon

Leadtime

Interact with Leadtime ERP API

Actions180

Potential Invoice → Update

AI-generated

Summary

Updates a specific potential invoice's display dates and contact recipient in Leadtime.

Inputs

  • potentialInvoiceId (required) — The unique ID of the potential invoice to update. Format: {type}::{projectId}::{dateFrom}::{dateTo}.
  • billedFrom — Start date shown on the invoice (YYYY-MM-DD). Can differ from the service period.
  • billedTo — End date shown on the invoice (YYYY-MM-DD). Can differ from the service period.
  • contactId — Invoice recipient ID (UUID). Leave empty to clear the current contact.

Output shape

no body — success/failure only

The operation returns a success or error response; it does not return the updated record.

Examples

Example 1: Update the displayed date range of an existing invoice without changing the contact.

Set potentialInvoiceId to the target invoice and provide billedFrom/billedTo.

Example 2: Change the invoice recipient to a different contact.

Set potentialInvoiceId and the new contactId.

Links

Discussion