POST /api/verify
Fetch + parse a single receipt URL across all supported providers.
No receipt URL? See
POST /api/verify-image; it extracts a receipt from a screenshot via AI OCR and chains back here for the upstream confirmation when the screenshot is from a supported provider.
Request
| Field | Type | Description |
|---|---|---|
url | string | Full receipt URL. Works for every supported provider. |
reference | string | Shorthand, telebirr-only. Equivalent to transactioninfo.ethiotelecom.et/receipt/<ref>. |
One of the two is required. If you send both, url is used.
Add expect to have the answer say whether the money went to you, and whether it was the right amount:
See Paid to you and The right amount below.
Three optional extras change how you get the answer, all covered in Integration flows: waitMs in the body, an Idempotency-Key header, and webhookUrl in the body, which has links.et call your server when the verification finishes. URLs and references shown below are placeholders; substitute one from a receipt you control.
Response envelope
Every success returns the same envelope. The shape of receipt varies by provider; use the source field (or its absence) to dispatch.
providerKey is one of telebirr, cbe, cbebirr, zemen, boa, awashbank, dashen, hulubeje, coopay, kaafi, mpesa, amharabank, abaybank, berhanbank, oromiabank, ahadubank, siinqeebank or zamzambank. Providers lists the hosts behind each. cached is true when the answer came from our copy and no bank was asked; those calls are free.
Checked before (history)
Every success says whether your account has verified this receipt before. A customer who shows one payment twice comes back with checkedBefore: true.
| Field | Type | Description |
|---|---|---|
scope | string | Always "account": only your own checks are counted. |
checkedBefore | boolean | true when your account had a successful check of this receipt before now. |
previousChecks | number | How many earlier successful checks there were. 0 the first time. |
firstCheckedAt | string or null | When the earliest of them happened. null the first time. |
lastCheckedAt | string or null | When the latest of them happened. null the first time. |
What counts:
- Every key on your account, counted together. Nobody else's checks are counted, and nobody else sees yours.
- Successful checks only, by link or by screenshot. A check that failed is not counted.
- Not the call you are making. The count is what came before it. A replay with the same
Idempotency-Keyand a poll ofGET /api/verify/:requestIdboth repeat the first answer, so a retry of your own never looks like a second customer.
Three limits to know:
- A receipt is matched on its bank link. The same CBE transfer opened through a different kind of link can read as new, so keep "one receipt pays one order" in your own database as well.
- It looks back 90 days. A check older than that reads as new.
historyis on thePOST /api/verifyresponse and on the polling response. It is left off failures, and off the event stream.
If your own code checks the same receipt twice for one order (a page reload, say), the second call will say checkedBefore: true. Send an Idempotency-Key for retries, or compare lastCheckedAt with your own order time.
Paid to you (receiverCheck)
A real receipt for a payment to someone else still comes back ok: true: the bank confirms the transfer happened, not where it went. Send who should have been paid, and the answer says whether the receipt agrees.
| Field | Type | Description |
|---|---|---|
expect.receiverAccount | string | Your account, wallet, phone or merchant number, in full. 0911000000, 251911000000 and +251 911 000 000 are read as the same number. |
expect.receiverName | string | The name the account is held in. Send the full name. |
Send either one or both. The number is the stronger check, so send it whenever you have it.
| Field | Type | Description |
|---|---|---|
match | boolean or null | true: paid to the receiver you expected. false: paid to someone else. null: the receipt cannot tell. |
account | string | How the number compared: match, mismatch, not_shown or not_sent. |
name | string | How the name compared, with the same four values. |
receiver | object | The receiver's name and account as the receipt prints them. Either can be null. |
not_sent means you gave no value for that side. not_shown means the receipt has none, or hides all of it.
How match is decided:
- A number that disagrees is
false, whatever the name says. - A number printed in full that agrees is
true, whatever the name says. Names are spelled differently from one bank to the next; numbers are not. - A masked number (
1****4321) must agree on every digit it shows. Many accounts fit one mask, so if you also sent a name and it disagrees, the answer isfalse. - When the receipt shows no number, the name decides.
- When nothing can be compared,
matchisnull. Treatnullas "check by hand", not as a pass.
How names are compared: titles (Ato, W/ro, Dr) are dropped, case and punctuation are ignored, and each word may differ by a letter or two, so Mezemir agrees with Mezmir. Every word of the shorter name has to be found in the longer one: a receipt that prints only a first name agrees with your full name, and Abebe Kebede does not agree with Abebe Girma. A name in Amharic script is not compared with one in Latin script; that side reads not_shown.
Things to know:
okdoes not change. A receipt paid to someone else is stillok: truewith status200. ReadreceiverCheck.matchbefore you release the order.- It works for every provider, on the fields each one prints. Some receipts name no receiver at all (a ZamZam cash withdrawal, say), and those read
null. - Two odd routes are followed. A telebirr transfer into a bank account is compared on the bank account, and a CBE transfer into a telebirr wallet is compared on the wallet number.
- Nothing is charged for it, and it does not change what is cached. The same receipt can be checked against a different receiver on the next call.
receiverCheckis on thePOST /api/verifyresponse, the polling response and the webhook. It is left off failures and off the event stream. A poll or a replay with the sameIdempotency-Keyanswers for theexpectthe first call sent.- A wrong
expect(empty, a masked number, an unknown field) is a400 invalid_requestthat says what is wrong.
The right amount (amountCheck)
Send expect.amount, the birr you should have received, and the answer compares it with the receipt. It works on its own or together with the receiver fields.
| Field | Type | Description |
|---|---|---|
expect.amount | number | What you should have received, in birr. A number, not a string: 1500 or 1500.5. |
| Field | Type | Description |
|---|---|---|
match | boolean or null | true only when the amounts are the same to the cent. null when the receipt cannot tell. |
result | string or null | exact, over (the receipt is for more) or under (the receipt is for less). |
expected | number | The amount you sent. |
paid | number or null | What reached the receiver, read off the receipt. |
difference | number or null | paid minus expected. Negative when the payment is short. |
Things to know:
paidis what the receiver got, not what the sender was charged. Banks add a service fee and VAT on the sender's side, so a receipt with a total of 1,404 birr for a 1,400 birr transfer haspaid: 1400. You never need to know which field holds the amount for which provider.- An overpayment is
match: falsewithresult: "over". If you accept those, release the order whenresultis not"under". - Only birr is compared. A receipt in another currency (a USD transfer, say) reads
match: null. okdoes not change, as withreceiverCheck. Nothing is charged for it, and it is on the same responses.
Put together, one call answers the three questions a shop asks:
Telebirr
receipt.source === "telebirr-html". Scraped from the bilingual HTML.
CBE PDF (apps.cbe.com.et and dashed mbreciept.cbe.com.et)
receipt.source === "cbe-pdf". Amounts are numbers, not strings.
Zemen Bank (share.zemenbank.com)
receipt.source === "zemen-pdf". Amounts are numbers; currency is always ETB on these receipts. The URL has the shape share.zemenbank.com/rt/<token>/pdf where <token> is 24 alphanumeric characters (an 8-char prefix followed by the 16-char reference).
Bank of Abyssinia (cs.bankofabyssinia.com)
receipt.source === "boa-json". The public /slip/ page is a React SPA; we
bypass it and hit the same /api/onlineSlip/getDetails/?id=<trx> endpoint the
bundle does, then normalize the response. Amounts are numbers.
Awash Bank (awashpay.awashbank.com:8225)
receipt.source === "awash-html". Scraped from a server-rendered static HTML
receipt page. The static company-info block (TIN, VAT Reg, etc.) is dropped
(it's identical on every receipt) and we surface customer + transaction
sub-objects. Amounts are strings with a ETB suffix (Awash ships them that
way; we keep verbatim).
Awash issues at least nine receipt layouts depending on transactionType
(IPS Bank Transfer, Telebirr Transfer, Send Money, Bill Payment, Ethiotelecom
Postpaid Bill, Bulk Payment, WITHDRAW, DEPOSIT, School Fees). The parser
maps each variant's synonym labels (Sender Name / Customer Name,
Beneficiary Account / Phone Number / CA Number, etc.) into the same
typed fields below. Labels we don't have first-class names for (Branch,
CBS Trans ID, Student Code, Invoice Number, etc.) appear inside
transaction.extra. See Awash Bank provider page for
the full variant matrix.
CBE JSON (mb.cbe.com.et and plain mbreciept.cbe.com.et)
receipt.source === "mb-json". Richer than the PDF: includes commissions, taxes, and processing dates as an array.
M-PESA (m-pesabusiness.safaricom.et)
receipt.source === "mpesa-pdf". Parsed from the PDF behind the receipt page. Amounts are numbers. Fields a receipt type does not print are left out: receiverNumber is on Send Money and bank transfers, and airtime receipts have rechargedPhone instead.
Use transactionId to tell one payment from another, never receiptNumber. Safaricom prints a new receiptNumber every time it draws the receipt, so the same payment can come back with a different one. transactionId is the code in the receipt link and stays the same.
502: the bank gave no valid receipt
The bank was reached, and one of three things happened. Either it answered with an error of its own (receipt not found, a 5xx), and error says which. Or it answered with 200 but the body didn't carry enough to validate as a real receipt (telebirr lacked receiptNo/payerName/transactionStatus, say); then the partial receipt is returned so you can inspect what was extracted. Or the bank has the receipt and marks the transfer failed: error starts with the bank marks this transfer failed and names the bank's own status, and the receipt comes back with it. Today that is CBE mobile banking, see CBE status.
A failure is remembered, for a minute or for 24 hours depending on its kind, and a call inside that time gets it back with cached: true, cachedFailure: true and receipt: null. See retry guidance.
GET /api/verify
Returns { ok: true, ts }. No auth; used by uptime monitors.