Purchase transactions
Purchase transactions are outgoing payments you initiate from Moneybird
Download a purchase transaction batch as SEPA credit transfer file
Download the purchase transaction batch as a SEPA credit transfer file (pain.001). A batch paid through open banking has no such file and answers 404; a batch of a financial account that is not a bank account answers 422. Moneybird stores every generated file with the batch, like a download in the app does.
Required scope(s)
bank
path Parameters
administration_id^\d+$ · requiredThe unique identifier of the administration
A unique record identifier
id^\d+$ · requiredA unique record identifier
format^(.(json|xml))?$ · requiredThe format in which the response is given, can be empty to use the default format
Download a purchase transaction batch as SEPA credit transfer file › Responses
A SEPA credit transfer file
Get a purchase transaction batch by id
Get a purchase transaction batch by id. List its purchase transactions with the purchase_transaction_batch_id filter of the purchase transactions endpoint.
Required scope(s)
bank
path Parameters
administration_id^\d+$ · requiredThe unique identifier of the administration
A unique record identifier
id^\d+$ · requiredA unique record identifier
format^(.(json|xml))?$ · requiredThe format in which the response is given, can be empty to use the default format
Get a purchase transaction batch by id › Responses
A purchase transaction batch
id^\d+$A unique record identifier
administration_id^\d+$A unique record identifier
financial_account_id^\d+$A unique record identifier
stateidentifiercreated_atupdated_atDelete a purchase transaction
This endpoint is deprecated. Use the DELETE /purchase_transactions/{id} endpoint instead. Delete a purchase transaction. Requires that the purchase transaction is pending and doesn't belong to a purchase transaction batch.
Required scope(s)
bank
path Parameters
administration_id^\d+$ · requiredThe unique identifier of the administration
A unique record identifier
id^\d+$ · requiredA unique record identifier
format^(.(json|xml))?$ · requiredThe format in which the response is given, can be empty to use the default format
Delete a purchase transaction › Responses
Purchase transaction deleted
Get a purchase transaction by id
Get a purchase transaction by id.
Required scope(s)
bank
path Parameters
administration_id^\d+$ · requiredThe unique identifier of the administration
A unique record identifier
id^\d+$ · requiredA unique record identifier
format^(.(json|xml))?$ · requiredThe format in which the response is given, can be empty to use the default format
Get a purchase transaction by id › Responses
A purchase transaction
id^\d+$A unique record identifier
administration_id^\d+$A unique record identifier
financial_account_id^\d+$A unique record identifier
purchase_transaction_batch_id^\d+$A unique record identifier
payment_instrument_id^\d+$A unique record identifier
statesepa_ibansepa_iban_account_namesepa_bicsource_sepa_ibansource_sepa_iban_account_namedatedescriptionend_to_end_idamountcreated_atupdated_atpayable_typepayable_id^\d+$A unique record identifier
payment_methodDelete a purchase transaction
Delete a purchase transaction. Requires that the purchase transaction is pending and doesn't belong to a purchase transaction batch.
Required scope(s)
bank
path Parameters
administration_id^\d+$ · requiredThe unique identifier of the administration
A unique record identifier
id^\d+$ · requiredA unique record identifier
format^(.(json|xml))?$ · requiredThe format in which the response is given, can be empty to use the default format
Delete a purchase transaction › Responses
Purchase transaction deleted
List all purchase transactions
Returns a list of purchase transactions in the administration.
Required scope(s)
bank
path Parameters
administration_id^\d+$ · requiredThe unique identifier of the administration
A unique record identifier
format^(.(json|xml))?$ · requiredThe format in which the response is given, can be empty to use the default format
query Parameters
filterFilters are key:value terms separated by commas (e.g. period:this_year,state:open). Any filter you pass replaces the defaults below entirely, so include every key you need. Available filters:
| Filter | Type | Default | Description |
|---|---|---|---|
| state | String | all | all, open, pending_payment, paid or cancelled |
| period | String | nil | This can either be the description of a period (this_week, prev_week, next_week, 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). A custom period must have a start and an end date. It must not be longer than 10 years and must be between 20000101 and 21000101. For one month, use 202401..202401, not 202401. Without period, the filter does not limit the dates. |
| unbatched | Boolean | true | true or false |
| purchase_transaction_batch_id | Integer | nil | Only the purchase transactions of this purchase transaction batch. Combine it with unbatched:false, or leave unbatched out. |
You can filter by multiple states at the same time as well. To do this, separate the state values by a pipe: state:open|pending_payment.
pageper_page^\d+$List all purchase transactions › Responses
A list of purchase transactions
id^\d+$A unique record identifier
administration_id^\d+$A unique record identifier
financial_account_id^\d+$A unique record identifier
purchase_transaction_batch_id^\d+$A unique record identifier
payment_instrument_id^\d+$A unique record identifier
statesepa_ibansepa_iban_account_namesepa_bicsource_sepa_ibansource_sepa_iban_account_namedatedescriptionend_to_end_idamountcreated_atupdated_atpayable_typepayable_id^\d+$A unique record identifier
payment_methodUpload a SEPA credit transfer file to create purchase transaction batches
Upload a SEPA credit transfer file (pain.001.001.09/Version 2019) to create purchase transaction batches. This endpoint requires an active Moneybird Banking account in the administration.
Required scope(s)
bank
path Parameters
administration_id^\d+$ · requiredThe unique identifier of the administration
A unique record identifier
format^(.(json|xml))?$ · requiredThe format in which the response is given, can be empty to use the default format
Upload a SEPA credit transfer file to create purchase transaction batches › Request Body
fileSEPA credit transfer file (pain.001.001.09/Version 2019)
ledger_account_id^\d+$The ID of the ledger account that all transactions in the file will be booked on. If omitted, no booking is made and the bank transaction is left to automatic booking.
financial_account_id^\d+$The ID of the Moneybird Banking financial account that will be linked to all the purchase transactions in the file. Must be an active Moneybird Banking account. If not provided, the financial account will be determined based on the debtor account in the file.
Upload a SEPA credit transfer file to create purchase transaction batches › Responses
Purchase transaction batches created successfully using the SEPA credit transfer file
id^\d+$A unique record identifier
administration_id^\d+$A unique record identifier
financial_account_id^\d+$A unique record identifier
stateidentifiercreated_atupdated_at