Payment Verification
Synchronously verify payments from Ethiopian banks and mobile money providers.
POST /api/v1/verify fetches the transaction directly from the bank or mobile money provider, extracts the details, and matches them against your merchant account. The result is returned immediately no polling required.
Request
curl -X POST https://api.tryaccess.xyz/api/v1/verifications \
-H "Content-Type: application/json" \
-H "x-api-key: sk_..." \
-d '{
"psp": "CBE",
"amount": 9900,
"tx_ref": "FT250123456789"
}'Body Parameters
| Field | Type | Required | Description |
|---|---|---|---|
psp | string | ✅ | Payment service provider. See Supported PSPs |
amount | number | ✅ | Expected amount in minor units (santim). 1 ETB = 100 santim |
tx_ref | string | — | Transaction reference from the receipt |
sender_account | string | — | Sender's bank account number. Required for Abyssinia. Optional for Wegagen, see Transaction References by Provider |
receipt_image_url | string | — | Publicly accessible URL of the receipt image |
At least one of tx_ref or receipt_image_url must be provided.
Response
{
"id": "tran_01HXYZ123456",
"psp": "Telebirr",
"tx_ref": "FT250123456789",
"verified": true,
"rejection_reason": null,
"match": {
"is_match": true,
"name_match": true,
"amount_match": true,
"account_match": true,
"status_match": true,
"confidence": "high",
"reasons": []
},
"transaction": {
"reference": "FT250123456789",
"date": "2025-01-23",
"date_utc": "2025-01-23T08:30:00.000Z",
"sender": { "name": "Abebe Kebede", "account": "0912345678" },
"receiver": { "name": "My Business", "account": "1000123456789" },
"amount": 9900,
"currency": "ETB",
"service_fee": 0,
"vat": 0,
"total": 9900,
"amount_in_words": "Ninety-nine birr"
}
}Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Transaction record ID |
psp | string | Provider that processed the transaction |
tx_ref | string | Transaction reference |
verified | boolean | Whether the payment was verified |
rejection_reason | string | null | Reason for rejection if verified is false |
match | object | Match details. See Match Object |
transaction | object | Extracted transaction data. See Transaction Object |
Match Object
Describes how the extracted transaction compares to your merchant account.
| Field | Type | Description |
|---|---|---|
is_match | boolean | Overall match result |
name_match | boolean | Receiver name matched your account |
amount_match | boolean | null | Amount matched the expected value |
account_match | boolean | Receiver account matched your account |
status_match | boolean | null | Transaction status was successful |
confidence | "high" | "low" | Confidence level of the extraction |
reasons | string[] | Reasons for rejection or low confidence |
A payment can be verified: false with is_match: false when the transaction was found but the details don't match your account. Check reasons for specifics.
Transaction Object
Raw data extracted from the bank or receipt.
| Field | Type | Description |
|---|---|---|
reference | string | Transaction reference number |
date | string | Transaction date (YYYY-MM-DD) |
date_utc | string | null | UTC timestamp if available |
sender | object | { name, account } |
receiver | object | { name, account } |
amount | number | Amount in santim (ETB × 100) |
currency | "ETB" | Always ETB |
service_fee | number | Service fee in santim |
vat | number | VAT in santim |
total | number | Total charged in santim |
amount_in_words | string | Amount written out in words |
Supported PSPs
| Value | Provider | Type |
|---|---|---|
CBE | Commercial Bank of Ethiopia | Bank |
Awash | Awash Bank | Bank |
Dashen | Dashen Bank | Bank |
Abyssinia | Bank of Abyssinia | Bank |
Siinqee | Siinqee Bank | Bank |
Wegagen | Wegagen Bank | Bank |
AmharaBank | Amhara Bank | Bank |
Zemen | Zemen Bank | Bank |
Telebirr | Telebirr | Mobile Money |
Mpesa | M-Pesa | Mobile Money |
CBEBirr | CBEBirr | Mobile Money |
EbirrKaafi | Kaafi ebirr (Kaafi Microfinance) | Mobile Money |
EbirrCoopay | COOPay ebirr (Cooperative Bank of Oromia) | Mobile Money |
Transaction References by Provider
For most providers, tx_ref is the reference printed on the receipt, such as CBE's FT… number. A few providers look receipts up by a different ID:
psp | What to send as tx_ref | Notes |
|---|---|---|
EbirrKaafi | The ID at the end of the receipt link in the SMS, https://receipt.ebirr.com/kaafimf/<ID> | Not the numeric Ref: from the SMS. The whole link also works |
EbirrCoopay | The ID at the end of the receipt link in the SMS, https://receipt.ebirr.com/coopay/<ID> | Not the numeric Ref: from the SMS. The whole link also works |
Wegagen | The 24-character ID from the receipt link in the SMS (…?id=<ID>) | The 16-character Reference No printed on the receipt also works if you send the payer's account number as sender_account |
Zemen | The 24-character ID from the receipt link, https://share.zemenbank.com/rt/<ID>/pdf | The 16-character Reference No printed on the receipt is not enough. The whole link also works |
AmharaBank | The 12-character reference, such as FT26170VYQXW | The receipt link also works |
Receipt Image Verification
If you don't have a transaction reference, pass a publicly accessible receipt screenshot URL. Access uses AI to extract the transaction details from the image.
curl -X POST https://api.tryaccess.xyz/api/v1/verify \
-H "Content-Type: application/json" \
-H "x-api-key: sk_..." \
-d '{
"psp": "CBE",
"amount": 15000,
"receipt_image_url": "https://storage.example.com/receipts/receipt.jpg"
}'You can also pass both tx_ref and receipt_image_url together Access will use the image as a fallback if the reference lookup fails.
Duplicate Transaction References
Each tx_ref can only be verified once per merchant. Submitting the same tx_ref a second time returns a 400 error with code parameter_invalid.
Error Responses
| Status | Type | Code | Description |
|---|---|---|---|
400 | invalid_request_error | parameter_missing | Required field missing or tx_ref already used |
400 | invalid_request_error | parameter_invalid | Duplicate tx_ref |
401 | authentication_error | unauthorized | Invalid or missing API key |
422 | verification_error | image_extraction_failed | Receipt image could not be processed |
422 | verification_error | extraction_failed | Transaction details could not be extracted |
500 | api_error | internal_server_error | Unexpected server error |
502 | upstream_error | bank_fetch_failed | Bank or provider unreachable |
See Errors for the full error object shape.
How is this guide?