Telebirr
Detail page: URL format, reference shape, return type, and quirks for telebirr receipts.
Telebirr's official receipt endpoint at transactioninfo.ethiotelecom.et returns a bilingual (Amharic + English) HTML page; we scrape it with regex and return a structured object.
URL format
| Part | Pattern | Example |
|---|---|---|
| host | literal | transactioninfo.ethiotelecom.et |
<REFERENCE> | letters and digits | ABCD1234EF |
You can also pass just the reference via { "reference": "ABCD1234EF" }; telebirr is the only provider where the bare-reference shortcut works directly through /api/verify.
Return type
receipt.source === "telebirr-html". All fields are optional strings, present when the upstream HTML included them.
Sample (placeholder values)
Quirks
- Bilingual labels: the upstream label format is
<Amharic>/<English>(e.g.የክፍያው ሁኔታ/transaction status). We anchor on the English tail where we can, to sidestep Unicode NFC/NFD drift on the Amharic prefix. - Amount strings carry the unit:
"100 Birr", not a number. If you need a numeric, strip the trailingBirrclient-side. - One row in the HTML is malformed: the
transaction status<td>is missing its closing tag in the upstream output. Our parser tolerates this; it's why we don't reject receipts that look incomplete in raw HTML. - Afternoon hangs: on most days, from about 14:00 to 22:00 Addis Ababa time, telebirr's receipt server accepts some requests and never answers them. Asking again usually works, and telebirr answers within 2 s or not at all, so links.et does not wait for a hang to end: when a telebirr request has no answer after 2 s it sends another from a different egress address and keeps the first one open. The first answer wins. A telebirr call makes up to 8 requests and takes up to 30 s before it fails. If it fails with
This operation was aborted, retry it after a few seconds: the receipt is fine, the request was unlucky. - Rate limit: telebirr's edge rate-limits aggressively. links.et's outbound queue throttles to ~1 request every 1.5 s per egress address for this host, with adaptive backoff on
429. You won't usually hit this from/api/verifybecause cache hits don't touch upstream.