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

# Get Transaction

> Retrieves details of a specific wallet transaction by ID.

Retrieve the full details of a specific wallet transaction by its ID.

## Example Request

```bash theme={null}
curl -X GET "https://api.rolla.xyz/api/v1/external/wallet/transaction/a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
  -H "X-API-Key: your_api_key_here"
```

## Example Response

```json theme={null}
{
  "status": 200,
  "success": true,
  "message": "Transaction retrieved successfully",
  "data": {
    "transaction": {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "transaction_type": "withdrawal",
      "status": "completed",
      "description": "Vendor payment",
      "external_reference": "ref-abc123",
      "fee_amount": "53.00",
      "source_amount": "500000.00",
      "destination_amount": null,
      "source_currency": "NGN",
      "destination_currency": null,
      "exchange_rate": null,
      "created_at": "2024-01-15T10:30:00.000Z",
      "updated_at": "2024-01-15T10:30:45.000Z",
      "beneficiary": {
        "account_name": "JOHN DOE",
        "bank_name": "Access Bank",
        "bank_code": "000014",
        "account_number": "0123456789"
      }
    }
  }
}
```

<Note>
  The `transactionId` must be a valid UUID. You can obtain transaction IDs from the `/wallet/transactions` list endpoint.
</Note>


## OpenAPI

````yaml GET /wallet/transaction/{transactionId}
openapi: 3.1.0
info:
  title: Rolla Developer API
  description: >-
    API for programmatic transaction management on the Rolla platform. Monetary
    `amount` fields use the smallest unit of the referenced currency unless an
    endpoint says otherwise (e.g. NGN = kobo, USD = cents, where **100 cents =
    USD 1.00**).
  version: 1.0.0
servers:
  - url: https://api.rolla.xyz/api/v1/external
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /wallet/transaction/{transactionId}:
    get:
      summary: Get Transaction
      description: Retrieves details of a specific wallet transaction by ID.
      operationId: getWalletTransaction
      parameters:
        - name: transactionId
          in: path
          required: true
          description: Transaction UUID
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Transaction retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Transaction retrieved successfully
                  id:
                    type: string
                    format: uuid
                  transaction_type:
                    type: string
                    enum:
                      - deposit
                      - withdrawal
                      - swap
                  status:
                    type: string
                    enum:
                      - pending
                      - completed
                      - failed
                      - rejected
                      - sent
                      - processing
                  description:
                    type: string
                  external_reference:
                    type: string
                    nullable: true
                  fee_amount:
                    type: number
                  source_amount:
                    type: number
                  destination_amount:
                    type: number
                  source_currency:
                    type: string
                  destination_currency:
                    type: string
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Transaction not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your Rolla API key

````