{
  "invoiceNumber": "INV-2025-0042",
  "invoiceDate": "2026-07-15",
  "dueDate": "2026-08-14",
  "deliveryDate": "2026-07-12",
  "currency": "USD",
  "purchaseOrder": "PO-88190",
  "contractNumber": "MSA-2024-11",
  "totals": {
    "net": 1250.00,
    "tax": 112.50,
    "gross": 1362.50
  },
  "supplier": {
    "name": "Northwind Manufacturing LLC",
    "taxId": "US-441290",
    "contact": "accounts@northwind.example"
  },
  "customer": {
    "name": "Contoso Retail Group",
    "taxId": "US-849201",
    "contact": "ap@contoso.example"
  },
  "billTo": {
    "name": "Contoso Accounts Payable",
    "street": "450 Market Street, Suite 200",
    "city": "San Francisco",
    "postalCode": "94105",
    "state": "CA",
    "country": "US"
  },
  "shipTo": {
    "name": "Contoso Distribution Center",
    "street": "901 Airport Way",
    "city": "Reno",
    "postalCode": "89502",
    "state": "NV",
    "country": "US"
  },
  "payment": {
    "reference": "INV-2025-0042",
    "method": "ACH",
    "bankAccount": "US1234567890",
    "bankName": "First National Bank"
  },
  "lines": [
    {
      "productCode": "SKU-4471",
      "productName": "Stainless Bolt M6 x 20 (box of 100)",
      "quantity": 5,
      "unitPrice": 85.00,
      "uom": "BX",
      "netAmount": 425.00,
      "taxRate": 9.00,
      "taxAmount": 38.25,
      "grossAmount": 463.25
    },
    {
      "productCode": "SKU-4472",
      "productName": "Stainless Nut M6 (box of 200)",
      "quantity": 3,
      "unitPrice": 55.00,
      "uom": "BX",
      "netAmount": 165.00,
      "taxRate": 9.00,
      "taxAmount": 14.85,
      "grossAmount": 179.85
    },
    {
      "productCode": "SKU-9013",
      "productName": "Vibration Damper Kit",
      "quantity": 2,
      "unitPrice": 330.00,
      "uom": "EA",
      "netAmount": 660.00,
      "taxRate": 9.00,
      "taxAmount": 59.40,
      "grossAmount": 719.40
    }
  ],
  "taxes": [
    { "name": "CA State",    "rate": 6.00, "baseAmount": 1250.00, "amount": 75.00 },
    { "name": "County Levy", "rate": 3.00, "baseAmount": 1250.00, "amount": 37.50 }
  ],
  "charges": [
    { "name": "Freight",           "amount": 45.00 },
    { "name": "Handling & pallet", "amount": 15.00 }
  ],
  "discounts": [
    {
      "description": "2/10 Net 30 early payment",
      "rate": 2.00,
      "amount": 25.00,
      "discountDueDate": "2026-07-25",
      "dueDateBasis": "2026-07-15",
      "dueDatePeriodValue": 10,
      "dueDatePeriodMeasure": "DAY"
    }
  ]
}
