logoAccess

Transactions

View and filter transaction history.

Transactions are created by the verification and checkout flows. The transactions API is read-only transactions are created automatically when payments are verified or checkout sessions complete.

List Transactions

List transactions
curl "https://api.tryaccess.xyz/api/v1/transactions?status=success&limit=20" \
  -H "x-api-key: sk_..."

Query Parameters

ParameterDescription
cursorPagination cursor from the previous response's next_cursor
limitResults per page (1–100, default 20)
statusFilter by status: IDLE, PROCESSING, SUCCESS, FAILED, CANCELED, NOT_FOUND, REQUIRE_INPUT
payment_methodFilter by PSP: CBE, Awash, Dashen, Telebirr, Abyssinia, Mpesa, CBEBirr, Siinqee, Wegagen, AmharaBank, Zemen, EbirrKaafi, EbirrCoopay
customer_idFilter by customer ID
created_afterISO 8601 datetime only return transactions created after this timestamp

Response

{
  "data": [
    {
      "id": "tran_01HXYZ...",
      "amount": 15000,
      "currency": "ETB",
      "status": "success",
      "tx_ref": "FT250123456789",
      "payment_method": "CBE",
      "receipt_image_url": null,
      "created_at": "2025-01-15T10:30:00.000Z",
      "updated_at": "2025-01-15T10:30:00.000Z",
      "customer": {
        "id": "cus_01HXYZ...",
        "name": "Abebe Kebede",
        "email": "abebe@example.com",
        "phone_number": "+251911234567"
      }
    }
  ],
  "has_more": true,
  "next_cursor": "tran_01HABC..."
}

Get a Transaction

curl https://api.tryaccess.xyz/api/v1/transactions/tran_01HXYZ... \
  -H "x-api-key: sk_..."

Returns the transaction with full customer details:

{
  "id": "tran_01HXYZ...",
  "amount": 15000,
  "currency": "ETB",
  "status": "success",
  "tx_ref": "FT250123456789",
  "payment_method": "CBE",
  "receipt_image_url": null,
  "created_at": "2025-01-15T10:30:00.000Z",
  "updated_at": "2025-01-15T10:30:00.000Z",
  "customer": {
    "id": "cus_01HXYZ...",
    "name": "Abebe Kebede",
    "email": "abebe@example.com",
    "phone_number": "+251911234567"
  }
}

Transaction Statuses

StatusDescription
IDLECreated, not yet processed
PROCESSINGVerification in progress
SUCCESSPayment verified
FAILEDVerification failed
CANCELEDTransaction was canceled
NOT_FOUNDTransaction reference not found at the PSP
REQUIRE_INPUTAdditional input needed (e.g. receipt image)

Endpoint Summary

ActionMethodEndpoint
ListGET/api/v1/transactions
GetGET/api/v1/transactions/:id

How is this guide?