{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/envelopebudget-com/json-schema/envelopebudget-com-transaction-response-schema.json",
  "title": "TransactionResponse",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/envelopebudget-com-openapi.json#/components/schemas/TransactionResponse",
  "required": [
    "transactions",
    "total",
    "pages"
  ],
  "type": "object",
  "properties": {
    "transactions": {
      "title": "Transactions",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Transaction"
      }
    },
    "total": {
      "title": "Total",
      "type": "integer"
    },
    "pages": {
      "title": "Pages",
      "type": "integer"
    }
  },
  "$defs": {
    "Transaction": {
      "title": "Transaction",
      "required": [
        "id",
        "account",
        "account_name",
        "date",
        "amount",
        "payee",
        "cleared"
      ],
      "type": "object",
      "properties": {
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "created_at": {
          "title": "Created At",
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "title": "Updated At",
          "type": "string",
          "format": "date-time"
        },
        "account": {
          "title": "Account",
          "type": "integer"
        },
        "account_name": {
          "title": "Account Name",
          "type": "string"
        },
        "date": {
          "title": "Date",
          "type": "string",
          "format": "date"
        },
        "amount": {
          "title": "Amount",
          "type": "number"
        },
        "payee": {
          "title": "Payee",
          "type": "string"
        },
        "number": {
          "title": "Number",
          "type": "string"
        },
        "memo": {
          "title": "Memo",
          "type": "string",
          "default": ""
        },
        "cleared": {
          "title": "Cleared",
          "type": "boolean"
        },
        "uid": {
          "title": "Uid",
          "type": "string"
        },
        "envelope": {
          "title": "Envelope",
          "type": "integer"
        }
      }
    }
  }
}