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

# Get Specific Transaction

> Returns details of a specific transaction by externalId or internalId



## OpenAPI

````yaml /APIs/crypto-cash-openapi-en.json post /merchant/api/v1/balance/payments/retrieve/
openapi: 3.1.0
info:
  title: CryptoCash Merchant API
  description: >-
    API for working with cryptocurrency payments. All requests require signature
    authentication. Request body contains: data (JSON object in base64) and
    signature (SHA256(SECRET_KEY + data) in base64).
  version: 1.0.0
servers:
  - url: https://api.crypto-cash.world
    description: Production server
security: []
tags:
  - name: Balance
    description: Balance operations
  - name: Actions
    description: 'Actions: buy, sell, refund'
  - name: Transactions
    description: Transaction management
  - name: Reference
    description: Reference information
externalDocs:
  description: External currency rates
  url: https://rates.crypto-cash.world/api/v1/market/rates/export/json
paths:
  /merchant/api/v1/balance/payments/retrieve/:
    post:
      tags:
        - Transactions
      summary: Get Specific Transaction
      description: Returns details of a specific transaction by externalId or internalId
      operationId: getPayment
      requestBody:
        required: true
        description: |-
          Data parameters:
          - **publicKey** (required)
          - **externalId** (optional if internalId)
          - **internalId** (optional if externalId)
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignedRequest'
        x-data-schema:
          $ref: '#/components/schemas/PaymentRetrieveRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 200
                  data:
                    type: object
                    properties:
                      item:
                        $ref: '#/components/schemas/Transaction'
        '400':
          description: Request error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SignedRequest:
      type: object
      required:
        - data
        - signature
      properties:
        data:
          type: string
          description: JSON object with request parameters encoded in base64
        signature:
          type: string
          description: Signature SHA256(SECRET_KEY + data) encoded in base64
    Transaction:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Internal transaction ID
        pair:
          type: string
          description: Currency pair
          example: USDT/USDT
        usdtTotal:
          type: string
          description: Total amount in USDT
        network:
          type: string
          description: Network
        hash:
          type: string
          description: Transaction hash
        amount:
          type: string
          description: Amount
        commission:
          type: string
          description: Commission
        address:
          type: string
          description: Address
        exchangeRate:
          type: string
          description: Exchange rate
        networkFee:
          type: string
          description: Network fee
        externalId:
          type: string
          description: External ID
        transactionType:
          type: string
          enum:
            - Buy
            - Sale
          description: Transaction type
        createdAt:
          type: string
          format: date-time
          description: Creation date
        updatedAt:
          type: string
          format: date-time
          description: Update date
        status:
          $ref: '#/components/schemas/TransactionStatus'
        balanceEntries:
          type: array
          items:
            $ref: '#/components/schemas/BalanceEntry'
    Error:
      type: object
      properties:
        errors:
          type: array
          items:
            type: integer
          description: List of error codes
      example:
        errors:
          - 1000
    TransactionStatus:
      type: string
      enum:
        - Queued
        - New
        - Waiting
        - Paid
        - Underpaid
        - Overpaid
        - Canceled
        - AMLFrozen
        - CurrencyMismatch
        - CanceledButPaid
        - CanceledButOverpaid
        - CanceledButUnderpaid
      description: Transaction status
    BalanceEntry:
      type: object
      properties:
        id:
          type: string
          format: uuid
        updatedAt:
          type: string
          format: date-time
        currency:
          type: string
        requestedCurrency:
          type: string
        exchangeRate:
          type: string
        requestedAmount:
          type: string
        feeAmount:
          type: string
        amount:
          type: string
        hash:
          type: string
        direction:
          type: string
          enum:
            - IN
            - OUT

````