---
title: "Get transaction details"
method: GET
path: "/transaction"
tags: ["Transaction"]
---

# Get transaction details

`GET /transaction`

Returns the transaction details for a given transaction ID or transactions associated with an order

## Query parameters

- `id` string, string
- `orderId` string, string
- `hash` string, string

## Response `200`

Transaction response

- object
  - `status` string, string
  - `data` TransactionResponse
    - `id` string, uuid
    - `ref` string
    - `hash` string
    - `amount` number
    - `fees` number
    - `currency` 'NGN' | 'KES' | 'BTC' | 'ZAR'
    - `type` 'WITHDRAWAL' | 'DEPOSIT'
    - `status` 'SUCCESS' | 'PENDING' | 'FAILED'
    - `autopayout` boolean
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `metadata` object
      - `id` string, uuid
      - `merchantId` string, uuid
      - `merchantName` string
      - `bankName` string
      - `bankAccountNumber` string
      - `reference` string
      - `customerInternalFee` number
      - `order` object
        - `id` string
        - `settledQuoteId` string, uuid
        - `amount` number
        - `currency` 'NGN' | 'KES' | 'ZAR'
        - `paymentMethod` 'LIGHTNING'
        - `status` 'PAID' | 'PENDING' | 'EXPIRED' | 'FAILED'
        - `quote` object
          - `id` string, uuid
          - `exchangeRate` number
          - `usdToTargetCurrencyRate` number
          - `paymentBtcDetail` string
          - `paymentMethod` 'LIGHTNING'
          - `totalAmount` number
          - `equivalentAmount` number
          - `expiry` string, date-time
          - `sourceCurrency` 'BTCSAT'
          - `targetCurrency` 'NGNKOBO' | 'KESCENT' | 'ZARCENT'
          - `paymentCurrency` 'NGNKOBO' | 'KESCENT' | 'ZARCENT'
          - `customerInternalFee` number

## Other responses

- `400` — Unexpected error

---

[API](https://skmtc.net/stealthmoney/apis/mavapay-api.md) · [All operations](https://skmtc.net/stealthmoney/apis/mavapay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stealthmoney/mavapay-api/revisions/94cb0ddffad0/schema)
