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

# Get Transaction

> Get transaction details and status

# Get Transaction

Retrieves full transaction details including deposit and payout status.

<Note>
  The `{transactionId}` path parameter accepts **either** the StablePay transaction ID **or** your own `partnerReference`. If a create call timed out and you never received the transaction ID, look the transaction up by the reference you sent.
</Note>

## Request

```bash theme={null}
curl https://api.stablepay.global/v2/transactions/txn_xyz789 \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Response

```json theme={null}
{
  "success": true,
  "data": {
    "transaction": {
      "id": "txn_xyz789",
      "status": "completed",
      "partnerReference": "order_456",
      "createdAt": "2025-06-15T10:30:00Z"
    },
    "deposit": {
      "network": "polygon",
      "asset": "USDC",
      "address": "0x742d35Cc...",
      "expectedAmount": "100",
      "receivedAmount": "100",
      "txHash": "0xabc123...",
      "status": "confirmed",
      "confirmations": 30,
      "confirmedAt": "2025-06-15T10:35:00Z"
    },
    "quote": {
      "exchangeRate": 84.50,
      "grossInr": "8450.00",
      "netInr": "8407.75"
    },
    "payout": {
      "rail": "imps",
      "amountInr": "8407.75",
      "status": "completed",
      "utr": "123456789012",
      "completedAt": "2025-06-15T10:40:00Z"
    }
  }
}
```
