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

# Get Transaction

> Retrieve full details for a specific transaction.



## OpenAPI

````yaml GET /transactions/{transactionId}
openapi: 3.1.0
info:
  title: Zet API
  description: >
    The Zet API enables businesses to integrate smart on/off ramp, token swap,
    and cross-chain transfer capabilities into their applications.


    Built on ERC-4337 smart accounts with gas-sponsored transactions, Zet
    handles the complexity of blockchain interactions so you can focus on your
    product.


    ## Base URL


    ```

    https://api.zet.money/v1

    ```


    ## Authentication


    All requests must include your API key in the `x-api-key` header. Contact
    [zetdotmoney@gmail.com](mailto:zetdotmoney@gmail.com) to obtain your API
    keys.


    ## Rate Limits


    - **60 requests per minute** per API key (default)

    - Rate limit headers are included in every response

    - Contact us for higher limits
  version: 1.0.0
  contact:
    name: Zet Support
    url: https://zet.money/support
    email: support@zet.money
  license:
    name: Proprietary
servers:
  - url: https://api.zet.money/v1
    description: Production
  - url: https://api-staging.zet.money/v1
    description: Staging
security:
  - apiKey: []
tags:
  - name: Wallets
    description: Create and manage smart wallets for your users
  - name: On-Ramp
    description: Buy crypto with Nigerian Naira (NGN)
  - name: Off-Ramp
    description: Sell crypto for Nigerian Naira (NGN)
  - name: Swap
    description: Swap tokens on the same chain or across chains
  - name: Cross-Chain Transfer
    description: Transfer tokens across different blockchains
  - name: Webhooks
    description: Register webhook URLs to receive async event notifications
  - name: Transactions
    description: Query transaction history and details
paths:
  /transactions/{transactionId}:
    get:
      tags:
        - Transactions
      summary: Get transaction details
      description: Retrieve full details for a specific transaction.
      operationId: getTransaction
      parameters:
        - name: transactionId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Transaction details.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/Transaction'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Transaction:
      type: object
      properties:
        id:
          type: string
          example: txn_01H8X3...
        type:
          type: string
          enum:
            - onramp
            - offramp
            - swap
            - transfer
        status:
          $ref: '#/components/schemas/TransactionStatus'
        chain:
          type: string
          example: base
        amount:
          type: string
          example: '100'
        tokenSymbol:
          type: string
          example: USDC
        transactionHash:
          type: string
          example: 0xabc...
        reference:
          type: string
          example: order_12345
        walletId:
          type: string
          example: wal_01H8X3...
        fees:
          type: object
          properties:
            platformFee:
              type: string
            providerFee:
              type: string
            totalFee:
              type: string
        ramp:
          type: object
          description: Present for on-ramp and off-ramp transactions.
          properties:
            fiatAmount:
              type: string
              example: '150000'
            fiatCurrency:
              type: string
              example: NGN
            bankAccount:
              type: object
              properties:
                bankName:
                  type: string
                accountNumber:
                  type: string
                accountName:
                  type: string
        swap:
          type: object
          description: Present for swap transactions.
          properties:
            fromToken:
              type: string
              example: USDC
            toToken:
              type: string
              example: ETH
            fromAmount:
              type: string
              example: '100'
            toAmount:
              type: string
              example: '0.0285'
        transfer:
          type: object
          description: Present for cross-chain transfer transactions.
          properties:
            fromChain:
              type: string
              example: base
            toChain:
              type: string
              example: ethereum
            destinationAddress:
              type: string
              example: 0xdef...
        errorMessage:
          type: string
          description: Present when status is `failed`.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    TransactionStatus:
      type: string
      enum:
        - pending
        - completed
        - failed
    Error:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: INVALID_REQUEST
            message:
              type: string
              example: The 'amount' field is required.
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error:
              code: UNAUTHORIZED
              message: Invalid API key.
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            success: false
            error:
              code: NOT_FOUND
              message: Transaction not found.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Zet API key. Contact zetdotmoney@gmail.com to obtain your keys.

````