{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-account-schema.json",
  "title": "Account",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-accounts-api-openapi.yml#/components/schemas/Account",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the account",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Account name"
    },
    "companyName": {
      "type": "string",
      "description": "Company name"
    },
    "address1": {
      "type": "string",
      "description": "Primary address line"
    },
    "city": {
      "type": "string",
      "description": "City"
    },
    "province": {
      "type": "string",
      "description": "State or province"
    },
    "postalCode": {
      "type": "string",
      "description": "Postal or ZIP code"
    },
    "country": {
      "type": "string",
      "description": "Country"
    },
    "businessPhone": {
      "type": "string",
      "description": "Business phone number"
    },
    "fieldValues": {
      "type": "array",
      "description": "Custom field values",
      "items": {
        "$ref": "#/$defs/FieldValue"
      }
    },
    "createdAt": {
      "type": "string",
      "description": "Creation timestamp (Unix time)",
      "readOnly": true
    },
    "updatedAt": {
      "type": "string",
      "description": "Last update timestamp (Unix time)",
      "readOnly": true
    },
    "depth": {
      "type": "string",
      "description": "Level of detail returned",
      "readOnly": true
    },
    "type": {
      "type": "string",
      "description": "Asset type in Eloqua",
      "readOnly": true
    }
  },
  "$defs": {
    "FieldValue": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Field identifier",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Field type",
          "readOnly": true
        },
        "value": {
          "type": "string",
          "description": "Field value (dates are returned as Unix timestamps)"
        }
      }
    }
  }
}