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

# Export Withdrawal Transactions

> Exports all matching withdrawal transactions for your account with fees and explorer links. Use startDate and endDate to filter by date range. Requires WITHDRAWS_READ.

<Info>
  **Note:** When using the production environment at [moonpay.hel.io](http://app.hel.io), set your API endpoint to `api.hel.io/v1` and generate API keys there. For the development environment, use `api.dev.hel.io/v1` and generate API keys from [moonpay.dev.hel.io](http://app.dev.hel.io).
</Info>

<Tip>
  This endpoint returns all matching records (no pagination cap). Prefer `startDate` and `endDate` for date filtering.
</Tip>


## OpenAPI

````yaml GET /v1/export/withdrawals
openapi: 3.0.0
info:
  title: Helio Open API
  description: |-
    API schema and definitions for Helio API. <br/> 
          The API is using two types of Authentication, for dashboard endpoints we use <b>JSON Web Token (JWT)</b> that is generated by self custodial wallet signing a message from API.</br> 
          We also support authentication with <b>API Key and Secret</b> which can be generated on <a href='https://hel.io'>Helio dashboard</a>.
  version: 1.0.0
  contact: {}
servers:
  - description: Helio API (Mainnet)
    url: https://api.hel.io
  - description: Helio API (Devnet)
    url: https://api.dev.hel.io
security: []
tags:
  - name: Webhooks
  - name: Exports
  - name: Currencies
    description: >-
      Supported currencies endpoint, includes fiat and digital assets
      </br><i>Authentication: </i><b>None</b>
externalDocs:
  description: Helio product documentation
  url: https://docs.hel.io/
paths:
  /v1/export/withdrawals:
    get:
      tags:
        - Exports
      summary: Export Withdrawal Transactions
      description: >-
        Exports all matching withdrawal transactions for your account (no
        pagination cap). Requires an API key with the `WITHDRAWS_READ`
        permission. Use `startDate` and `endDate` to filter by date range.
      operationId: ExportsController_getWithdrawalReportWithApiKey
      parameters:
        - name: apiKey
          in: query
          required: true
          description: >-
            Your API key, which can be generated from the Helio Dashboard
            settings page.
          schema:
            type: string
        - name: page
          in: query
          required: false
          schema:
            type: number
          description: Page number (1-based).
        - name: limit
          in: query
          required: false
          schema:
            type: number
            default: 20
            maximum: 100
          description: Page size. Defaults to 20, maximum 100.
        - name: lastItemId
          in: query
          required: false
          schema:
            type: string
          description: >-
            Cursor for pagination. Returns items with `_id` less than this
            value.
        - name: search
          in: query
          required: false
          schema:
            type: string
          description: >-
            Search by withdrawal detail ID, destination wallet (prefix), source
            token, or destination token.
        - name: sort
          in: query
          required: false
          schema:
            type: string
            default: createdAt
          description: Sort field. Defaults to `createdAt`.
        - name: order
          in: query
          required: false
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
          description: Sort order. Defaults to `desc`.
        - name: startDate
          in: query
          required: false
          schema:
            type: string
          description: ISO 8601 start of `createdAt` range (inclusive).
        - name: endDate
          in: query
          required: false
          schema:
            type: string
          description: ISO 8601 end of `createdAt` range (inclusive).
        - name: state
          in: query
          required: false
          schema:
            type: array
            items:
              $ref: '#/components/schemas/WithdrawalState'
          description: Filter by one or more withdrawal states.
          style: form
          explode: true
        - name: sourceChain
          in: query
          required: false
          schema:
            type: string
          description: Filter by source chain symbol (e.g. `SOL`, `ETH`).
        - name: destinationChain
          in: query
          required: false
          schema:
            type: string
          description: Filter by destination chain symbol.
        - name: withdrawalConfigId
          in: query
          required: false
          schema:
            type: string
          description: Filter by withdrawal config ID.
      responses:
        '200':
          description: Successful response with exported withdrawals.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ExportedWithdrawal'
              examples:
                exportedWithdrawalsList:
                  summary: Successful export response
                  value:
                    - id: 68129f9cc81cc9397e012b3a
                      state: COMPLETED
                      time: '2025-04-30T22:09:32.978Z'
                      sourceChain: SOL
                      sourceToken: USDC
                      sourceAmount: '1000000'
                      destinationChain: ETH
                      destinationToken: USDC
                      destinationAmount: '990000'
                      destinationWallet: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb0'
                      sourceTxHash: 5xRE1Yhfq8SPxom2U2EyFxVB27uPKVFUYWUoaZCz58VD
                      sourceTxExplorerLink: >-
                        https://solscan.io/tx/5xRE1Yhfq8SPxom2U2EyFxVB27uPKVFUYWUoaZCz58VD
                      destinationTxHash: 0xabc123...
                      destinationTxExplorerLink: https://etherscan.io/tx/0xabc123...
                      platformFee: '1000'
                      affiliateFee: '0'
                      decentBridgeFee: '5000'
                      networkGasSource: '5000'
                      networkGasDest: '21000'
                      transactionType: WITHDRAWAL
        '401':
          description: Provided API key has no access to the resource.
          content:
            application/json:
              examples:
                unauthorized:
                  summary: Invalid or missing API key
                  value:
                    message: Api key or token is invalid
                    code: 401
      security:
        - bearer: []
components:
  schemas:
    WithdrawalState:
      type: string
      enum:
        - QUOTED
        - SUBMITTING
        - SUBMITTED
        - BRIDGING
        - COMPLETED
        - FAILED
        - FAILED_EXPIRED
        - EXPIRED
        - REFUNDED_BY_PROVIDER
    ExportedWithdrawal:
      type: object
      properties:
        id:
          type: string
          description: Withdrawal detail ID.
        state:
          $ref: '#/components/schemas/WithdrawalState'
        time:
          type: string
          description: ISO 8601 created timestamp.
        sourceChain:
          type: string
        sourceToken:
          type: string
        sourceAmount:
          type: string
          description: Source amount in atomic units.
        destinationChain:
          type: string
        destinationToken:
          type: string
        destinationAmount:
          type: string
          description: Destination amount in atomic units.
        destinationWallet:
          type: string
        sourceTxHash:
          type: string
          nullable: true
        sourceTxExplorerLink:
          type: string
          nullable: true
        destinationTxHash:
          type: string
          nullable: true
        destinationTxExplorerLink:
          type: string
          nullable: true
        platformFee:
          type: string
        affiliateFee:
          type: string
        decentBridgeFee:
          type: string
        networkGasSource:
          type: string
        networkGasDest:
          type: string
          nullable: true
        transactionType:
          type: string
          enum:
            - WITHDRAWAL
          description: Always `WITHDRAWAL` for this export.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Authentication using JWT token

````