{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/casaintelligence-com-au/json-schema/casaintelligence-com-au-account-in-schema.json",
  "title": "AccountIn",
  "description": "What an accounts department asks for before it will pay an invoice (the four questions answered by Ray White\nIpswich on 15 Sep 2026): legal entity, ABN, billing address, accounts email, and whether a purchase order is needed.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/casaintelligence-com-au-desk-api-openapi.yml#/components/schemas/AccountIn",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 200,
      "title": "Name"
    },
    "legal_name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 2,
      "title": "Legal Name"
    },
    "contact_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Contact Name"
    },
    "billing_email": {
      "type": "string",
      "maxLength": 320,
      "title": "Billing Email"
    },
    "abn": {
      "type": "string",
      "maxLength": 20,
      "minLength": 11,
      "title": "Abn"
    },
    "address": {
      "type": "string",
      "maxLength": 400,
      "minLength": 5,
      "title": "Address"
    },
    "po_required": {
      "type": "boolean",
      "title": "Po Required",
      "default": false
    },
    "po_reference": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Po Reference"
    },
    "rate_aud": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rate Aud"
    },
    "notes": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notes"
    },
    "monthly_cap": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 500.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Monthly Cap"
    },
    "issue_link": {
      "type": "boolean",
      "title": "Issue Link",
      "default": true
    }
  },
  "type": "object",
  "required": [
    "name",
    "legal_name",
    "billing_email",
    "abn",
    "address"
  ]
}