Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

Get default invoice texts

Returns default invoice text templates for a specific language. These are the default texts that will be used if no custom texts are set for the invoice.

How default texts are determined:

  1. Workspace-level defaults for the specified language
  2. Organization-level defaults (if available)
  3. System defaults (translated to the specified language)

Language selection: If no language is provided, the system uses:

  1. Invoice language (if set)
  2. Organization invoice language (if set)
  3. Workspace invoice language (if set)
  4. Workspace default language

What is returned: All default text templates as HTML:

  • Closing salutation (withBestRegards)
  • Invoice greeting
  • Invoice footer
  • Reminder fee warning
  • First and second reminder greetings and footers
  • Cancellation body

Use cases:

  • Preview default texts before customizing
  • Reset custom texts to defaults
  • Display default texts in UI for reference
GET/billing/invoices/{id}/default-texts
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:read
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstring<uuid>required
Invoice ID (UUID)
Query parameters
languagestring
Language code for default texts (e.g., "en", "de"). If not provided, uses invoice/organization/workspace language.
Responses
200Successfully retrieved default invoice texts
withBestRegardsobjectrequired
Default invoice text templates (returned as HTML)
Show properties
cancelationBodystring
firstReminderFooterstring
firstReminderGreetingstring
invoiceFooterstring
invoiceGreetingstring
invoiceReminderFeeWarningstring
secondReminderFooterstring
secondReminderGreetingstring
withBestRegardsstring
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
404Invoice not found
Request
curl -X GET "https://leadtime.app/api/public/billing/invoices/%3Cuuid%3E/default-texts" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "withBestRegards": {
    "cancelationBody": "string",
    "firstReminderFooter": "string",
    "firstReminderGreeting": "string",
    "invoiceFooter": "string",
    "invoiceGreeting": "string",
    "invoiceReminderFeeWarning": "string",
    "secondReminderFooter": "string",
    "secondReminderGreeting": "string",
    "withBestRegards": "string"
  }
}