201Successful Response
Schema: SuccessEnvelope_RecurringTemplateResponse_
successbooleanmessagestringcodestringdataRecurringTemplateResponse
/api/v1/recurringCreate a new recurring invoice or bill template.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: RecurringTemplateCreate
namestringrequiredName/description of this recurring template
currencystringCurrency for generated documents (USD, CAD, AUD, EUR, or GBP)
frequencyFrequencyEnumrequiredFrequencyEnumHow often to generate
days_until_dueintegerDays from generation until due date
day_of_monthintegerDay of month (1-31). Only applies to monthly/quarterly/annually frequencies; ignored for daily/weekly/biweekly. If the day doesn't exist in a month (e.g., 31 in February), generates on the last day instead. If omitted, uses the day from start_date.
day_of_weekintegerDay of week (0=Monday, 6=Sunday). Only applies to weekly/biweekly frequencies; ignored for other frequencies. If omitted, uses the weekday from start_date.
end_datestring · dateStop generating after this date (null = indefinite). If both end_date and max_occurrences are set, whichever is reached first stops generation.
max_occurrencesintegerStop after generating this many documents (null = unlimited). If both end_date and max_occurrences are set, whichever is reached first stops generation.
notesstringOptional notes about this recurring template
recurrence_typeapp__api__v1__schemas__recurring__recurring__RecurrenceTypeEnumrequiredapp__api__v1__schemas__recurring__recurring__RecurrenceTypeEnumType of document to generate
start_datestring · daterequiredWhen to start generating
customer_idstringCustomer ID (required for invoice type)
auto_sendbooleanAutomatically send invoices to customer on generation
vendor_idstringVendor ID (required for bill type)
template_dataobjectrequiredDocument template data (amount, description, line_items, etc.)
Schema: SuccessEnvelope_RecurringTemplateResponse_
successbooleanmessagestringcodestringdataRecurringTemplateResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject