Moneybird logo
Moneybird API

Purchase transactions

Purchase transactions are outgoing payments you initiate from Moneybird


Download a purchase transaction batch as SEPA credit transfer file

POST
https://moneybird.com/api/v2
/{administration_id}/purchase_transaction_batches/{id}/download{format}

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

Download a purchase transaction batch as SEPA credit transfer file › path Parameters

administration_id
​administration_id · pattern: ^\d+$ · required

The unique identifier of the administration

A unique record identifier

id
​identifier · pattern: ^\d+$ · required

A unique record identifier

format
​string · pattern: ^(.(json|xml))?$ · required

The format in which the response is given, can be empty to use the default format

Default: .json

Download a purchase transaction batch as SEPA credit transfer file › Responses

A SEPA credit transfer file

string

Get a purchase transaction batch by id

GET
https://moneybird.com/api/v2
/{administration_id}/purchase_transaction_batches/{id}{format}

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

Get a purchase transaction batch by id › path Parameters

administration_id
​administration_id · pattern: ^\d+$ · required

The unique identifier of the administration

A unique record identifier

id
​identifier · pattern: ^\d+$ · required

A unique record identifier

format
​string · pattern: ^(.(json|xml))?$ · required

The format in which the response is given, can be empty to use the default format

Default: .json

Get a purchase transaction batch by id › Responses

A purchase transaction batch

id
​identifier · pattern: ^\d+$

A unique record identifier

administration_id
​administration_id · pattern: ^\d+$

A unique record identifier

financial_account_id
​identifier · pattern: ^\d+$

A unique record identifier

state
​string · enum
Enum values:
exported
cancelled
open
identifier
​string
created_at
​timestamp · date-time
updated_at
​timestamp · date-time

deprecated

Delete a purchase transaction

DELETE
https://moneybird.com/api/v2
/{administration_id}/purchase_transactions/{id}/delete{format}

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

Delete a purchase transaction › path Parameters

administration_id
​administration_id · pattern: ^\d+$ · required

The unique identifier of the administration

A unique record identifier

id
​identifier · pattern: ^\d+$ · required

A unique record identifier

format
​string · pattern: ^(.(json|xml))?$ · required

The format in which the response is given, can be empty to use the default format

Default: .json

Delete a purchase transaction › Responses

Purchase transaction deleted

No data returned

Get a purchase transaction by id

GET
https://moneybird.com/api/v2
/{administration_id}/purchase_transactions/{id}{format}

Get a purchase transaction by id.

Required scope(s)

bank

Get a purchase transaction by id › path Parameters

administration_id
​administration_id · pattern: ^\d+$ · required

The unique identifier of the administration

A unique record identifier

id
​identifier · pattern: ^\d+$ · required

A unique record identifier

format
​string · pattern: ^(.(json|xml))?$ · required

The format in which the response is given, can be empty to use the default format

Default: .json

Get a purchase transaction by id › Responses

A purchase transaction

id
​identifier · pattern: ^\d+$

A unique record identifier

administration_id
​administration_id · pattern: ^\d+$

A unique record identifier

financial_account_id
​identifier · pattern: ^\d+$

A unique record identifier

purchase_transaction_batch_id
​identifier_nullable · pattern: ^\d+$

A unique record identifier

payment_instrument_id
​identifier_nullable · pattern: ^\d+$

A unique record identifier

state
​string · enum
Enum values:
open
cancelled
paid
pending_payment
error
awaiting_authorization
preparing
sepa_iban
​string
sepa_iban_account_name
​string
sepa_bic
​string
source_sepa_iban
​string | null
source_sepa_iban_account_name
​string | null
date
​string | null · date
description
​string
end_to_end_id
​string
​simple_contact_response | null
amount
​string
created_at
​timestamp · date-time
updated_at
​timestamp · date-time
payable_type
​string | null
payable_id
​identifier_nullable · pattern: ^\d+$

A unique record identifier

payment_method
​string | null

Delete a purchase transaction

DELETE
https://moneybird.com/api/v2
/{administration_id}/purchase_transactions/{id}{format}

Delete a purchase transaction. Requires that the purchase transaction is pending and doesn't belong to a purchase transaction batch.

Required scope(s)

bank

Delete a purchase transaction › path Parameters

administration_id
​administration_id · pattern: ^\d+$ · required

The unique identifier of the administration

A unique record identifier

id
​identifier · pattern: ^\d+$ · required

A unique record identifier

format
​string · pattern: ^(.(json|xml))?$ · required

The format in which the response is given, can be empty to use the default format

Default: .json

Delete a purchase transaction › Responses

Purchase transaction deleted

No data returned

List all purchase transactions

GET
https://moneybird.com/api/v2
/{administration_id}/purchase_transactions{format}

Returns a list of purchase transactions in the administration.

Required scope(s)

bank

List all purchase transactions › path Parameters

administration_id
​administration_id · pattern: ^\d+$ · required

The unique identifier of the administration

A unique record identifier

format
​string · pattern: ^(.(json|xml))?$ · required

The format in which the response is given, can be empty to use the default format

Default: .json

List all purchase transactions › query Parameters

filter
​string

Filters 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:

FilterTypeDefaultDescription
stateStringallall, open, pending_payment, paid or cancelled
periodStringnilThis 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.
unbatchedBooleantruetrue or false
purchase_transaction_batch_idIntegernilOnly 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.

Default: unbatched:true
page
​integer | string
per_page
​integer | string · min: 1 · max: 100 · pattern: ^\d+$

List all purchase transactions › Responses

200

A list of purchase transactions

id
​identifier · pattern: ^\d+$

A unique record identifier

administration_id
​administration_id · pattern: ^\d+$

A unique record identifier

financial_account_id
​identifier · pattern: ^\d+$

A unique record identifier

purchase_transaction_batch_id
​identifier_nullable · pattern: ^\d+$

A unique record identifier

payment_instrument_id
​identifier_nullable · pattern: ^\d+$

A unique record identifier

state
​string · enum
Enum values:
open
cancelled
paid
pending_payment
error
awaiting_authorization
preparing
sepa_iban
​string
sepa_iban_account_name
​string
sepa_bic
​string
source_sepa_iban
​string | null
source_sepa_iban_account_name
​string | null
date
​string | null · date
description
​string
end_to_end_id
​string
​simple_contact_response | null
amount
​string
created_at
​timestamp · date-time
updated_at
​timestamp · date-time
payable_type
​string | null
payable_id
​identifier_nullable · pattern: ^\d+$

A unique record identifier

payment_method
​string | null

Upload a SEPA credit transfer file to create purchase transaction batches

POST
https://moneybird.com/api/v2
/{administration_id}/sepa_credit_transfer{format}

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

Upload a SEPA credit transfer file to create purchase transaction batches › path Parameters

administration_id
​administration_id · pattern: ^\d+$ · required

The unique identifier of the administration

A unique record identifier

format
​string · pattern: ^(.(json|xml))?$ · required

The format in which the response is given, can be empty to use the default format

Default: .json

Upload a SEPA credit transfer file to create purchase transaction batches › Request Body

file
​string · binary · required

SEPA credit transfer file (pain.001.001.09/Version 2019)

ledger_account_id
​identifier · pattern: ^\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
​identifier · pattern: ^\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
​identifier · pattern: ^\d+$

A unique record identifier

administration_id
​administration_id · pattern: ^\d+$

A unique record identifier

financial_account_id
​identifier · pattern: ^\d+$

A unique record identifier

state
​string · enum
Enum values:
exported
cancelled
open
identifier
​string
created_at
​timestamp · date-time
updated_at
​timestamp · date-time