{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canopyservicing-com/json-schema/canopyservicing-com-installment-loan-periodic-payment-due-response-schema.json",
  "title": "InstallmentLoanPeriodicPaymentDueResponse",
  "description": "Enhanced periodic payment due response for installment loans.",
  "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/InstallmentLoanPeriodicPaymentDueResponse",
  "properties": {
    "account_id": {
      "type": "string",
      "title": "Account Id",
      "description": "The account id.",
      "hidden": false
    },
    "installment_loan_id": {
      "type": "string",
      "title": "Installment Loan Id",
      "description": "The installment loan id.",
      "hidden": false
    },
    "effective_as_of": {
      "type": "string",
      "title": "Effective As Of",
      "description": "The effective as of date.",
      "hidden": false
    },
    "due_at": {
      "type": "string",
      "title": "Due At",
      "description": "The date of the next due payment, must be made before this date-time to be considered on time",
      "hidden": false
    },
    "total_periodic_payment_due_cents": {
      "type": "integer",
      "title": "Total Periodic Payment Due Cents",
      "description": "The total periodic payment due.",
      "hidden": false
    },
    "current_cycle_breakdown": {
      "$ref": "#/$defs/BalanceBreakdown",
      "description": "Breakdown of the current cycle amount by principal, interest, and fees.",
      "hidden": false
    },
    "past_due_breakdown": {
      "$ref": "#/$defs/BalanceBreakdown",
      "description": "Breakdown of the past due amount by principal, interest, and fees.",
      "hidden": false
    },
    "first_past_due_at": {
      "type": "string",
      "title": "First Past Due At",
      "description": "The first due date where the payment was not made and the obligation was not fulfilled."
    },
    "days_past_due": {
      "type": "integer",
      "title": "Days Past Due",
      "description": "Number of days past due from the first unpaid obligation.",
      "hidden": false
    },
    "is_estimated": {
      "type": "boolean",
      "title": "Is Estimated",
      "description": "Indicates whether this periodic payment amount is estimated by forecasting next statement's interest. If true, additional transactions may change the periodic payment due. Will always be false if `include_forecasted_interest` query parameter is false.",
      "hidden": false
    }
  },
  "type": "object",
  "required": [
    "account_id",
    "installment_loan_id",
    "effective_as_of",
    "due_at",
    "total_periodic_payment_due_cents",
    "current_cycle_breakdown",
    "past_due_breakdown",
    "first_past_due_at",
    "days_past_due",
    "is_estimated"
  ],
  "$defs": {
    "BalanceBreakdown": {
      "properties": {
        "principal_cents": {
          "type": "integer",
          "title": "Principal Cents",
          "description": "Principal amount in cents",
          "hidden": false
        },
        "interest_cents": {
          "type": "integer",
          "title": "Interest Cents",
          "description": "Interest amount in cents",
          "hidden": false
        },
        "fee_cents": {
          "type": "integer",
          "title": "Fee Cents",
          "description": "Fee amount in cents",
          "hidden": false
        },
        "total_cents": {
          "type": "integer",
          "title": "Total Cents",
          "description": "Total amount in cents",
          "hidden": false
        }
      },
      "type": "object",
      "required": [
        "principal_cents",
        "interest_cents",
        "fee_cents",
        "total_cents"
      ],
      "title": "BalanceBreakdown",
      "description": "Breakdown of balance amounts by type."
    }
  }
}