{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-my.innago.com/openapi/schemas/invoice",
  "title": "Invoice",
  "description": "An invoice for a tenant on a lease within the Innago platform",
  "type": "object",
  "properties": {
    "invoiceUid": {
      "type": "string",
      "format": "uuid",
      "description": "Unique invoice identifier"
    },
    "invoiceNumber": {
      "type": "integer",
      "format": "int64",
      "description": "Numeric invoice identifier"
    },
    "invoiceDueDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date the invoice is due"
    },
    "invoiceStatus": {
      "type": "string",
      "enum": ["Pending", "Fully Paid", "Partially Paid"],
      "description": "Current payment status of the invoice"
    },
    "amount": {
      "type": "number",
      "format": "double",
      "description": "Invoice total amount"
    },
    "entityType": {
      "type": "string",
      "description": "Associated entity type"
    }
  },
  "required": ["invoiceUid", "amount", "invoiceDueDate"]
}
