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
curl "https://api.tryaccess.xyz/api/v1/transactions?status=success&limit=20" \
-H "x-api-key: sk_..."Query Parameters
| Parameter | Description |
|---|---|
cursor | Pagination cursor from the previous response's next_cursor |
limit | Results per page (1–100, default 20) |
status | Filter by status: IDLE, PROCESSING, SUCCESS, FAILED, CANCELED, NOT_FOUND, REQUIRE_INPUT |
payment_method | Filter by PSP: CBE, Awash, Dashen, Telebirr, Abyssinia, Mpesa, CBEBirr, Siinqee, Wegagen, AmharaBank, Zemen, EbirrKaafi, EbirrCoopay |
customer_id | Filter by customer ID |
created_after | ISO 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
| Status | Description |
|---|---|
IDLE | Created, not yet processed |
PROCESSING | Verification in progress |
SUCCESS | Payment verified |
FAILED | Verification failed |
CANCELED | Transaction was canceled |
NOT_FOUND | Transaction reference not found at the PSP |
REQUIRE_INPUT | Additional input needed (e.g. receipt image) |
Endpoint Summary
| Action | Method | Endpoint |
|---|---|---|
| List | GET | /api/v1/transactions |
| Get | GET | /api/v1/transactions/:id |
How is this guide?