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

# Get export



## OpenAPI

````yaml /openapi/finances.json get /v1/finances/transactions/export/
openapi: 3.0.3
info:
  title: Yume API — Транзакции
  version: 1.0.0
  description: Финансовые транзакции и обработка платежей.
servers:
  - url: https://api.yume.cloud
    description: Production
  - url: https://api.stage.yume.cloud
    description: Stage
security: []
paths:
  /v1/finances/transactions/export/:
    get:
      tags:
        - transactions
      summary: Get export
      operationId: transactions_export_retrieve
      parameters:
        - in: query
          name: format
          schema:
            type: string
            enum:
              - json
              - xlsx
        - $ref: '#/components/parameters/TenantId'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionExport'
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                $ref: '#/components/schemas/TransactionExport'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    TransactionExport:
      type: object
      properties:
        overview:
          $ref: '#/components/schemas/TransactionExportOverview'
        start_balance:
          type: string
          format: decimal
          pattern: ^-?\d{0,16}(?:\.\d{0,2})?$
        end_balance:
          type: string
          format: decimal
          pattern: ^-?\d{0,16}(?:\.\d{0,2})?$
        transactions:
          type: array
          items:
            $ref: '#/components/schemas/TransactionExportRow'
      required:
        - end_balance
        - overview
        - start_balance
        - transactions
    TransactionExportOverview:
      type: object
      properties:
        start_at:
          type: string
          format: date
          nullable: true
        end_at:
          type: string
          format: date
          nullable: true
        account:
          allOf:
            - $ref: '#/components/schemas/TransactionExportAccount'
          nullable: true
        count:
          type: integer
        income:
          type: string
          format: decimal
          pattern: ^-?\d{0,16}(?:\.\d{0,2})?$
        expense:
          type: string
          format: decimal
          pattern: ^-?\d{0,16}(?:\.\d{0,2})?$
        exchange:
          type: string
          format: decimal
          pattern: ^-?\d{0,16}(?:\.\d{0,2})?$
        net:
          type: string
          format: decimal
          pattern: ^-?\d{0,16}(?:\.\d{0,2})?$
      required:
        - account
        - count
        - end_at
        - exchange
        - expense
        - income
        - net
        - start_at
    TransactionExportRow:
      type: object
      properties:
        id:
          type: integer
        created_at:
          type: string
          format: date-time
        method:
          $ref: '#/components/schemas/MethodD33Enum'
        type:
          type: integer
          nullable: true
        category:
          type: integer
          nullable: true
        account:
          allOf:
            - $ref: '#/components/schemas/TransactionExportAccount'
          nullable: true
        amount:
          type: string
          format: decimal
          pattern: ^-?\d{0,16}(?:\.\d{0,2})?$
        balance:
          type: string
          format: decimal
          pattern: ^-?\d{0,16}(?:\.\d{0,2})?$
        comment:
          type: string
          nullable: true
        exchange:
          allOf:
            - $ref: '#/components/schemas/TransactionExportExchange'
          nullable: true
      required:
        - account
        - amount
        - balance
        - category
        - comment
        - created_at
        - exchange
        - id
        - method
        - type
    TransactionExportAccount:
      type: object
      properties:
        id:
          type: integer
          nullable: true
        name:
          type: string
          nullable: true
      required:
        - id
        - name
    MethodD33Enum:
      enum:
        - 0
        - 1
      type: integer
      description: |-
        * `0` - Приход
        * `1` - Расход
    TransactionExportExchange:
      type: object
      properties:
        direction:
          $ref: '#/components/schemas/DirectionEnum'
        from_account:
          allOf:
            - $ref: '#/components/schemas/TransactionExportAccount'
          nullable: true
        to_account:
          allOf:
            - $ref: '#/components/schemas/TransactionExportAccount'
          nullable: true
      required:
        - direction
        - from_account
        - to_account
    DirectionEnum:
      enum:
        - in
        - out
      type: string
      description: |-
        * `in` - in
        * `out` - out
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````