Financial mutations
List all financial mutations
Returns a list of financial mutations in the administration. Limited to 100 financial mutations. If you need more financial mutations, use the synchronize API.
The filter
argument allows you to filter on the list of financial mutations. Filters are a combination of keys and values,
separated by a comma: key:value,key2:value2
. The most common filter method will be period
: period:this_month
.
Filtering works the same as in the web application, for more advanced examples, change the filtering in the web
application and learn from the resulting URI.
Parameters
Parameter | Type | Description |
---|---|---|
filter |
String |
Example: returns all financial mutations of an administration
Request
Response
Example: returns all mutations filtered on period
Request
Response
Example: raises an error when there are too many mutations to return
Request
Response
List all ids and versions
Returns all financial mutations in the administration. The list contains the id and the version of the financial mutation.
Check if the version of the financial mutation is newer than the version you have stored locally, use the POST
variant for fetching financial mutations with the given ids. The filter
argument allows you to filter the list of financial mutations. Filters are a combination of keys and values,
separated by a comma: period:this_year,state:all
. The available options for filtering are:
Filter | Type | Default | Description |
period | String |
this_year |
This can either be the description of a period (this_month , prev_month , next_month , this_quarter , prev_quarter , next_quarter , this_year , prev_year , next_year ) or a custom period (201301..201302 , 20130101..20130131 ) |
state | String |
Can be all , unprocessed or processed |
|
mutation_type | String |
Can be all , debit or credit |
|
financial_account_id | String |
Parameters
Parameter | Type | Description |
---|---|---|
filter |
String |
Example: retrieves the id's for synchronization
Request
Response
Example: retrieves the id's for synchronization with a filter
Request
Response
Example: retrieves only unique ids
Request
Response
Fetch financial mutations with given ids
Given a list of financial mutation ids, returns the financial mutation information belonging to the financial mutation. Returns a maximum of 100 financial mutations, even if more ids are provided.
Parameters
Parameter | Type | Description |
---|---|---|
ids |
Array[integer] |
Required |
Example: it retrieves financial mutations given by ids
Request
Response
Get a financial mutation by id
Returns a single financial mutation in the administration.
Example: returns financial mutation by the given id
Request
Response
Example: returns 404 when the financial mutation does not exist
Request
Response
Links a financial mutation to a booking
Linking a booking to a financial mutations allows you to process financial mutations. Financial mutations can be linked to invoices, documents, ledger accounts and payment batches.
Parameters
Parameter | Type | Description |
---|---|---|
booking_type |
String |
Required Can be |
booking_id |
Integer |
|
price_base |
Decimal |
Both a decimal and a string ‘10,95’ are accepted. |
price |
Decimal |
Both a decimal and a string ‘10,95’ are accepted. |
description |
String |
|
payment_batch_identifier |
String |
|
project_id |
Integer |
Should be a valid project id. |
mark_open_sepa_transaction_as_paid |
Boolean |
Example: links a sales invoice to the financial mutation
Request
Response
Example: links a purchase invoice to the financial mutation
Request
Response
Example: creates a new purchase invoice
Request
Response
Example: creates a new receipt
Request
Response
Example: creates a ledger account booking for a positive amount
Request
Response
Example: creates a ledger account booking for a negative amount
Request
Response
Example: creates a booking for a foreign invoice with an exchange rate difference
Request
Response
Unlinks a booking from a financial mutation
Parameters
Parameter | Type | Description |
---|---|---|
booking_type |
Camelcasestring |
Required Can be |
booking_id |
Integer |
Required |