Guide

Metadata

Metadata endpoints describe the API to itself. They describe available fields without processing a document. Read the live values from /api/v1/metadata/document-types and /api/v1/metadata/fields instead of hardcoding the tables below.

List document types
curl --request GET \
  --url 'https://digitizer.ee/api/v1/metadata/document-types' \
  --header 'X-API-Key: dig_live_xxxxxxxxxxxx'
Use the OpenAPI specification for nested party, payment, and line-item definitions. Handle nullable fields and ignore additional fields you do not consume.

document

type=document · 20 fields

FieldTypeNotes
document_numberstringInvoice, bill or receipt identifier.
issue_datedateDocument date, ISO 8601.
due_datedatePayment due date.
currencystringISO 4217 currency code.
subtotalnumberNet of VAT.
vat_amountnumberTotal VAT.
roundingnumberRounding adjustment applied to reach the total.
totalnumberGross amount printed.
amount_duenumberUnpaid balance.
vat_ratesarrayVAT per rate: rate, net, vat, gross.
vendorobjectIssuing party.
customerobjectBilled party.
line_itemsarrayLine item rows: description, code, ean, quantity, unit, gross unit_price, net_unit_price, discount_percent, discount_amount, subtotal, vat_rate, vat_amount, total. amount is a deprecated alias of total.
banksarrayEvery bank printed for payment: name, iban, swift_bic.
account_numberstringCustomer account number.
previous_balancenumberBalance carried forward.
payments_creditsnumberPayments and credits applied.
service_addressstringAddress the service applies to.
consumptionobjectunit and value for metered documents.
paymentobjectPayment: method, card_number, card_last4, auth_code, reference, receipt_number, amount, tendered, change.