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

# Transaction Details

> GET /api/transaction/{ref}

Returns the full current state of a single transaction. This is the endpoint to call when [polling for payment status](https://docs.sayabelipay.com/guides/payment-status.md).

## Request

```bash theme={null}
curl https://sayabelipay.com/api/transaction/9B8FEEB60F9E3 \
  -u "YOUR_CLIENT_ID:YOUR_CLIENT_SECRET"
```

| Path parameter | Notes |
| - | - |
| `ref` | The `transaction_id` value from [create payment](https://docs.sayabelipay.com/api-reference/create-payment.md)'s redirect, or from [list transactions](https://docs.sayabelipay.com/api-reference/list-transactions.md). |

## Response

```json theme={null}
{
  "status": 200,
  "data": {
    "transaction_id": "9B8FEEB60F9E3",
    "order_no": "ORDER-1234",
    "product_description": "Order 1234",
    "name": "Jane Tan",
    "phone_number": "60123456789",
    "email_address": "jane@example.com",
    "payment_use": "FPX",
    "transaction_amount": "20.00",
    "transaction_date": "2026-09-21 12:49:05",
    "status": "Success"
  }
}
```

`status` is what to check — see [Getting Payment Status](https://docs.sayabelipay.com/guides/payment-status.md) for which values mean the payment actually succeeded.

`transaction_date` is in Malaysia time (UTC+8), format `YYYY-MM-DD HH:MM:SS`.

### Not found

A `ref` that doesn't match any of your transactions returns HTTP `404`:

```json theme={null}
{ "success": false, "message": "Transaction not found" }
```

This endpoint only ever returns your own account's transactions, never another merchant's. In sandbox it looks up your sandbox transactions; in live, your live ones.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.