DataShift

Invoice Example

INV · 1.0.12 · Approved canonical example from the published Invoice JSON Schema. Copy it into your tests.

Back to Invoice

{
  "docType": "INV",
  "correlationId": "43e7580b-e592-46bb-a3d0-dbf8997758d9",
  "timestamp": "2026-05-16T04:00:00Z",
  "metadata": {
    "sourceLanguage": "cxml",
    "sourceVersion": "1.0.12",
    "payloadId": "inv-example-10001",
    "userAgent": "DataShift Edge v1"
  },
  "data": {
    "invoiceNumber": "INV-10001",
    "poNumber": "PO-10001",
    "invoiceDate": "2026-05-16T04:00:00Z",
    "dueDate": "2026-06-15T00:00:00Z",
    "purpose": "standard",
    "poReferences": [
      {
        "poNumber": "PO-10001",
        "poVersion": "1"
      }
    ],
    "supplier": {
      "id": "SUPPLIER-AU",
      "name": "Example Supplier Pty Ltd",
      "taxRegistrations": {
        "type": "ABN",
        "value": "98765432109"
      },
      "address": {
        "addressee": "Example Supplier Pty Ltd",
        "street1": "20 Supplier Street",
        "city": "Adelaide",
        "state": "SA",
        "postalCode": "5000",
        "country": "AU"
      }
    },
    "billTo": {
      "addressee": "Example Buyer Accounts",
      "street1": "1 Market Street",
      "city": "Sydney",
      "state": "NSW",
      "postalCode": "2000",
      "country": "AU"
    },
    "lineItems": [
      {
        "invoiceLineNumber": 1,
        "uniqueLineKey": "PO-10001-1",
        "poLineReference": 1,
        "supplierItemId": "SUP-001",
        "buyerItemId": "BUY-001",
        "description": "Example product",
        "quantity": 10,
        "unitOfMeasure": "EA",
        "unitPrice": 1500000,
        "subtotal": 150000,
        "taxAmount": 15000,
        "currency": "AUD"
      }
    ],
    "invoiceSummary": {
      "taxAmount": 15000,
      "grossAmount": 165000,
      "netAmount": 165000,
      "dueAmount": 165000,
      "currency": "AUD"
    },
    "extrinsics": {
      "accountsReference": "AP-10001"
    }
  }
}