{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/switchboardfinance-com-au/json-schema/switchboardfinance-com-au-enquiry-schema.json",
  "title": "Enquiry",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/switchboardfinance-com-au-openapi.json#/components/schemas/Enquiry",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name",
    "phone",
    "email",
    "scenario",
    "consent"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "phone": {
      "type": "string",
      "description": "Australian number"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "scenario": {
      "type": "string",
      "minLength": 15
    },
    "consent": {
      "type": "boolean",
      "description": "True only if the borrower agreed: \"I agree to Switchboard Finance contacting me about this enquiry by phone, SMS and email, including follow-up emails I can unsubscribe from at any time.\""
    },
    "consent_method": {
      "type": "string",
      "enum": [
        "user_confirmed_in_chat",
        "user_ticked_checkbox_in_app",
        "user_submitted_form"
      ]
    },
    "notice_shown": {
      "type": "boolean",
      "description": "The collection notice was shown to the borrower"
    },
    "business_purpose": {
      "type": "boolean"
    },
    "business_name": {
      "type": "string"
    },
    "abn": {
      "type": "string"
    },
    "amount": {
      "type": "number"
    },
    "agent_name": {
      "type": "string",
      "description": "Assistant submitting on the borrower's behalf"
    },
    "idempotency_key": {
      "type": "string"
    }
  }
}