{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/altoviz-com/json-schema/altoviz-com-overdue-customer-schema.json",
  "title": "OverdueCustomer",
  "description": "A customer with overdue échéances",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/altoviz-com-statistics-api-openapi.yml#/components/schemas/OverdueCustomer",
  "type": "object",
  "properties": {
    "customerId": {
      "type": "integer",
      "description": "Customer identifier",
      "format": "int32"
    },
    "customerName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Customer name at the time of the query"
    },
    "invoiceCount": {
      "type": "integer",
      "description": "How many échéances make up the amount",
      "format": "int32"
    },
    "lastReminderOn": {
      "type": [
        "string",
        "null"
      ],
      "description": "Most recent reminder sent to this customer, or null if never chased",
      "format": "date-time"
    },
    "oldestOverdueDays": {
      "type": "integer",
      "description": "Age in days of the oldest unpaid échéance",
      "format": "int32"
    },
    "overdueAmount": {
      "type": "number",
      "description": "Sum still due on échéances past their date",
      "format": "double"
    }
  },
  "additionalProperties": false
}