Recurring sales invoices are templates for invoices that are sent automatically at a recurring interval.
List all IDs and versions
Returns all recurring sales invoices in the administration. The list contains the invoice id and the version of the
recurring invoice. Check if the version of the recurring invoice is newer than the version you have stored locally,
use the POST
variant for fetching recurring invoices with the given IDs.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
query Parameters
filter
string
Responses
IDs and versions of records
id
integer | stringversion
integer | string
Fetch recurring sales invoices with given IDs
Given a list of recurring sales invoice IDs, returns the details of the recurring invoices. Returns a maximum of 100 recurring invoices, even if more IDs are provided.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
A list of recurring sales invoices
id
string | integer · pattern:^\d+$
A unique record identifier
administration_id
string | integer · pattern:^\d+$
A unique record identifier of an administration
contact_id
string | integer · pattern:^\d+$
A unique record identifier
contact
objectcontact_person_id
string | integer | null · pattern:^\d+$
A unique record identifier
contact_person
workflow_id
string | integer · pattern:^\d+$
A unique record identifier
start_date
string · dateinvoice_date
string · datelast_date
string | null · dateactive
boolean | nullpayment_conditions
string | nullreference
string | nulllanguage
stringcurrency
stringdiscount
string | nullfirst_due_interval
integerauto_send
boolean | nullsending_scheduled_at
string | null · date-timesending_scheduled_user_id
string | integer | null · pattern:^\d+$
A unique record identifier
frequency_type
string · enumEnum values:dayweekmonthquarteryearfrequency
integercreated_at
string | null · date-timeupdated_at
string | null · date-timeversion
integerprices_are_incl_tax
booleantotal_price_excl_tax
stringtotal_price_excl_tax_base
stringtotal_price_incl_tax
stringtotal_price_incl_tax_base
stringdetails
object[]custom_fields
object[]notes
object[]attachments
object[]events
object[]subscription
Get a recurring sales invoice by id
Get a recurring sales invoice by id.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
A recurring sales invoice
id
string | integer · pattern:^\d+$
A unique record identifier
administration_id
string | integer · pattern:^\d+$
A unique record identifier of an administration
contact_id
string | integer · pattern:^\d+$
A unique record identifier
contact
objectcontact_person_id
string | integer | null · pattern:^\d+$
A unique record identifier
contact_person
workflow_id
string | integer · pattern:^\d+$
A unique record identifier
start_date
string · dateinvoice_date
string · datelast_date
string | null · dateactive
boolean | nullpayment_conditions
string | nullreference
string | nulllanguage
stringcurrency
stringdiscount
string | nullfirst_due_interval
integerauto_send
boolean | nullsending_scheduled_at
string | null · date-timesending_scheduled_user_id
string | integer | null · pattern:^\d+$
A unique record identifier
frequency_type
string · enumEnum values:dayweekmonthquarteryearfrequency
integercreated_at
string | null · date-timeupdated_at
string | null · date-timeversion
integerprices_are_incl_tax
booleantotal_price_excl_tax
stringtotal_price_excl_tax_base
stringtotal_price_incl_tax
stringtotal_price_incl_tax_base
stringdetails
object[]custom_fields
object[]notes
object[]attachments
object[]events
object[]subscription
Destroy or deactivate a recurring sales invoice
A recurring sales invoice will be destroyed if it has not created any sales invoices. If it has created sales invoices, it will be deactivated.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Recurring sales invoice deleted
Updates a recurring sales invoice
Updates a recurring sales invoice. Only possible if the recurring sales invoice has no active subscription.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Recurring sales invoice updated
id
string | integer · pattern:^\d+$
A unique record identifier
administration_id
string | integer · pattern:^\d+$
A unique record identifier of an administration
contact_id
string | integer · pattern:^\d+$
A unique record identifier
contact
objectcontact_person_id
string | integer | null · pattern:^\d+$
A unique record identifier
contact_person
workflow_id
string | integer · pattern:^\d+$
A unique record identifier
start_date
string · dateinvoice_date
string · datelast_date
string | null · dateactive
boolean | nullpayment_conditions
string | nullreference
string | nulllanguage
stringcurrency
stringdiscount
string | nullfirst_due_interval
integerauto_send
boolean | nullsending_scheduled_at
string | null · date-timesending_scheduled_user_id
string | integer | null · pattern:^\d+$
A unique record identifier
frequency_type
string · enumEnum values:dayweekmonthquarteryearfrequency
integercreated_at
string | null · date-timeupdated_at
string | null · date-timeversion
integerprices_are_incl_tax
booleantotal_price_excl_tax
stringtotal_price_excl_tax_base
stringtotal_price_incl_tax
stringtotal_price_incl_tax_base
stringdetails
object[]custom_fields
object[]notes
object[]attachments
object[]events
object[]subscription
Destroys note from entity
Deletes a note from the recurring sales invoice.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
recurring_sales_invoice_id
string | integer · pattern:^\d+$
· requiredA unique record identifier
id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Note deleted
Adds note to entity
Adds a note to the recurring sales invoice.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
recurring_sales_invoice_id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Note created
id
string | integer · pattern:^\d+$
A unique record identifier
administration_id
string | integer · pattern:^\d+$
A unique record identifier of an administration
entity_id
string | integer | null · pattern:^\d+$
A unique record identifier
entity_type
stringuser_id
string | integer · pattern:^\d+$
A unique record identifier
assignee_id
string | integer | null · pattern:^\d+$
A unique record identifier
todo
boolean | string | nullDefault: falsenote
string | nullcompleted_at
string | null · date-timecompleted_by_id
string | integer | null · pattern:^\d+$
A unique record identifier
todo_type
string | null · enumEnum values:sales_invoice_duepurchase_invoice_duegeneral_document_remindergeneral_document_duenew_document_awaiting_processingnew_financial_mutation_awaiting_processingfinancial_mutations_not_updatedsales_invoice_payment_not_linked_to_financial_mutationdata
object | nullcreated_at
string · date-timeupdated_at
string · date-time
List all recurring sales invoices
Returns a paginated list of all recurring sales invoices in the administration.
The filter
argument allows you to filter on the list of recurring invoices. Filters are a combination of keys and values,
separated by a comma: state:active,contact_id:123
. The available options for filtering are:
Filter | Type | Default | Description |
---|---|---|---|
state | String | active | active or inactive |
frequency | String | all | all , day , week , month , quarter or year |
auto_send | Boolean | null | null , true or false |
contact_id | Integer | Filters recurring invoices by a single contact | |
workflow_id | Integer | Filters recurring invoices by a single workflow |
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
query Parameters
filter
stringper_page
integer | string · min: 1 · max: 100 · pattern:^\d+$
Responses
A list of recurring sales invoices
id
string | integer · pattern:^\d+$
A unique record identifier
administration_id
string | integer · pattern:^\d+$
A unique record identifier of an administration
contact_id
string | integer · pattern:^\d+$
A unique record identifier
contact
objectcontact_person_id
string | integer | null · pattern:^\d+$
A unique record identifier
contact_person
workflow_id
string | integer · pattern:^\d+$
A unique record identifier
start_date
string · dateinvoice_date
string · datelast_date
string | null · dateactive
boolean | nullpayment_conditions
string | nullreference
string | nulllanguage
stringcurrency
stringdiscount
string | nullfirst_due_interval
integerauto_send
boolean | nullsending_scheduled_at
string | null · date-timesending_scheduled_user_id
string | integer | null · pattern:^\d+$
A unique record identifier
frequency_type
string · enumEnum values:dayweekmonthquarteryearfrequency
integercreated_at
string | null · date-timeupdated_at
string | null · date-timeversion
integerprices_are_incl_tax
booleantotal_price_excl_tax
stringtotal_price_excl_tax_base
stringtotal_price_incl_tax
stringtotal_price_incl_tax_base
stringdetails
object[]custom_fields
object[]notes
object[]attachments
object[]events
object[]subscription
Creates a new recurring sales invoice
A recurring sales invoice will create new sales invoices on set intervals. To create a new recurring sales invoice, you need to provide at least a contact and details for the invoice. Furthermore you need to determine the planning. The following fields will influence the planning:
invoice_date
: the date in which the first invoice should be createdfrequency_type
: the type of frequency you want to use, for examplemonth
frequency
: defines the actual frequency, e.g.frequency=2
andfrequency_type=month
will create an invoice every 2 monthshas_desired_count
: whether or not the desired count should take effectdesired_count
: maximum number of sales invoices to create
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Recurring sales invoice created
id
string | integer · pattern:^\d+$
A unique record identifier
administration_id
string | integer · pattern:^\d+$
A unique record identifier of an administration
contact_id
string | integer · pattern:^\d+$
A unique record identifier
contact
objectcontact_person_id
string | integer | null · pattern:^\d+$
A unique record identifier
contact_person
workflow_id
string | integer · pattern:^\d+$
A unique record identifier
start_date
string · dateinvoice_date
string · datelast_date
string | null · dateactive
boolean | nullpayment_conditions
string | nullreference
string | nulllanguage
stringcurrency
stringdiscount
string | nullfirst_due_interval
integerauto_send
boolean | nullsending_scheduled_at
string | null · date-timesending_scheduled_user_id
string | integer | null · pattern:^\d+$
A unique record identifier
frequency_type
string · enumEnum values:dayweekmonthquarteryearfrequency
integercreated_at
string | null · date-timeupdated_at
string | null · date-timeversion
integerprices_are_incl_tax
booleantotal_price_excl_tax
stringtotal_price_excl_tax_base
stringtotal_price_incl_tax
stringtotal_price_incl_tax_base
stringdetails
object[]custom_fields
object[]notes
object[]attachments
object[]events
object[]subscription