> ## Documentation Index
> Fetch the complete documentation index at: https://docs.acturehub.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 查询收入流水



## OpenAPI

````yaml /specs/bp-agent.openapi.json get /api/open/finance/transactions
openapi: 3.1.0
info:
  title: BP-Agent Open API
  description: BP-Agent 对外 API：PDF 上传、异步诊断、结果下载及专项业务能力。所有接口使用租户 API Token 鉴权。
  contact:
    name: BP Agent 开发团队
    email: support@bpagent.com
  license:
    name: MIT License
    url: https://opensource.org/licenses/MIT
  version: 1.0.0
servers:
  - url: https://bptest.mapleai.cc
    description: 测试环境（仅 relay 上传）
  - url: https://project.mapleai.cc
    description: 生产环境（OSS；STS 直传需服务端启用）
security: []
paths:
  /api/open/finance/transactions:
    get:
      tags:
        - 对外收入 / Open Finance
      summary: 查询收入流水
      operationId: list_open_finance_transactions_api_open_finance_transactions_get
      parameters:
        - name: transaction_type
          in: query
          required: false
          schema:
            enum:
              - all
              - tech
              - ecosystem
            type: string
            default: all
            title: Transaction Type
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Page Size
        - name: start_date
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            title: Start Date
        - name: end_date
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            title: End Date
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_FinanceTransactionItem_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    PaginatedResponse_FinanceTransactionItem_:
      properties:
        code:
          type: integer
          title: Code
          description: 响应码，0表示成功，非0表示失败
          default: 0
        message:
          type: string
          title: Message
          description: 响应消息
          default: 操作成功
        data:
          items:
            $ref: '#/components/schemas/FinanceTransactionItem'
          type: array
          title: Data
          description: 当前页的数据列表
        timestamp:
          anyOf:
            - type: integer
            - type: 'null'
          title: Timestamp
          description: 响应时间戳（可选）
        total:
          type: integer
          minimum: 0
          title: Total
          description: 总记录数
        page:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Page
          description: 当前页码
        page_size:
          anyOf:
            - type: integer
              minimum: 1
            - type: 'null'
          title: Page Size
          description: 每页大小
        total_pages:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Total Pages
          description: 总页数
      type: object
      required:
        - data
        - total
      title: PaginatedResponse[FinanceTransactionItem]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FinanceTransactionItem:
      properties:
        id:
          type: string
          title: Id
        transaction_type:
          type: string
          enum:
            - tech
            - ecosystem
          title: Transaction Type
        project_name:
          type: string
          title: Project Name
        category:
          type: string
          title: Category
        detail:
          type: string
          title: Detail
        occurred_at:
          type: string
          format: date-time
          title: Occurred At
        amount:
          type: string
          title: Amount
        profit_amount:
          type: string
          title: Profit Amount
        status:
          type: string
          title: Status
        status_label:
          type: string
          title: Status Label
      type: object
      required:
        - id
        - transaction_type
        - project_name
        - category
        - detail
        - occurred_at
        - amount
        - profit_amount
        - status
        - status_label
      title: FinanceTransactionItem
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````