Appearance
Documents, amounts and originals
A bill version records what its source stated. It is not a customer identity proof, a bank ledger or an instruction to charge automatically. Preserve source meaning before deciding what the application may display or pay.
Identity and revision
Provider + source_document_id identifies a document within a market instance. A positive revision identifies a full immutable version; document_number is its printed reference, not identity. original, correction, replacement and cancellation are explicit revision kinds. The highest stored revision is current, even when an older revision arrives later.
A correction/replacement updates the same document with a higher full revision. A new source document ID creates another document; it does not replace the old one. If the source replaces one document with another ID, the mapping must also represent cancellation of the old document where the source actually states it. A negative amount alone is not cancellation, and cancellation does not refund a payment already made.
Exact source values
Money is a decimal string with exactly two fractional digits, such as "25.00". Zero and negative values can be source facts; "-0.00", exponent notation, JSON money numbers and leading zeroes are refused. Never round-trip money through binary floating point. Quantities are nonnegative decimal strings; a fractional tax-rate string "0.25" means 25 percent. Dates are real calendar YYYY-MM-DD values. Omit unknown optional data rather than using null, blank objects, fabricated zero or false.
| Fact | Meaning |
|---|---|
totals.net, vat, gross | Stated document totals |
obligation.amount_due | Stated amount requested by this version |
| Lines, taxes, measurements | Source breakdowns, not new charges to add automatically |
| Balance explanations/adjustments | Separate source assertions with their inclusion semantics |
| Payment instruction | Supplied destination/reference, not payment confirmation |
Do not derive amount due from gross, add already-included arrears or service fees again, or invent totals when the source has none. Schema acceptance is not a provider-confirmed cross-field accounting rule. HR uses EUR; BA's test path uses BAM. No currency conversion is implemented.
Supported intake formats
| Input | Selection and supported meaning | Important boundary |
|---|---|---|
| Legacy canonical bill | An unwrapped canonical bill object in a batch; exact legacy CSV header | Requires document totals and one obligation; at most one payment instruction |
| Rich bill | Explicit format: "racun-canonical-rich-1" and bill; matching exact rich CSV headers | Preserves supported source graphs, relationships, completeness, components and transfer alternatives; one stated obligation |
| Native document | Explicit format: "native-document" and bill; matching native CSV header | An explicit statement may omit its obligation; this is distinct from a present "0.00" obligation |
The downloaded schemas and examples specify closed fields. Unknown, duplicate/case-variant fields and lossy text are rejected by the implementation; JSON Schema validation alone cannot establish every semantic/storage constraint. Choosing an intake format does not choose a partner presentment profile.
Rich version-scoped graph IDs/references describe source parties, accounts, contracts, billing points, devices and service components. They resolve inside that snapshot and never grant application access. Measurements remain source measurements; line quantity is not automatically consumption evidence. Optional service totals and included balance facts are displayed as stated, with no new arithmetic. Alternative payment destinations are source alternatives, not a split payment or several obligations to sum.
The native statement's missing obligation disables payment features, HUB3 and personal paid-report actions. Native documents currently have no partner presentment profile: authorized native history can cause the partner pull to refuse explicitly rather than silently lose meaning. Legacy-only pull also excludes a whole document containing any rich revision. See profiles.
Original files and PDF copies
Keep your original upload and its batch key for delivery recovery. A CSV-derived bill JSON represents one bill, not the complete uploaded CSV. Neither a content digest nor authenticated delivery proves an issuer document signature.
A version may have one optional PDF display copy. Its digest, size and submitting source do not make it the authority for amounts. The structured version remains the source of its payment instruction; attaching a PDF cannot change it.