Skip to content

Invoice

A statement of money owed for goods or services: receivable when we issued it, payable when we received it (a bill). Lines with amounts and taxes, totals, a status from draft to paid, and the payments applied to it.

PackBilling
Versionv1 (latest)
URNurn:postware:billing:invoice
Identityidentifiers or direction + counterparty + number
Status categoriesdraft, open, paid, void, uncollectible

Fields

FieldTypeReqNotes
numberstringnorequired once status is not draft; unique per workspace when receivable, per counterparty when payable
directionenum(receivable|payable)yesa bill is a payable Invoice; default receivable
counterpartyRef<Organization | Person>yes
bill_toAddressnothe billing address as printed; defaults from the counterparty
statusStatus(draft|open|paid|void|uncollectible)yesdefault map[category:draft]
issued_atdateyes
due_atdatenodue_at or terms is given when amount_due is above zero
termsstringnopayment terms as text, e.g. Net 30
currencystringyesISO 4217; every Money on the invoice uses it; pattern ^[A-Z]{3}$
tax_inclusiveboolyesdefault false
linesobject[]yes{product?: Ref<Product>, price?: Ref<Price>, description: string, quantity: decimal, unit?: string, unit_price: Money, discount?: Money, tax_rate?: Ref<Tax rate>, tax_amount?: Money, amount: Money, period?: Period}
subtotalMoneyyesthe sum of lines.amount
discount_totalMoneynodocument-level discount
tax_totalMoneyyes
totalMoneyyes
amount_paidMoneyyesmaintained from applied Payments
amount_dueMoneyyestotal minus amount_paid
paid_atdatetimeno
referencestringnothe buyer's PO or reference
memotextnoa customer-facing note printed on the invoice
subscriptionRef<Subscription>no
aboutRef<any>[]nothe Deal, the Project

Events

invoice.paid when status.category becomes paid; invoice.voided when status.category becomes void; invoice.uncollectible when status.category becomes uncollectible.

Extensions

ExtensionTypeNotes
ext.billing.exchange_ratedecimalThe rate from the invoice currency to the workspace's reporting currency at issue, as a decimal string.