Skip to content

Financial Mutations

Manage your Financial Mutations in Moneybird.

Working with Financial Mutations

This section covers how to interact with Moneybird’s Financial Mutations API. You can retrieve, update, and link bookings to financial mutations.

Basic Operations

Get a Financial Mutation

Retrieve a financial mutation by its ID.

$financialMutation = $client->financialMutations()->get('123456789');

List Financial Mutations

Get a paginated list of financial mutations.

$financialMutations = $client->financialMutations()->paginate();
// Iterate through the pages
foreach ($financialMutations as $financialMutation) {
echo $financialMutation->amount;
}

Get All Financial Mutations

Get all financial mutations at once.

$allFinancialMutations = $client->financialMutations()->all();
// Iterate through all financial mutations
foreach ($allFinancialMutations as $financialMutation) {
echo $financialMutation->amount;
}

Update a Financial Mutation

Update an existing financial mutation.

$updateData = [
'message' => 'Updated transaction description'
];
$financialMutation = $client->financialMutations()->update('123456789', $updateData);

Specialized Features

Link a booking (such as an invoice or purchase) to a financial mutation.

$linkData = [
'booking_type' => 'SalesInvoice',
'booking_id' => '987654321',
'price' => '100.00'
];
$financialMutation = $client->financialMutations()->linkBooking('123456789', $linkData);

Synchronize Financial Mutations

Synchronize a list of financial mutations by their IDs.

$ids = ['123456789', '987654321'];
$financialMutations = $client->financialMutations()->synchronize($ids);

Financial Mutation Properties

When working with financial mutations, you’ll have access to the following properties:

PropertyTypeDescription
idstringUnique identifier
administration_idstringID of the administration the financial mutation belongs to
financial_account_idstringID of the financial account associated with this mutation
typestringType of the financial mutation
amountstringAmount of the financial mutation
codestringCode of the financial mutation
datestringDate of the financial mutation (YYYY-MM-DD)
messagestringDescription or message for the financial mutation
contra_account_namestringName of the contra account
contra_account_numberstringNumber of the contra account
batch_referencestringReference for batch processing
ledger_account_bookingsarrayBookings linked to ledger accounts
paymentsarrayPayments associated with this mutation
created_atstringISO 8601 timestamp of when the financial mutation was created
updated_atstringISO 8601 timestamp of when the financial mutation was last updated

Note: See the official API reference for the complete list of available properties.

Further reading