Moneybird logo
Moneybird API

Documents: General documents

General documents are documents that are not invoices, estimates, or other specific document types. They can be used to store other financial documents.


List ids and versions of general documents

GET
https://moneybird.com/api/v2
/{administration_id}/documents/general_documents/synchronization{format}

Returns all documents in the administration. The list contains the document id and the version of the document. Check if the version of the document is newer than the version you have stored locally, use the POST variant for fetching documents with the given ids.

Required scope(s)

documents

List ids and versions of general documentspath 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 ids and versions of general documentsquery Parameters

filter
string

Comma-separated key:value filter terms. Same syntax as GET /documents/general_documents — see that operation's description for the available keys.

List ids and versions of general documents Responses

200

IDs and versions of records

object[]
id
integer | string
version
integer | string

Fetch general documents with given ids

POST
https://moneybird.com/api/v2
/{administration_id}/documents/general_documents/synchronization{format}

Given a list of document ids, returns the document information belonging to the documents. Returns a maximum of 100 documents, even if more ids are provided.

Required scope(s)

documents

Fetch general documents with given idspath 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

Fetch general documents with given ids Request Body

ids
(integer | string)[] · required

Fetch general documents with given ids Responses

200

A list of general documents

id
identifier · pattern: ^\d+$

A unique record identifier

administration_id
administration_id · pattern: ^\d+$

A unique record identifier

contact_id
identifier_nullable · pattern: ^\d+$

A unique record identifier

reference
string | null
date
string · date
due_date
string | null · date
entry_number
integer | null
state
string · enum
Enum values:
new
open
late
paid
saved
pending_payment
exchange_rate
string | null
created_at
timestamp · date-time
updated_at
timestamp · date-time
version
version
attachment_response[]

Destroys note from entity

DELETE
https://moneybird.com/api/v2
/{administration_id}/documents/general_documents/{general_document_id}/notes/{id}{format}

Deletes a note from the general document.

Required scope(s)

documents

Destroys note from entitypath Parameters

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

The unique identifier of the administration

A unique record identifier

general_document_id
identifier · pattern: ^\d+$ · required

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

Destroys note from entity Responses

Note deleted

No data returned

Adds note to entity

POST
https://moneybird.com/api/v2
/{administration_id}/documents/general_documents/{general_document_id}/notes{format}

Adds a note to the general document.

Required scope(s)

documents

Adds note to entitypath Parameters

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

The unique identifier of the administration

A unique record identifier

general_document_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

Adds note to entity Request Body

object

Adds note to entity Responses

Note created

id
identifier · pattern: ^\d+$

A unique record identifier

administration_id
administration_id · pattern: ^\d+$

A unique record identifier

entity_id
identifier_nullable · pattern: ^\d+$

A unique record identifier

entity_type
string
user_id
identifier · pattern: ^\d+$

A unique record identifier

assignee_id
identifier_nullable · pattern: ^\d+$

A unique record identifier

todo
boolean | string | null
Default: false
note
string | null
completed_at
string | null · date-time
completed_by_id
identifier_nullable · pattern: ^\d+$

A unique record identifier

todo_type
string | null · enum
Enum values:
sales_invoice_due
purchase_invoice_due
general_document_reminder
general_document_due
new_document_awaiting_processing
new_financial_mutation_awaiting_processing
financial_mutations_not_updated
sales_invoice_payment_not_linked_to_financial_mutation
data
object | null
created_at
timestamp · date-time
updated_at
timestamp · date-time

Download attachment

GET
https://moneybird.com/api/v2
/{administration_id}/documents/general_documents/{id}/attachments/{attachment_id}/download{format}

Download the attachment. The response will be a redirect to a temporarily available URL where the attachment can be downloaded. Use the Location header in the response to download the attachment.

Required scope(s)

documents

Download attachmentpath 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

attachment_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 attachment Responses

Found

string

Delete an attachment

DELETE
https://moneybird.com/api/v2
/{administration_id}/documents/general_documents/{id}/attachments/{attachment_id}{format}

Deletes an attachment of an attachable.

Required scope(s)

documents

Delete an attachmentpath 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

attachment_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 an attachment Responses

Attachment deleted

