{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canopyservicing-com/json-schema/canopyservicing-com-liquidate-collateral-response-schema.json",
  "title": "LiquidateCollateralResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canopyservicing-com-collaterals-api-openapi.yml#/components/schemas/LiquidateCollateralResponse",
  "properties": {
    "collateral_id": {
      "type": "string",
      "title": "Collateral Id",
      "description": "The ID of the liquidated collateral.",
      "hidden": false
    },
    "collateral_status": {
      "$ref": "#/$defs/CollateralStatus",
      "description": "The status of the collateral after liquidation.",
      "hidden": false
    },
    "liquidation_amount_cents": {
      "type": "integer",
      "title": "Liquidation Amount Cents",
      "description": "The amount applied to the outstanding balance.",
      "hidden": false
    },
    "surplus_amount_cents": {
      "type": "integer",
      "title": "Surplus Amount Cents",
      "description": "The surplus amount after liquidation.",
      "hidden": false
    },
    "deficiency_amount_cents": {
      "type": "integer",
      "title": "Deficiency Amount Cents",
      "description": "The remaining balance after liquidation.",
      "hidden": false
    }
  },
  "type": "object",
  "required": [
    "collateral_id",
    "collateral_status",
    "liquidation_amount_cents",
    "surplus_amount_cents",
    "deficiency_amount_cents"
  ],
  "$defs": {
    "CollateralStatus": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "RELEASED",
        "LIQUIDATED",
        "SURPLUS_REFUNDED",
        "RETURNED"
      ],
      "title": "CollateralStatus"
    }
  }
}