Financials pillar · v0.16.0
invoice-issued InvoiceIssued
AR invoice issued to a customer.
$id · https://corpospec.com/schemas/v0.16.0/invoice-issued.schema.json
Fields
| Field | Type | Required | Description |
|---|---|---|---|
| currency | IsoCurrency | yes | ISO 4217 currency code. |
| customer | PathRef | yes | Path-based cross-reference relative to .corpospec/ root. Pattern: `^[a-z0-9_-]+(/[a-z0-9_.-]+)+$` |
| due_at | IsoDate | yes | ISO 8601 date (YYYY-MM-DD). |
| entity | PathRef | yes | Path-based cross-reference relative to .corpospec/ root. Pattern: `^[a-z0-9_-]+(/[a-z0-9_.-]+)+$` |
| id | PathRef | yes | Path-based cross-reference relative to .corpospec/ root. Pattern: `^[a-z0-9_-]+(/[a-z0-9_.-]+)+$` |
| invoice_number | string | yes | Unique per entity per §14 UStG. |
| issued_at | IsoDate | yes | ISO 8601 date (YYYY-MM-DD). |
| lines | InvoiceLine[] | yes | |
| payment_terms | string | yes | E.g. `"30 days net"`, `"due on receipt"`. |
| status | InvoiceStatus | yes | AR invoice status. |
| total_gross | number | yes | |
| total_net | number | yes | |
| total_vat | number | yes | |
| document | PathRef? | — | |
| dunning_stage | DunningStage? | — | |
| journal_entries | PathRef[] | — | |
| payments | PaymentApplication[] | — |
Definitions
Shared types referenced within this schema.
DunningStage
AR dunning stage.
enum: "none", "friendly", "firm", "collection", "legal"
InvoiceLine
One invoice line.
type: object
InvoiceRecognitionPattern
IFRS 15 / ASC 606 revenue-recognition pattern for an invoice line.
InvoiceStatus
AR invoice status.
enum: "draft", "issued", "partially_paid", "paid", "overdue", "written_off", "credit_noted"
IsoCurrency
ISO 4217 currency code.
pattern: ^[A-Z]{3}$
IsoDate
ISO 8601 date (YYYY-MM-DD).
type: string
PathRef
Path-based cross-reference relative to .corpospec/ root.
Pattern: `^[a-z0-9_-]+(/[a-z0-9_.-]+)+$`
pattern: ^[a-z0-9_-]+(/[a-z0-9_.-]+)+$
PaymentApplication
Application of a bank transaction to invoice settlement.
type: object
Reference in your YAML
# yaml-language-server: $schema=https://corpospec.com/schemas/v0.16.0/invoice-issued.schema.json