{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/purchase_order/v2.json",
  "title": "purchase_order contract v2",
  "type": "object",
  "required": [
    "amount",
    "external_id",
    "occurred_at",
    "vendor"
  ],
  "properties": {
    "amount": {
      "type": "number",
      "description": "total committed value of the PO, tax inclusive",
      "x-demiton-requiredness": "required",
      "x-demiton-type": "decimal"
    },
    "status": {
      "type": "string",
      "description": "PO lifecycle state (`Open`/`Released`/`Pending Approval`/…)",
      "x-demiton-requiredness": "optional"
    },
    "vendor": {
      "type": "string",
      "description": "the supplier the PO is placed with",
      "x-demiton-requiredness": "required",
      "x-demiton-reference": true
    },
    "project": {
      "type": "string",
      "description": "project/job the PO is for, when resolvable",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "currency": {
      "type": "currency",
      "description": "denomination of `amount`",
      "x-demiton-requiredness": "optional"
    },
    "purchaser": {
      "type": "string",
      "description": "the buyer/approver who raised the PO",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "tax_amount": {
      "type": "number",
      "description": "tax component of the committed value",
      "x-demiton-requiredness": "optional",
      "x-demiton-type": "decimal"
    },
    "external_id": {
      "type": "string",
      "description": "source record identity / dedup key",
      "x-demiton-requiredness": "required"
    },
    "occurred_at": {
      "type": "string",
      "description": "the order date of the PO",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "ISO 8601",
      "format": "date-time",
      "x-demiton-type": "datetime"
    },
    "legal_entity": {
      "type": "string",
      "description": "company that placed the order",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "posting_date": {
      "type": "string",
      "description": "date the PO posted to the ledger, if at all",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "ISO 8601",
      "format": "date",
      "x-demiton-type": "date"
    },
    "fully_received": {
      "type": "boolean",
      "description": "whether all lines are receipted",
      "x-demiton-requiredness": "optional"
    },
    "financial_period": {
      "type": "string",
      "description": "accounting period the order falls in",
      "x-demiton-requiredness": "optional",
      "format": "date",
      "x-demiton-type": "date"
    },
    "amount_excluding_tax": {
      "type": "number",
      "description": "committed value net of tax",
      "x-demiton-requiredness": "optional",
      "x-demiton-type": "decimal"
    },
    "requested_receipt_date": {
      "type": "string",
      "description": "expected delivery date",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "ISO 8601",
      "format": "date",
      "x-demiton-type": "date"
    }
  },
  "x-demiton-register-type": "purchase_order",
  "x-demiton-contract-version": "2.0.2",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [
    {
      "axis": "vendor",
      "requirement": "required",
      "role": "context"
    },
    {
      "axis": "legal_entity",
      "requirement": "optional",
      "role": "context"
    },
    {
      "axis": "financial_period",
      "requirement": "optional",
      "role": "context"
    },
    {
      "axis": "project",
      "requirement": "optional",
      "role": "subject"
    }
  ],
  "x-demiton-measures": [
    {
      "key": "amount",
      "accumulation": "additive",
      "dtype": "decimal",
      "unit": "AUD"
    }
  ],
  "x-demiton-provenance": {
    "standards": [
      {
        "code": "ABN Act 1999 (Cth)",
        "title": "A New Tax System (Australian Business Number) Act 1999 - ABN register",
        "access": "public_summary",
        "region": "Australia",
        "edition": "current",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Commonwealth Procurement Rules",
        "title": "Commonwealth Procurement Rules",
        "access": "public_summary",
        "region": "Australia",
        "edition": "effective 17 Nov 2025",
        "checked_on": "2026-09-14"
      },
      {
        "code": "PINT A-NZ Billing BIS",
        "title": "Peppol PINT A-NZ Billing BIS (joint Australia-New Zealand specification)",
        "access": "full_text_verified",
        "clause": "ch 1-2, 5.1",
        "region": "Australia",
        "edition": "1.1.3 (mandatory from 15 Nov 2024)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Directive 2014/24/EU",
        "title": "Directive 2014/24/EU on public procurement",
        "access": "full_text_verified",
        "region": "European Union",
        "edition": "consolidated",
        "checked_on": "2026-09-14"
      },
      {
        "code": "EN 16931-1:2017",
        "title": "CEN EN 16931-1 Electronic invoicing - semantic data model",
        "access": "public_summary",
        "region": "European Union",
        "edition": "2017 (withdrawn; 2026 edition published May 2026)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "OC4IDS 0.9.5",
        "title": "Open Contracting for Infrastructure Data Standard",
        "access": "full_text_verified",
        "region": "International",
        "edition": "0.9.5 (switcher 0.9.4)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "OCDS 1.1.5",
        "title": "Open Contracting Data Standard",
        "access": "full_text_verified",
        "region": "International",
        "edition": "1.1 schema, docs 1.1.5",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Peppol BIS Billing 3.0",
        "title": "Peppol BIS Billing 3.0 (CIUS of EN 16931)",
        "access": "full_text_verified",
        "clause": "conformance statement; business requirement groups",
        "region": "International",
        "edition": "3.0.21 (May 2026 release)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "NZ Government Procurement Rules",
        "title": "New Zealand Government Procurement Rules",
        "access": "public_summary",
        "clause": "Rule 34",
        "region": "New Zealand",
        "edition": "5th edition",
        "checked_on": "2026-09-14"
      },
      {
        "code": "NZBN Act 2016",
        "title": "New Zealand Business Number Act 2016",
        "access": "public_summary",
        "region": "New Zealand",
        "edition": "current",
        "checked_on": "2026-09-14"
      },
      {
        "code": "PINT A-NZ Billing BIS",
        "title": "Peppol PINT A-NZ Billing BIS (joint Australia-New Zealand specification)",
        "access": "full_text_verified",
        "clause": "ch 1-2, 5.1",
        "region": "New Zealand",
        "edition": "1.1.3 (mandatory from 15 Nov 2024)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Procurement Act 2023",
        "title": "Procurement Act 2023 (c. 54) and Procurement Regulations 2024 (SI 2024/692)",
        "access": "full_text_verified",
        "clause": "s 87 / reg 36 (below-threshold contract details)",
        "region": "United Kingdom",
        "edition": "in force 24 Feb 2025",
        "checked_on": "2026-09-14"
      },
      {
        "code": "FAR 4.604 / 4.606",
        "title": "Federal Acquisition Regulation Part 4 subpart 4.6 contract reporting",
        "access": "full_text_verified",
        "clause": "4.604, 4.606",
        "region": "United States",
        "edition": "FAC 2026-01 (eff. 13 Mar 2026)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "FAR 52.204-7",
        "title": "FAR 52.204-7 System for Award Management (Unique Entity ID, UEI)",
        "access": "full_text_verified",
        "region": "United States",
        "edition": "Nov 2024",
        "checked_on": "2026-09-14"
      }
    ]
  },
  "description": "Purchase orders raised against suppliers: committed spend not yet posted.",
  "x-demiton-contract-url": "https://docs.demiton.io/registers/purchase_order/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}