DataShift

Purchase Order Example

PO · 1.0.11 · Approved canonical example from the published Purchase Order JSON Schema. Copy it into your tests.

Back to Purchase Order

{
  "docType": "PO",
  "correlationId": "8d359a0f-3e5a-4d36-a87c-f2748b1d6b43",
  "timestamp": "2026-05-16T00:00:00Z",
  "metadata": {
    "sourceLanguage": "cxml",
    "sourceVersion": "1.0.11",
    "payloadId": "po-example-10001",
    "userAgent": "DataShift Edge v1"
  },
  "data": {
    "poNumber": "PO-10001",
    "poVersion": "1",
    "operation": "new",
    "orderDate": "2026-05-16T00:00:00Z",
    "requestedDeliveryDate": "2026-05-23T00:00:00Z",
    "buyer": {
      "id": "BUYER-AU",
      "name": "Example Buyer Pty Ltd",
      "taxRegistrations": {
        "type": "ABN",
        "value": "12345678901"
      }
    },
    "supplier": {
      "id": "SUPPLIER-AU",
      "name": "Example Supplier Pty Ltd",
      "taxRegistrations": {
        "type": "ABN",
        "value": "98765432109"
      }
    },
    "billTo": {
      "addressee": "Example Buyer Accounts",
      "street1": "1 Market Street",
      "city": "Sydney",
      "state": "NSW",
      "postalCode": "2000",
      "country": "AU"
    },
    "shipTo": {
      "addressee": "Example Distribution Centre",
      "street1": "10 Warehouse Road",
      "city": "Melbourne",
      "state": "VIC",
      "postalCode": "3000",
      "country": "AU"
    },
    "lineItems": [
      {
        "lineNumber": 1,
        "uniqueLineKey": "PO-10001-1",
        "supplierItemId": "SUP-001",
        "buyerItemId": "BUY-001",
        "description": "Example product",
        "quantity": 10,
        "unitOfMeasure": "EA",
        "unitPrice": 1500000,
        "currency": "AUD",
        "lineAmountExTax": 150000,
        "lineAmountInclTax": 165000
      }
    ],
    "orderTotals": {
      "subtotal": 150000,
      "taxAmount": 15000,
      "totalAmount": 165000,
      "currency": "AUD"
    },
    "extrinsics": {
      "department": "Operations"
    }
  }
}