{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bond/main/json-schema/bond-credit-application-write-schema.json",
  "title": "credit-application-write",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bond-credit-openapi.yml#/components/schemas/credit-application-write",
  "type": "object",
  "properties": {
    "program_id": {
      "type": "string",
      "minLength": 1
    },
    "applicant": {
      "type": "object",
      "properties": {
        "customer_id": {
          "type": "string",
          "minLength": 1
        },
        "employment_status": {
          "type": "string",
          "minLength": 1,
          "enum": [
            "employed",
            "self_employed",
            "unemployed",
            "retired",
            "student",
            "other"
          ]
        },
        "total_annual_income": {
          "type": "integer",
          "description": "Total annual income in cents"
        },
        "monthly_housing_payment": {
          "type": "integer",
          "description": "Monthly housing payment in cents"
        }
      },
      "required": [
        "customer_id",
        "total_annual_income",
        "monthly_housing_payment"
      ]
    }
  },
  "required": [
    "program_id"
  ]
}