Fetch Transaction

Retrieve a transaction including access_code, callback_url, and expiry.

GET/api/v1/transaction/:reference

Requires Authorization: Bearer sk_live_…. Unlike Verify, this endpoint does not auto-expire pending charges; it returns the stored record as-is.

Path parameters

ParameterTypeDescription
referencerequiredstringTransaction reference, e.g. wa-6281126272.

Sample request

curl https://waaguan.com/api/v1/transaction/wa-6281126272 \
  -H "Authorization: Bearer sk_live_YOUR_SECRET_KEY"

Sample response

{
  "status": true,
  "data": {
    "id": "3f2a1b4c-5d6e-7f80-91a2-b3c4d5e6f708",
    "status": "pending",
    "reference": "wa-6281126272",
    "access_code": "AbCdEfGhIjKlMnOp",
    "amount": 50,
    "amount_received": 0,
    "currency": "GHS",
    "paid_at": null,
    "customer_email": "customer@email.com",
    "customer_name": "AMA MENSAH",
    "callback_url": "https://yoursite.com/payment/callback",
    "metadata": { "order_id": "1001" },
    "created_at": "2026-07-19T12:00:00.000Z",
    "expires_at": "2026-07-19T12:30:00.000Z"
  }
}