> ## 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.

# Get a Withdrawal Transaction

> Returns a single withdrawal transaction by ID for the authenticated merchant account. 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>


## OpenAPI

````yaml GET /v1/withdrawal-transactions/{id}/api-key
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/withdrawal-transactions/{id}/api-key:
    get:
      tags:
        - Withdrawals
      summary: Get a Withdrawal Transaction
      description: >-
        Returns a single withdrawal transaction by ID for the authenticated
        merchant account. Requires an API key with the `WITHDRAWS_READ`
        permission.
      operationId: WithdrawalTransactionsController_getByIdWithApiKey
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Withdrawal detail ID.
        - name: apiKey
          in: query
          required: true
          description: >-
            Your API key, which can be generated from the Helio Dashboard
            settings page.
          schema:
            type: string
      responses:
        '200':
          description: Withdrawal transaction retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WithdrawalDetailEnriched'
              examples:
                detail:
                  summary: Successful detail response
                  value:
                    withdrawalDetailId: 68129f9cc81cc9397e012b3a
                    state: COMPLETED
                    sourceChain: SOL
                    sourceToken: USDC
                    sourceAmount: '1000000'
                    destinationChain: ETH
                    destinationToken: USDC
                    destinationAmount: '990000'
                    destinationWallet: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb0'
                    txHash: 0xabc123...
                    broadcastAck: acknowledged
                    errorReason: null
                    customerId: cust_123
                    createdAt: '2025-04-30T22:09:32.978Z'
                    updatedAt: '2025-04-30T22:10:01.120Z'
        '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
        '404':
          description: Withdrawal transaction not found.
      security:
        - bearer: []
components:
  schemas:
    WithdrawalDetailEnriched:
      type: object
      properties:
        withdrawalDetailId:
          type: string
          description: Withdrawal detail ID.
        state:
          $ref: '#/components/schemas/WithdrawalState'
        sourceChain:
          type: string
          description: Source chain symbol.
        sourceToken:
          type: string
          description: Source token symbol.
        sourceAmount:
          type: string
          description: Source amount in atomic units.
        destinationChain:
          type: string
          description: Destination chain symbol.
        destinationToken:
          type: string
          description: Destination token symbol.
        destinationAmount:
          type: string
          description: Destination amount in atomic units.
        destinationWallet:
          type: string
          description: Destination wallet address.
        txHash:
          type: string
          nullable: true
          description: Most recent transaction hash associated with the withdrawal.
        broadcastAck:
          $ref: '#/components/schemas/BroadcastAck'
        errorReason:
          type: string
          nullable: true
          description: Human-readable error when the withdrawal failed.
        customerId:
          type: string
          nullable: true
          description: >-
            Merchant-defined customer identifier set at prepare time, or null
            when omitted.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    WithdrawalState:
      type: string
      enum:
        - QUOTED
        - SUBMITTING
        - SUBMITTED
        - BRIDGING
        - COMPLETED
        - FAILED
        - FAILED_EXPIRED
        - EXPIRED
        - REFUNDED_BY_PROVIDER
    BroadcastAck:
      type: string
      nullable: true
      enum:
        - acknowledged
        - unacknowledged
        - rejected
      description: >-
        `acknowledged` = confirmed; `unacknowledged` = sent, keep polling;
        `rejected` = terminal failure.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Authentication using JWT token

````