{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canopyservicing-com/json-schema/canopyservicing-com-installment-loan-payment-schedule-dates-response-schema.json",
  "title": "InstallmentLoanPaymentScheduleDatesResponse",
  "description": "Response schema for a loan's payment schedule dates.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canopyservicing-com-installment-loans-api-openapi.yml#/components/schemas/InstallmentLoanPaymentScheduleDatesResponse",
  "properties": {
    "loan_id": {
      "type": "string",
      "title": "Loan Id",
      "description": "The Loan's ID."
    },
    "current_date": {
      "$ref": "#/$defs/application__schemas__installments__installment_loans__due_dates__PaymentScheduleDate",
      "description": "The loan's currently active payment schedule date."
    },
    "maturity_date": {
      "$ref": "#/$defs/application__schemas__installments__installment_loans__due_dates__PaymentScheduleDate",
      "description": "The loan's final payment schedule date."
    },
    "schedule_dates": {
      "items": {
        "$ref": "#/$defs/application__schemas__installments__installment_loans__due_dates__PaymentScheduleDate"
      },
      "type": "array",
      "title": "Schedule Dates",
      "description": "A list of payment schedule dates for the loan. Includes all payment schedule modifications, such as deferrals."
    },
    "post_maturity_schedule_dates": {
      "items": {
        "$ref": "#/$defs/application__schemas__installments__installment_loans__due_dates__PaymentScheduleDate"
      },
      "type": "array",
      "title": "Post Maturity Schedule Dates",
      "description": "A list of known post-maturity payment schedule dates for the loan."
    }
  },
  "type": "object",
  "required": [
    "loan_id",
    "current_date",
    "maturity_date",
    "schedule_dates",
    "post_maturity_schedule_dates"
  ],
  "$defs": {
    "application__schemas__installments__installment_loans__due_dates__PaymentScheduleDate": {
      "properties": {
        "due_date": {
          "type": "string",
          "title": "Due Date",
          "description": "The ISO-8601 compliant due date (exclusive) for a single payment schedule record."
        }
      },
      "type": "object",
      "required": [
        "due_date"
      ],
      "title": "PaymentScheduleDate",
      "description": "Contains information about a single payment schedule date"
    }
  }
}