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

# Export general ledger

> Queue an XLSX general-ledger export for a ledger and inclusive period.



## OpenAPI

````yaml post /v1/accounting/general-ledger/export
openapi: 3.1.0
info:
  title: Hyperline API
  version: 0.0.0
servers:
  - url: https://api.hyperline.co
  - url: https://sandbox.api.hyperline.co
security: []
paths:
  /v1/accounting/general-ledger/export:
    post:
      tags:
        - Accounting > Reports
      summary: Export general ledger
      description: Queue an XLSX general-ledger export for a ledger and inclusive period.
      operationId: createGeneralLedgerExport
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                ledger_id:
                  type: string
                  description: Ledger identifier.
                period_from:
                  type: string
                  format: date
                  description: First inclusive reporting date.
                period_to:
                  type: string
                  format: date
                  description: Last inclusive reporting date.
                invoicing_entity_id:
                  type: string
                  description: Optional invoicing entity identifier.
                status:
                  type: string
                  enum:
                    - posted
                    - all
                  description: Journal-entry status scope; defaults to posted.
                include_reversed:
                  type: boolean
                  description: Whether reversed entries are included.
                account_ids:
                  type: array
                  items:
                    type: string
                  description: Optional ledger-account identifiers.
                account_types:
                  type: array
                  items:
                    type: string
                    enum:
                      - asset
                      - contra_asset
                      - liability
                      - contra_liability
                      - equity
                      - revenue
                      - contra_revenue
                      - expense
                  description: Optional ledger-account types.
              required:
                - ledger_id
                - period_from
                - period_to
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountingExport'
      security:
        - bearer: []
components:
  schemas:
    AccountingExport:
      type: object
      properties:
        id:
          type: string
          description: Unique export identifier.
        name:
          type: string
          enum:
            - revenue_recognition_waterfall
            - revenue_recognition_summary
            - income_statement
            - general_ledger
          description: Accounting export template.
        status:
          type: string
          enum:
            - pending
            - processing
            - done
            - error
          description: Current export processing status.
        file_type:
          type: string
          enum:
            - csv
            - xlsx
            - json
            - zip
            - pdf
            - doc
            - docx
            - xls
            - txt
            - jpeg
            - jpg
            - png
          description: Generated file type.
        created_at:
          type:
            - string
            - 'null'
          format: date
          description: Time at which the export was requested.
        updated_at:
          type:
            - string
            - 'null'
          format: date
          description: Time at which the export was last updated.
      required:
        - id
        - name
        - status
        - file_type
        - created_at
        - updated_at
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````