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:
- Workspace-level defaults for the specified language
- Organization-level defaults (if available)
- System defaults (translated to the specified language)
Language selection: If no language is provided, the system uses:
- Invoice language (if set)
- Organization invoice language (if set)
- Workspace invoice language (if set)
- 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-textsAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:reador
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstring<uuid>requiredInvoice ID (UUID)
Query parameters
languagestringLanguage code for default texts (e.g., "en", "de"). If not provided, uses invoice/organization/workspace language.
Responses
200Successfully retrieved default invoice texts
withBestRegardsobjectrequiredDefault invoice text templates (returned as HTML)
Show propertiesHide properties
cancelationBodystringfirstReminderFooterstringfirstReminderGreetingstringinvoiceFooterstringinvoiceGreetingstringinvoiceReminderFeeWarningstringsecondReminderFooterstringsecondReminderGreetingstringwithBestRegardsstring401Unauthorized - 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"const response = await fetch("https://leadtime.app/api/public/billing/invoices/%3Cuuid%3E/default-texts", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/billing/invoices/%3Cuuid%3E/default-texts",
headers={
"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"
}
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
Invoice not found