Purchase invoices are invoices you receive from your suppliers.
List ids and versions of purchase invoices
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.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
query Parameters
filter
stringString terms, example: key1:value1,key2:value2.
Responses
IDs and versions of records
id
integer | stringversion
integer | string
Fetch purchase invoices with given ids
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.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
A list of purchase invoices
id
string | integer · pattern:^\d+$
A unique record identifier
administration_id
string | integer · pattern:^\d+$
A unique record identifier of an administration
contact_id
string | integer | null · pattern:^\d+$
A unique record identifier
contact
reference
string | nulldate
string · datedue_date
string | null · dateentry_number
integer | nullstate
string · enumEnum values:newopenlatepaidsavedpending_paymentcurrency
stringISO 4217 currency code
exchange_rate
string | nullrevenue_invoice
boolean | nullprices_are_incl_tax
boolean | nullorigin
string | null · enumEnum values:uploadendpointsiemailsi_localsi_peppolapimoneybird_bvpaid_at
string | null · datetax_number
string | nulltotal_price_excl_tax
string | nulltotal_price_excl_tax_base
string | nulltotal_price_incl_tax
string | nulltotal_price_incl_tax_base
string | nullcreated_at
string · date-timeupdated_at
string · date-timeversion
integerdetails
object[]payments
object[]notes
object[]attachments
object[]events
object[]
Download attachment
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.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
id
string | integer · pattern:^\d+$
· requiredA unique record identifier
attachment_id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Found
Delete an attachment
Deletes an attachment of an attachable.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
id
string | integer · pattern:^\d+$
· requiredA unique record identifier
attachment_id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Attachment deleted
Add attachment to purchase invoice
Add an attachment to a purchase invoice.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Status code
Delete a payment
Deletes a payment from a purchase invoice.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
id
string | integer · pattern:^\d+$
· requiredA unique record identifier
payment_id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Payment deleted
Create a payment
Registers a payment for a purchase invoice.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Payment created
id
string | integer · pattern:^\d+$
A unique record identifier
administration_id
string | integer · pattern:^\d+$
A unique record identifier of an administration
invoice_type
string · enumEnum values:SalesInvoiceDocumentExternalSalesInvoiceVatDocumentinvoice_id
string | integer · pattern:^\d+$
A unique record identifier
financial_account_id
string | integer | null · pattern:^\d+$
A unique record identifier
user_id
string | integer · pattern:^\d+$
A unique record identifier
payment_transaction_id
string | integer | null · pattern:^\d+$
A unique record identifier
transaction_identifier
string | nullprice
price_base
payment_date
string · datecredit_invoice_id
string | integer | null · pattern:^\d+$
A unique record identifier
financial_mutation_id
string | integer | null · pattern:^\d+$
A unique record identifier
ledger_account_id
string | integer | null · pattern:^\d+$
A unique record identifier
linked_payment_id
string | integer | null · pattern:^\d+$
A unique record identifier
manual_payment_action
string | nullcreated_at
string · date-timeupdated_at
string · date-time
Register a payment for a purchase invoice
This endpoint is deprecated and should no longer be used. It has been replaced by Create a payment
.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Status code
Get purchase invoice
Returns a purchase invoice by id.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
A purchase invoice
id
string | integer · pattern:^\d+$
A unique record identifier
administration_id
string | integer · pattern:^\d+$
A unique record identifier of an administration
contact_id
string | integer | null · pattern:^\d+$
A unique record identifier
contact
reference
string | nulldate
string · datedue_date
string | null · dateentry_number
integer | nullstate
string · enumEnum values:newopenlatepaidsavedpending_paymentcurrency
stringISO 4217 currency code
exchange_rate
string | nullrevenue_invoice
boolean | nullprices_are_incl_tax
boolean | nullorigin
string | null · enumEnum values:uploadendpointsiemailsi_localsi_peppolapimoneybird_bvpaid_at
string | null · datetax_number
string | nulltotal_price_excl_tax
string | nulltotal_price_excl_tax_base
string | nulltotal_price_incl_tax
string | nulltotal_price_incl_tax_base
string | nullcreated_at
string · date-timeupdated_at
string · date-timeversion
integerdetails
object[]payments
object[]notes
object[]attachments
object[]events
object[]
Delete a purchase invoices
Deletes a purchase invoice.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Status code
Update purchase invoice
Updates a purchase invoice.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Purchase invoice updated
id
string | integer · pattern:^\d+$
A unique record identifier
administration_id
string | integer · pattern:^\d+$
A unique record identifier of an administration
contact_id
string | integer | null · pattern:^\d+$
A unique record identifier
contact
reference
string | nulldate
string · datedue_date
string | null · dateentry_number
integer | nullstate
string · enumEnum values:newopenlatepaidsavedpending_paymentcurrency
stringISO 4217 currency code
exchange_rate
string | nullrevenue_invoice
boolean | nullprices_are_incl_tax
boolean | nullorigin
string | null · enumEnum values:uploadendpointsiemailsi_localsi_peppolapimoneybird_bvpaid_at
string | null · datetax_number
string | nulltotal_price_excl_tax
string | nulltotal_price_excl_tax_base
string | nulltotal_price_incl_tax
string | nulltotal_price_incl_tax_base
string | nullcreated_at
string · date-timeupdated_at
string · date-timeversion
integerdetails
object[]payments
object[]notes
object[]attachments
object[]events
object[]
Destroys note from entity
Deletes a note from the purchase invoice.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
purchase_invoice_id
string | integer · pattern:^\d+$
· requiredA unique record identifier
id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Note deleted
Adds note to entity
Adds a note to the purchase invoice.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
purchase_invoice_id
string | integer · pattern:^\d+$
· requiredA unique record identifier
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Note created
id
string | integer · pattern:^\d+$
A unique record identifier
administration_id
string | integer · pattern:^\d+$
A unique record identifier of an administration
entity_id
string | integer | null · pattern:^\d+$
A unique record identifier
entity_type
stringuser_id
string | integer · pattern:^\d+$
A unique record identifier
assignee_id
string | integer | null · pattern:^\d+$
A unique record identifier
todo
boolean | string | nullDefault: falsenote
string | nullcompleted_at
string | null · date-timecompleted_by_id
string | integer | null · pattern:^\d+$
A unique record identifier
todo_type
string | null · enumEnum values:sales_invoice_duepurchase_invoice_duegeneral_document_remindergeneral_document_duenew_document_awaiting_processingnew_financial_mutation_awaiting_processingfinancial_mutations_not_updatedsales_invoice_payment_not_linked_to_financial_mutationdata
object | nullcreated_at
string · date-timeupdated_at
string · date-time
Get purchase invoices
Returns a paginated list of documents of this type in the administration.
The filter
argument allows you to filter on the list of documents. 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.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
query Parameters
filter
stringString terms, example:
key1:value1,key2:value2
.new_filter
stringString terms, example:
key1:value1,key2:value2
.page
integer | stringper_page
integer | string · min: 1 · max: 100 · pattern:^\d+$
exclude_new_general_journal_documents
boolean | string
Responses
A list of purchase invoices
id
string | integer · pattern:^\d+$
A unique record identifier
administration_id
string | integer · pattern:^\d+$
A unique record identifier of an administration
contact_id
string | integer | null · pattern:^\d+$
A unique record identifier
contact
reference
string | nulldate
string · datedue_date
string | null · dateentry_number
integer | nullstate
string · enumEnum values:newopenlatepaidsavedpending_paymentcurrency
stringISO 4217 currency code
exchange_rate
string | nullrevenue_invoice
boolean | nullprices_are_incl_tax
boolean | nullorigin
string | null · enumEnum values:uploadendpointsiemailsi_localsi_peppolapimoneybird_bvpaid_at
string | null · datetax_number
string | nulltotal_price_excl_tax
string | nulltotal_price_excl_tax_base
string | nulltotal_price_incl_tax
string | nulltotal_price_incl_tax_base
string | nullcreated_at
string · date-timeupdated_at
string · date-timeversion
integerdetails
object[]payments
object[]notes
object[]attachments
object[]events
object[]
Create a new purchase invoice
Creates a new purchase invoice.
path Parameters
administration_id
string | integer · pattern:^\d+$
· requiredThe unique identifier of the administration
A unique record identifier of an administration
format
string · pattern:^(.(json|xml))?$
· requiredThe format in which the response is given, can be empty to use the default format
Default: .json
Responses
Purchase invoice created
id
string | integer · pattern:^\d+$
A unique record identifier
administration_id
string | integer · pattern:^\d+$
A unique record identifier of an administration
contact_id
string | integer | null · pattern:^\d+$
A unique record identifier
contact
reference
string | nulldate
string · datedue_date
string | null · dateentry_number
integer | nullstate
string · enumEnum values:newopenlatepaidsavedpending_paymentcurrency
stringISO 4217 currency code
exchange_rate
string | nullrevenue_invoice
boolean | nullprices_are_incl_tax
boolean | nullorigin
string | null · enumEnum values:uploadendpointsiemailsi_localsi_peppolapimoneybird_bvpaid_at
string | null · datetax_number
string | nulltotal_price_excl_tax
string | nulltotal_price_excl_tax_base
string | nulltotal_price_incl_tax
string | nulltotal_price_incl_tax_base
string | nullcreated_at
string · date-timeupdated_at
string · date-timeversion
integerdetails
object[]payments
object[]notes
object[]attachments
object[]events
object[]