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
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XGET \
https://moneybird.com/api/v2/123/financial_mutations.json?
Response
Status: 200 OK
[
{
"id": "446241660502803641",
"administration_id": 123,
"amount": "100.0",
"code": null,
"date": "2025-02-17",
"message": "Factuur",
"contra_account_name": null,
"contra_account_number": "",
"state": "unprocessed",
"amount_open": "100.0",
"sepa_fields": null,
"batch_reference": null,
"financial_account_id": "446241660469249205",
"currency": "EUR",
"original_amount": null,
"created_at": "2025-02-17T10:47:12.252Z",
"updated_at": "2025-02-17T10:47:12.252Z",
"version": 1739789232,
"financial_statement_id": "446241660500706488",
"processed_at": null,
"account_servicer_transaction_id": null,
"payments": [
{
"id": "446241660671624400",
"administration_id": 123,
"invoice_type": "SalesInvoice",
"invoice_id": "446241660646458572",
"financial_account_id": "446241660469249205",
"user_id": 1,
"payment_transaction_id": null,
"transaction_identifier": null,
"price": "80.0",
"price_base": "80.0",
"payment_date": "2025-02-17",
"credit_invoice_id": null,
"financial_mutation_id": "446241660502803641",
"ledger_account_id": "446241660669527247",
"linked_payment_id": null,
"manual_payment_action": null,
"created_at": "2025-02-17T10:47:12.413Z",
"updated_at": "2025-02-17T10:47:12.413Z"
}
],
"ledger_account_bookings": [
{
"id": "446241660568863934",
"administration_id": 123,
"financial_mutation_id": "446241660502803641",
"ledger_account_id": "446241660565718205",
"project_id": null,
"description": "Ledger account booking",
"price": "20.0",
"created_at": "2025-02-17T10:47:12.315Z",
"updated_at": "2025-02-17T10:47:12.315Z"
}
]
}
]
Example: returns all mutations filtered on period
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XGET \
https://moneybird.com/api/v2/123/financial_mutations.json?filter=period%3Athis_month
Response
Status: 200 OK
[
{
"id": "446241660807939285",
"administration_id": 123,
"amount": "100.0",
"code": null,
"date": "2025-02-17",
"message": "Factuur",
"contra_account_name": null,
"contra_account_number": "",
"state": "unprocessed",
"amount_open": "100.0",
"sepa_fields": null,
"batch_reference": null,
"financial_account_id": "446241660777530577",
"currency": "EUR",
"original_amount": null,
"created_at": "2025-02-17T10:47:12.543Z",
"updated_at": "2025-02-17T10:47:12.543Z",
"version": 1739789232,
"financial_statement_id": "446241660805842132",
"processed_at": null,
"account_servicer_transaction_id": null,
"payments": [
{
"id": "446241660959982828",
"administration_id": 123,
"invoice_type": "SalesInvoice",
"invoice_id": "446241660935865576",
"financial_account_id": "446241660777530577",
"user_id": 1,
"payment_transaction_id": null,
"transaction_identifier": null,
"price": "80.0",
"price_base": "80.0",
"payment_date": "2025-02-17",
"credit_invoice_id": null,
"financial_mutation_id": "446241660807939285",
"ledger_account_id": "446241660956837099",
"linked_payment_id": null,
"manual_payment_action": null,
"created_at": "2025-02-17T10:47:12.688Z",
"updated_at": "2025-02-17T10:47:12.688Z"
}
],
"ledger_account_bookings": [
{
"id": "446241660842542298",
"administration_id": 123,
"financial_mutation_id": "446241660807939285",
"ledger_account_id": "446241660840445145",
"project_id": null,
"description": "Ledger account booking",
"price": "20.0",
"created_at": "2025-02-17T10:47:12.576Z",
"updated_at": "2025-02-17T10:47:12.576Z"
}
]
}
]
Example: raises an error when there are too many mutations to return
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XGET \
https://moneybird.com/api/v2/123/financial_mutations.json?
Response
Status: 400 Bad Request
{
"error": "Too many financial mutations to return, please use sync API"
}
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
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XGET \
https://moneybird.com/api/v2/123/financial_mutations/synchronization.json?
Response
Status: 200 OK
[
{
"id": "446241662044210501",
"version": 1739789233
},
{
"id": "446241662066230602",
"version": 1739789233
},
{
"id": "446241662081959247",
"version": 1739789233
}
]
Example: retrieves the id's for synchronization with a filter
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XGET \
https://moneybird.com/api/v2/123/financial_mutations/synchronization.json?filter=period%3Athis_month
Response
Status: 200 OK
[
{
"id": "446241662221419863",
"version": 1739789233
},
{
"id": "446241662237148508",
"version": 1739789233
},
{
"id": "446241662260217185",
"version": 1739789233
}
]
Example: retrieves only unique ids
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XGET \
https://moneybird.com/api/v2/123/financial_mutations/synchronization.json?
Response
Status: 200 OK
[
{
"id": "446241662379754857",
"version": 1739789234
},
{
"id": "446241662395483502",
"version": 1739789234
},
{
"id": "446241662409114995",
"version": 1739789234
}
]
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
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XPOST \
-d '{"ids":[446241662611490182,446241662625121675]}' \
https://moneybird.com/api/v2/123/financial_mutations/synchronization.json
Response
Status: 200 OK
[
{
"id": "446241662625121675",
"administration_id": 123,
"amount": "100.0",
"code": null,
"date": "2025-02-17",
"message": "Factuur",
"contra_account_name": null,
"contra_account_number": "",
"state": "unprocessed",
"amount_open": "100.0",
"sepa_fields": null,
"batch_reference": null,
"financial_account_id": "446241662567449981",
"currency": "EUR",
"original_amount": null,
"created_at": "2025-02-17T10:47:14.276Z",
"updated_at": "2025-02-17T10:47:14.276Z",
"version": 1739789234,
"financial_statement_id": "446241662623024522",
"processed_at": null,
"account_servicer_transaction_id": null,
"payments": [],
"ledger_account_bookings": []
},
{
"id": "446241662611490182",
"administration_id": 123,
"amount": "100.0",
"code": null,
"date": "2025-02-17",
"message": "Factuur",
"contra_account_name": null,
"contra_account_number": "",
"state": "unprocessed",
"amount_open": "100.0",
"sepa_fields": null,
"batch_reference": null,
"financial_account_id": "446241662567449981",
"currency": "EUR",
"original_amount": null,
"created_at": "2025-02-17T10:47:14.263Z",
"updated_at": "2025-02-17T10:47:14.263Z",
"version": 1739789234,
"financial_statement_id": "446241662610441605",
"processed_at": null,
"account_servicer_transaction_id": null,
"payments": [],
"ledger_account_bookings": []
}
]
Get a financial mutation by id
Returns a single financial mutation in the administration.
Example: returns financial mutation by the given id
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XGET \
https://moneybird.com/api/v2/123/financial_mutations/446241661490562317.json?
Response
Status: 200 OK
{
"id": "446241661490562317",
"administration_id": 123,
"amount": "100.0",
"code": null,
"date": "2025-02-17",
"message": "Factuur",
"contra_account_name": null,
"contra_account_number": "",
"state": "unprocessed",
"amount_open": "100.0",
"sepa_fields": null,
"batch_reference": null,
"financial_account_id": "446241661460153609",
"currency": "EUR",
"original_amount": null,
"created_at": "2025-02-17T10:47:13.194Z",
"updated_at": "2025-02-17T10:47:13.194Z",
"version": 1739789233,
"financial_statement_id": "446241661488465164",
"processed_at": null,
"account_servicer_transaction_id": null,
"payments": [
{
"id": "446241661638411556",
"administration_id": 123,
"invoice_type": "SalesInvoice",
"invoice_id": "446241661610100000",
"financial_account_id": "446241661460153609",
"user_id": 1,
"payment_transaction_id": null,
"transaction_identifier": null,
"price": "80.0",
"price_base": "80.0",
"payment_date": "2025-02-17",
"credit_invoice_id": null,
"financial_mutation_id": "446241661490562317",
"ledger_account_id": "446241661635265827",
"linked_payment_id": null,
"manual_payment_action": null,
"created_at": "2025-02-17T10:47:13.335Z",
"updated_at": "2025-02-17T10:47:13.335Z"
}
],
"ledger_account_bookings": [
{
"id": "446241661532505362",
"administration_id": 123,
"financial_mutation_id": "446241661490562317",
"ledger_account_id": "446241661530408209",
"project_id": null,
"description": "Ledger account booking",
"price": "20.0",
"created_at": "2025-02-17T10:47:13.234Z",
"updated_at": "2025-02-17T10:47:13.234Z"
}
]
}
Example: returns 404 when the financial mutation does not exist
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XGET \
https://moneybird.com/api/v2/123/financial_mutations/34123123.json?
Response
Status: 404 Not Found
{
"error": "record not found",
"symbolic": {
"id": "not_found"
}
}
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
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XPATCH \
-d '{"booking_type":"SalesInvoice","booking_id":446241662845322652,"price_base":"363.0"}' \
https://moneybird.com/api/v2/123/financial_mutations/446241662761436563/link_booking.json
Response
Status: 200 OK
200
Example: links a purchase invoice to the financial mutation
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XPATCH \
-d '{"booking_type":"Document","booking_id":446241663276287414,"price_base":-100}' \
https://moneybird.com/api/v2/123/financial_mutations/446241663208129965/link_booking.json
Response
Status: 200 OK
200
Example: creates a new purchase invoice
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XPATCH \
-d '{"booking_type":"NewPurchaseInvoice","price_base":-100}' \
https://moneybird.com/api/v2/123/financial_mutations/446241663469225410/link_booking.json
Response
Status: 200 OK
200
Example: creates a new receipt
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XPATCH \
-d '{"booking_type":"NewReceipt","price_base":-100}' \
https://moneybird.com/api/v2/123/financial_mutations/446241663663211983/link_booking.json
Response
Status: 200 OK
200
Example: creates a ledger account booking for a positive amount
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XPATCH \
-d '{"booking_type":"LedgerAccount","booking_id":446241663972541920,"price_base":100}' \
https://moneybird.com/api/v2/123/financial_mutations/446241663947376092/link_booking.json
Response
Status: 200 OK
200
Example: creates a ledger account booking for a negative amount
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XPATCH \
-d '{"booking_type":"LedgerAccount","booking_id":446241664151848433,"price_base":100}' \
https://moneybird.com/api/v2/123/financial_mutations/446241664138216941/link_booking.json
Response
Status: 200 OK
200
Example: creates a booking for a foreign invoice with an exchange rate difference
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XPATCH \
-d '{"booking_type":"LedgerAccount","booking_id":446241664526190100,"price_base":1.48}' \
https://moneybird.com/api/v2/123/financial_mutations/446241664292357630/link_booking
Response
Status: 200 OK
200
Unlinks a booking from a financial mutation
Parameters
Parameter | Type | Description |
---|---|---|
booking_type |
Camelcasestring |
Required Can be |
booking_id |
Integer |
Required |
Example: unlinks a payment booking
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XDELETE \
-d '{"booking_type":"Payment","booking_id":446241664855442991}' \
https://moneybird.com/api/v2/123/financial_mutations/446241664647824924/unlink_booking.json
Response
Status: 200 OK
{
"id": "446241664647824924",
"administration_id": 123,
"amount": "100.0",
"code": null,
"date": "2025-02-17",
"message": "Factuur",
"contra_account_name": null,
"contra_account_number": "",
"state": "unprocessed",
"amount_open": "100.0",
"sepa_fields": null,
"batch_reference": null,
"financial_account_id": "446241664626853400",
"currency": "EUR",
"original_amount": null,
"created_at": "2025-02-17T10:47:16.206Z",
"updated_at": "2025-02-17T10:47:16.521Z",
"version": 1739789236,
"financial_statement_id": "446241664646776347",
"processed_at": null,
"account_servicer_transaction_id": null,
"payments": [],
"ledger_account_bookings": []
}
Example: returns an error if booking type is invalid
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XDELETE \
-d '{"booking_type":"foobar","booking_id":446241665289553481}' \
https://moneybird.com/api/v2/123/financial_mutations/446241665054672438/unlink_booking.json
Response
Status: 400 Bad Request
{
"error": "Booking Type isn't an option",
"symbolic": {
"booking_type": "in"
}
}
Example: returns an error if booking id is not found
Request
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
-XDELETE \
-d '{"booking_type":"Payment","booking_id":123}' \
https://moneybird.com/api/v2/123/financial_mutations/446241665444742735/unlink_booking.json
Response
Status: 404 Not Found
{
"error": "record not found",
"symbolic": {
"booking_id": "not_found"
}
}