Skip to main content
GET
Get Document

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

document_uuid
string
required

Response

Successful Response

A document of the company: an invoice/credit note it issued or a document it received (purchase invoice, credit note, other). The source table is hidden — the client sees a single unified document identified by an opaque id.

Monetary amounts are decimal numbers in the document's currency. They may be null when the document could not be parsed automatically, or for other_document types that have no financial breakdown.

Both sources are normalised to this shape by the repository adapters; the validators below map the internal codes to their public values.

id
string
required

Opaque unique identifier of the document.

type
string
required

Document type. One of: sale_invoice, sale_credit_note, purchase_invoice, purchase_credit_note, other_document, unknown.

origin
string
required

Channel the document came in through. One of: fidly (generated in Fidly), manual, peppol, mail, odoo, billit, api (or unknown).

document_number
string | null
required

The document's own number (e.g. invoice number).

order_number
string | null
required

Purchase/sales order number referenced by the document.

despatch_reference
string | null
required

Reference of the despatch advice (delivery note) related to the document.

buyer_reference
string | null
required

Reference given by the buyer, to be quoted back on the document (e.g. a cost centre).

issue_date
string<date> | null
required

Date the document was issued (ISO YYYY-MM-DD).

due_date
string<date> | null
required

Payment due date (ISO YYYY-MM-DD).

tax_point_date
string<date> | null
required

Date the VAT becomes chargeable, when it differs from the issue date (ISO YYYY-MM-DD).

delivery_date
string<date> | null
required

Date the goods/services were actually delivered (ISO YYYY-MM-DD).

period_start
string<date> | null
required

First day of the period the document bills (ISO YYYY-MM-DD).

period_end
string<date> | null
required

Last day of the period the document bills (ISO YYYY-MM-DD).

payment_remittance
string | null
required

Communication to quote when paying the document. null when the document carries none.

is_remittance_structured
boolean
required

true when payment_remittance is a structured communication (a bank-checked reference such as a Belgian OGM/VCS) rather than free text. Always true for documents issued by Fidly.

create_date
string<date-time> | null
required

Timestamp the document was created in Fidly (ISO 8601). May be null on rare legacy rows where it was never set.

currency
string | null
required

ISO 4217 currency code of all amounts (e.g. EUR).

tax_exclusive_amount
number | null
required

Total amount excluding tax.

tax_amount
number | null
required

Total tax (VAT) amount.

total_amount
number | null
required

Total amount payable, tax included.

paid_amount
number | null
required

Amount already paid.

remaining_amount
number | null
required

Amount still to be paid (total_amount minus paid_amount).

payment_status
string
required

Payment state. One of: unpaid, partial, paid (or unknown).

accounting_status
string
required

Accounting workflow state. One of: waiting, accepted, transfered, exported, export_error, imported, validated, hidden, exporting, posting, posting_error, deleted (or unknown).

pdf_available
boolean
required

true if a PDF is stored for this document (retrievable via the file endpoint).

xml_available
boolean
required

true if a structured XML version (e.g. Peppol/UBL) is stored for this document.

relation_type
string | null

Nature of relation_id: company (a registered business relation) or contact (an individual contact). null when there is no linked third party.

relation_id
string | null

Opaque identifier of the third party the document is linked to (resolvable via GET /relations/{id}). Its nature is given by relation_type. null when the document has no linked third party.

journal_id
string | null

Opaque identifier of the journal the document is booked in (resolvable via GET /journals/{id}). null when the document has no linked journal.

delivery_location_id
string | null

Opaque identifier of the saved delivery address the document is delivered to (resolvable via GET /delivery-locations/{id}). null when none is set.

payment_terms
string | null

Payment terms the due_date follows from, as <days>-<basis> (e.g. 30-df). Always null on a received document: only documents Fidly issues carry them.

Legal mention printed at the bottom of the document (e.g. a VAT exemption wording). Always null on received documents.

peppol_status
string | null

Peppol send state of an issued document. One of: not_sent, sending, sent (delivered to the network), accepted (acknowledged by the recipient), rejected (refused by the recipient), failed (or unknown). rejected and failed can be sent again. Always null on a received document.

mail_status
string | null

E-mail send state of an issued document. One of: not_sent, sent, failed (or unknown). Always null on a received document.

attachments
AttachmentOut · object[]

Files attached to the document, in the order they were added. Attach one with POST /documents/{id}/attachments; the API offers no way to remove one. A received document never carries any.

allowance_charges
AllowanceChargeOut · object[]

Discounts/surcharges applied to the document as a whole, after the lines and their own. tax_exclusive_amount is already net of them.

lines
LineOut · object[]

Detailed lines of the document (invoiced items/services). Empty when none are stored.