{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/monite/json-schema/monite-accounting-connection-list-schema.json",
  "title": "AccountingConnectionList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/monite-accounting-connections-api-openapi.yml#/components/schemas/AccountingConnectionList",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/AccountingConnectionResponse"
      },
      "type": "array"
    }
  },
  "type": "object",
  "required": [
    "data"
  ],
  "$defs": {
    "AccountingConnectionResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "business_info": {
          "$ref": "#/$defs/BusinessInfoSchema"
        },
        "connection_url": {
          "type": "string"
        },
        "errors": {
          "items": {
            "$ref": "#/$defs/ErrorSchema"
          },
          "type": "array"
        },
        "last_pull": {
          "type": "string",
          "format": "date-time"
        },
        "platform": {
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/ConnectionStatus"
        }
      },
      "type": "object",
      "required": [
        "id",
        "created_at",
        "updated_at",
        "connection_url"
      ]
    },
    "BusinessInfoSchema": {
      "properties": {
        "base_currency": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "legal_name": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "ConnectionStatus": {
      "type": "string",
      "enum": [
        "connected",
        "disconnected",
        "deauthorized",
        "pending_auth"
      ]
    },
    "ErrorSchema": {
      "properties": {
        "message": {
          "type": "string"
        }
      },
      "type": "object",
      "required": [
        "message"
      ]
    }
  }
}