{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/methodfi/main/json-schema/methodfi-managed-account-transaction-list-response-schema.json",
  "title": "ManagedAccountTransactionListResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/methodfi-managed-accounts-api-openapi.yml#/components/schemas/ManagedAccountTransactionListResponse",
  "allOf": [
    {
      "$ref": "#/$defs/ListEnvelope"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ManagedAccountTransaction"
          }
        }
      }
    }
  ],
  "$defs": {
    "ListEnvelope": {
      "type": "object",
      "description": "Standard envelope for successful responses that return a list payload.",
      "required": [
        "success",
        "data",
        "message"
      ],
      "properties": {
        "success": {
          "type": "boolean",
          "description": "Always `true` for successful responses."
        },
        "data": {
          "description": "Operation-specific list payload."
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "ManagedAccountTransaction": {
      "type": "object",
      "description": "A transaction on a managed account.",
      "required": [
        "id",
        "description",
        "date",
        "amount"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the transaction.",
          "pattern": "^macc_txn_\\w+$"
        },
        "description": {
          "type": "string",
          "description": "Human-readable description of the transaction."
        },
        "date": {
          "type": "string",
          "format": "date",
          "description": "Date the transaction occurred (YYYY-MM-DD)."
        },
        "amount": {
          "type": "number",
          "description": "Transaction amount in cents. Positive for inbound/credit transactions, negative for outbound/debit transactions."
        }
      }
    }
  }
}