logoAccess

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

Verify a payment
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

FieldTypeRequiredDescription
pspstring✅Payment service provider. See Supported PSPs
amountnumber✅Expected amount in minor units (santim). 1 ETB = 100 santim
tx_refstring—Transaction reference from the receipt
sender_accountstring—Sender's bank account number. Required for Abyssinia. Optional for Wegagen, see Transaction References by Provider
receipt_image_urlstring—Publicly accessible URL of the receipt image

At least one of tx_ref or receipt_image_url must be provided.

Response

200 OK
{
  "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

FieldTypeDescription
idstringTransaction record ID
pspstringProvider that processed the transaction
tx_refstringTransaction reference
verifiedbooleanWhether the payment was verified
rejection_reasonstring | nullReason for rejection if verified is false
matchobjectMatch details. See Match Object
transactionobjectExtracted transaction data. See Transaction Object

Match Object

Describes how the extracted transaction compares to your merchant account.

FieldTypeDescription
is_matchbooleanOverall match result
name_matchbooleanReceiver name matched your account
amount_matchboolean | nullAmount matched the expected value
account_matchbooleanReceiver account matched your account
status_matchboolean | nullTransaction status was successful
confidence"high" | "low"Confidence level of the extraction
reasonsstring[]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.

FieldTypeDescription
referencestringTransaction reference number
datestringTransaction date (YYYY-MM-DD)
date_utcstring | nullUTC timestamp if available
senderobject{ name, account }
receiverobject{ name, account }
amountnumberAmount in santim (ETB × 100)
currency"ETB"Always ETB
service_feenumberService fee in santim
vatnumberVAT in santim
totalnumberTotal charged in santim
amount_in_wordsstringAmount written out in words

Supported PSPs

ValueProviderType
CBECommercial Bank of EthiopiaBank
AwashAwash BankBank
DashenDashen BankBank
AbyssiniaBank of AbyssiniaBank
SiinqeeSiinqee BankBank
WegagenWegagen BankBank
AmharaBankAmhara BankBank
ZemenZemen BankBank
TelebirrTelebirrMobile Money
MpesaM-PesaMobile Money
CBEBirrCBEBirrMobile Money
EbirrKaafiKaafi ebirr (Kaafi Microfinance)Mobile Money
EbirrCoopayCOOPay 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:

pspWhat to send as tx_refNotes
EbirrKaafiThe 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
EbirrCoopayThe 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
WegagenThe 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
ZemenThe 24-character ID from the receipt link, https://share.zemenbank.com/rt/<ID>/pdfThe 16-character Reference No printed on the receipt is not enough. The whole link also works
AmharaBankThe 12-character reference, such as FT26170VYQXWThe 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.

Verify with receipt 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

StatusTypeCodeDescription
400invalid_request_errorparameter_missingRequired field missing or tx_ref already used
400invalid_request_errorparameter_invalidDuplicate tx_ref
401authentication_errorunauthorizedInvalid or missing API key
422verification_errorimage_extraction_failedReceipt image could not be processed
422verification_errorextraction_failedTransaction details could not be extracted
500api_errorinternal_server_errorUnexpected server error
502upstream_errorbank_fetch_failedBank or provider unreachable

See Errors for the full error object shape.

How is this guide?