No data returned

Add attachment to general document

POST
https://moneybird.com/api/v2
/{administration_id}/documents/general_documents/{id}/attachments{format}

Add an attachment to a general document.

Required scope(s)

documents

Add attachment to general documentpath 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

Add attachment to general document Request Body

file
string · binary

Add attachment to general document Responses

Status code

integer

Get general document

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

Returns a general document by id.

Required scope(s)

documents

Get general documentpath 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 general document Responses

A general document

id
identifier · pattern: ^\d+$

A unique record identifier

administration_id
administration_id · pattern: ^\d+$

A unique record identifier

contact_id
identifier_nullable · pattern: ^\d+$

A unique record identifier

reference
string | null
date
string · date
due_date
string | null · date
entry_number
integer | null
state
string · enum
Enum values:
new
open
late
paid
saved
pending_payment
exchange_rate
string | null
created_at
timestamp · date-time
updated_at
timestamp · date-time
version
version
attachment_response[]

Delete a general document

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

Deletes a general document.

Required scope(s)

documents

Delete a general documentpath 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 general document Responses

Status code

integer

Update a general document

PATCH
https://moneybird.com/api/v2
/{administration_id}/documents/general_documents/{id}{format}

Updates a general document.

Required scope(s)

documents

Update a general documentpath 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

Update a general document Request Body

object
remove_contact
boolean | string

Update a general document Responses

General document updated

id
identifier · pattern: ^\d+$

A unique record identifier

administration_id
administration_id · pattern: ^\d+$

A unique record identifier

contact_id
identifier_nullable · pattern: ^\d+$

A unique record identifier

reference
string | null
date
string · date
due_date
string | null · date
entry_number
integer | null
state
string · enum
Enum values:
new
open
late
paid
saved
pending_payment
exchange_rate
string | null
created_at
timestamp · date-time
updated_at
timestamp · date-time
version
version
attachment_response[]

Get general documents

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

Returns a paginated list of documents of this type in the administration.

Required scope(s)

documents

Get general documentspath 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

Get general documentsquery 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 — in particular pass an explicit period (a named period or a YYYYMMDD..YYYYMMDD range) to look beyond the default financial year. Available filters:

FilterTypeDefaultDescription
periodStringthis_yearA named 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 range (201301..201302, 20130101..20130131)
stateStringallall, new, saved, open, paid, late or pending_payment. paid, late and pending_payment only apply to documents with a payment lifecycle (purchase invoices and receipts)
recurringStringallall, enabled or disabled
attachmentStringallall, with or without
referenceStringDocuments with the given reference value
contact_idIntegerDocuments belonging to the given contact
ledger_account_idIntegerDocuments booking against the given ledger account
updated_afterStringISO 8601 timestamp in UTC; documents updated strictly after this time

Multiple values for state, recurring and attachment can be combined with a pipe, e.g. state:open|paid.

Default: period:this_year
new_filter
string

String terms, example: key1:value1,key2:value2.

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

Get general documents Responses

A list of general documents

id
identifier · pattern: ^\d+$

A unique record identifier

administration_id
administration_id · pattern: ^\d+$

A unique record identifier

contact_id
identifier_nullable · pattern: ^\d+$

A unique record identifier

reference
string | null
date
string · date
due_date
string | null · date
entry_number
integer | null
state
string · enum
Enum values:
new
open
late
paid
saved
pending_payment
exchange_rate
string | null
created_at
timestamp · date-time
updated_at
timestamp · date-time
version
version
attachment_response[]

Create a new general document

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

Creates a new general document.

Required scope(s)

documents

Create a new general documentpath 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

Create a new general document Request Body

object

Create a new general document Responses

General document created

id
identifier · pattern: ^\d+$

A unique record identifier

administration_id
administration_id · pattern: ^\d+$

A unique record identifier

contact_id
identifier_nullable · pattern: ^\d+$

A unique record identifier

reference
string | null
date
string · date
due_date
string | null · date
entry_number
integer | null
state
string · enum
Enum values:
new
open
late
paid
saved
pending_payment
exchange_rate
string | null
created_at
timestamp · date-time
updated_at
timestamp · date-time
version
version
attachment_response[]