{
  "type": "object",
  "properties": {
    "invoice_number": { "type": "string", "description": "The invoice number" },
    "bill_to": { "type": "string", "description": "Who the invoice is billed to" },
    "site": { "type": "string", "description": "The site the hire is for" },
    "hire_period": { "type": "string", "description": "The hire period" },
    "currency": { "type": "string", "description": "The currency of the amounts" },
    "subtotal": { "type": "string", "description": "The subtotal amount before tax" },
    "tax": { "type": "string", "description": "The tax amount" },
    "total_due": { "type": "string", "description": "The total amount due on the invoice" },
    "line_items": {
      "type": "array",
      "description": "Every line item in the invoice table",
      "items": {
        "type": "object",
        "properties": {
          "description": { "type": "string", "description": "The description of the line item" },
          "quantity": { "type": "string", "description": "The quantity of the line item" },
          "unit_price": { "type": "string", "description": "The unit price of the line item" },
          "amount": { "type": "string", "description": "The amount of the line item" }
        }
      }
    }
  }
}
