API Documentation
1. Getting Started
DinarCheck lets you verify Ethiopian payment receipts via a JSON API. You send a provider name and the payment confirmation SMS; the API returns structured transaction data if a genuine provider receipt is found.
- Sign up at
/signupto create a developer account. - Create an API key in your dashboard under
/dashboard/keys. - Send a verification request to
POST /api/v1/verifywith your API key in theX-API-Keyheader.
Base URL: https://dinarcheck.com
2. Authentication
All verification requests require an API key passed in the X-API-Key header.
POST /api/v1/verify HTTP/1.1
Host: dinarcheck.com
Content-Type: application/json
X-API-Key: epv_live_your_key_hereKeys created in a development environment use the epv_test_ prefix; production keys use epv_live_. A missing or invalid key returns 401 UNAUTHORIZED.
3. Verification Endpoint
POST /api/v1/verify
Request body
| Field | Type | Description |
|---|---|---|
provider | string | Provider slug, e.g. telebirr or cbebirr. |
sms | string | The full payment confirmation SMS message. Max 1000 characters. |
params | object | Optional provider-specific parameters. Pass an empty object {} for standard verification. |
Example request
{
"provider": "telebirr",
"sms": "Dear Abebe\nYou have transferred ETB 350.00 to Almaz Tadesse (2519****0000) on 23/10/2026 19:23:53. Your transaction number is AAA11111BB. The service fee is ETB 1.74 and 15% VAT on the service fee is ETB 0.26. Your current E-Money Account balance is ETB 52.64. To download your payment information please click this link: https://transactioninfo.ethiotelecom.et/receipt/AAA11111BB.\n\nThank you for using telebirr\nEthio telecom",
"params": {}
}Paste the full payment confirmation SMS exactly as received on the customer's phone.
Success response (200)
{
"success": true,
"provider": "telebirr",
"data": {
"status": "Completed",
"amount": "100.50",
"currency": "ETB",
"payer_name": "Abebe Kebede",
"payer_account": "0900000001",
"receiver_name": "Almaz Tadesse",
"receiver_account": "0900000002",
"payment_time": "2026-01-15T14:30:00",
"payment_mode": "Transfer",
"invoice_id": "INV001234"
},
"error": null
}All data fields may be null if the provider does not supply them. The amount field is a decimal string (never a number). Times are ISO 8601 strings. The invoice_id field is the receipt's own identifier; for Telebirr and CBE Birr it is the same number as the transaction number in the customer's SMS. Use it to detect reused receipts.
success: true means a genuine receipt was retrieved from the provider and matched the transaction. It does not mean the payment was completed — always check the status field (e.g. "Completed", "Pending", "Failed"). You are responsible for verifying the amount, matching the merchant, preventing duplicates, and deciding whether to approve an order.Error response
{
"success": false,
"provider": "telebirr",
"data": null,
"error": {
"code": "NOT_FOUND",
"message": "No payment record found for the given transaction."
}
}See Error Handling for the full list of error codes.
4. Providers Endpoint
GET /api/v1/providers — public, no authentication required.
Returns all providers with their current status, available response fields, and usage notes.
{
"providers": [
{
"slug": "telebirr",
"name": "Telebirr (Ethio Telecom)",
"status": "operational",
"required_params": [],
"conditional_params": [],
"available_fields": ["status", "amount", "currency", "payer_name", ...],
"limitations": ["Supports both SMS and screenshot verification."]
}
]
}Providers with status operational are available for live verification. Use this endpoint to discover which providers are currently supported.
5. SMS Input Guide
The sms field must contain the full payment confirmation SMS as received on the payer's phone. The API extracts the transaction reference (and for CBE Birr, the receipt link parameters) from the message to look up the receipt. No additional parameters are needed.
- Send the complete, unmodified message — do not trim, edit, or extract parts of it yourself.
- Maximum length: 1000 characters.
- Treat SMS content as sensitive data. Do not log it in your application.
- The message formats shown in this documentation are illustrative. Actual SMS formats vary by provider and may change over time.
6. Provider-Specific Guides
Telebirr (Ethio Telecom)
telebirrOperationalAvailable response fields
statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timepayment_modeinvoice_idNotes
- Supports both SMS and screenshot verification.
Illustrative request example
{
"provider": "telebirr",
"sms": "Dear Abebe\nYou have transferred ETB 350.00 to Almaz Tadesse (2519****0000) on 23/10/2026 19:23:53. Your transaction number is AAA11111BB. The service fee is ETB 1.74 and 15% VAT on the service fee is ETB 0.26. Your current E-Money Account balance is ETB 52.64. To download your payment information please click this link: https://transactioninfo.ethiotelecom.et/receipt/AAA11111BB.\n\nThank you for using telebirr\nEthio telecom",
"params": {}
}{
"success": true,
"provider": "telebirr",
"data": {
"status": "Completed",
"amount": "100.50",
"currency": "ETB",
"payer_name": "Abebe Kebede",
"payer_account": "0900000001",
"receiver_name": "Almaz Tadesse",
"receiver_account": "0900000002",
"payment_time": "2026-01-15T14:30:00",
"payment_mode": "Transfer",
"invoice_id": "INV001234"
},
"error": null
}CBE Birr (Commercial Bank of Ethiopia)
cbebirrOperationalAvailable response fields
statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_idSend the complete, unmodified confirmation SMS including its receipt link. params must be empty — any key is rejected.
Notes
- Forward the complete confirmation SMS including the receipt link.
Illustrative request example
{
"provider": "cbebirr",
"sms": "Dear Customer, you have sent 50.00Br. to Almaz Tadesse on 24/03/25 10:09,Txn ID CCC11111C1. Your CBE Birr account balance is 647.99Br.Thank you! For invoice https://cbepay1.cbe.com.et/aureceipt?TID=CCC11111C1&PH=251900000001 For your feedback please click the link https://shorturl.at/xxxxx",
"params": {}
}{
"success": true,
"provider": "cbebirr",
"data": {
"status": "Completed",
"amount": "200.00",
"currency": "ETB",
"payer_name": "Abebe Kebede",
"payer_account": "0912345678",
"receiver_name": "Almaz Tadesse",
"receiver_account": "0987654321",
"payment_time": "2026-01-15T10:00:00",
"payment_mode": null,
"invoice_id": "TXN789012"
},
"error": null
}CBE Mobile Banking
cbeOperationalAvailable response fields
statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_idNotes
- Timestamps are returned in UTC.
- Forward the complete confirmation SMS including the receipt link.
Illustrative request example
{
"provider": "cbe",
"sms": "Paste the full payment confirmation SMS here",
"params": {}
}Bank of Abyssinia (BOA)
boaOperationalAvailable response fields
statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_idNotes
- Supports both SMS and screenshot verification.
Illustrative request example
{
"provider": "boa",
"sms": "Paste the full payment confirmation SMS here",
"params": {}
}M-Pesa (Safaricom Ethiopia)
mpesaOperationalAvailable response fields
statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_idNotes
- Available for requests originating from Ethiopia.
Illustrative request example
{
"provider": "mpesa",
"sms": "Paste the full payment confirmation SMS here",
"params": {}
}Dashen Bank
dashenOperationalAvailable response fields
statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_idNotes
- Use the short FT Ref from the SMS or receipt as the transaction reference.
Illustrative request example
{
"provider": "dashen",
"sms": "Paste the full payment confirmation SMS here",
"params": {}
}Bunna International Bank
bunnaOperationalAvailable response fields
statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_idNotes
- Forward the complete confirmation SMS including the receipt link.
Illustrative request example
{
"provider": "bunna",
"sms": "Paste the full payment confirmation SMS here",
"params": {}
}ZamZam Bank
zamzamOperationalAvailable response fields
statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_idNotes
- Account numbers are partially masked for privacy.
Illustrative request example
{
"provider": "zamzam",
"sms": "Paste the full payment confirmation SMS here",
"params": {}
}Siinqee Bank
siinqeeOperationalAvailable response fields
statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_idNotes
- The transaction reference is case-sensitive.
Illustrative request example
{
"provider": "siinqee",
"sms": "Paste the full payment confirmation SMS here",
"params": {}
}Wegagen Bank
wegagenOperationalAvailable response fields
statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_idNotes
- Use the share ID from the share link as the transaction reference.
Illustrative request example
{
"provider": "wegagen",
"sms": "Paste the full payment confirmation SMS here",
"params": {}
}7. Error Handling
All errors return a JSON envelope with success: false and an error object containing code and message.
| HTTP | Code | Description | Retry guidance |
|---|---|---|---|
| 401 | UNAUTHORIZED | Invalid or missing API key. | Check your API key and retry. |
| 404 | NOT_FOUND | No payment record found for the given transaction. | Verify the SMS is correct. Do not retry the same message. |
| 413 | INVALID_REFERENCE | Request body too large. | Reduce body size to under 16 KB. |
| 422 | INVALID_REFERENCE | The payment confirmation message could not be validated for the specified provider. | Check the SMS content and params. Do not retry the same message. |
| 422 | UNSUPPORTED_PROVIDER | Provider is not supported. | Check /api/v1/providers for available providers. |
| 422 | IDENTITY_MISMATCH | The retrieved receipt does not match the requested transaction. | Ensure the SMS corresponds to a real transaction. Do not retry. |
| 429 | RATE_LIMITED | Rate limit exceeded. | Wait for the Retry-After period, then retry with exponential backoff. |
| 500 | INTERNAL_ERROR | An internal error occurred. | Retry after a short delay. Contact support if persistent. |
| 502 | PROVIDER_UNAVAILABLE | The payment provider is temporarily unavailable. | Retry with exponential backoff. |
| 502 | PROVIDER_PARSE_ERROR | The provider's response could not be processed. | Retry after a short delay. |
| 503 | SERVICE_UNAVAILABLE | The service is temporarily unavailable. | Retry with exponential backoff. |
8. Code Examples
All examples use fictional SMS messages and data. Actual message formats vary by provider.
cURL
curl -X POST https://dinarcheck.com/api/v1/verify \
-H "Content-Type: application/json" \
-H "X-API-Key: epv_live_your_key_here" \
-d '{
"provider": "telebirr",
"sms": "Dear Abebe\nYou have transferred ETB 350.00 to Almaz Tadesse (2519****0000) on 23/10/2026 19:23:53. Your transaction number is AAA11111BB. The service fee is ETB 1.74 and 15% VAT on the service fee is ETB 0.26. Your current E-Money Account balance is ETB 52.64. To download your payment information please click this link: https://transactioninfo.ethiotelecom.et/receipt/AAA11111BB.\n\nThank you for using telebirr\nEthio telecom",
"params": {}
}'Python (requests)
import requests
response = requests.post(
"https://dinarcheck.com/api/v1/verify",
headers={"X-API-Key": "epv_live_your_key_here"},
json={
"provider": "telebirr",
"sms": (
"Dear Abebe\nYou have transferred ETB 350.00 to Almaz Tadesse "
"(2519****0000) on 23/10/2026 19:23:53. Your transaction number "
"is AAA11111BB. The service fee is ETB 1.74 and 15% VAT on the "
"service fee is ETB 0.26. Your current E-Money Account balance "
"is ETB 52.64. To download your payment information please click "
"this link: https://transactioninfo.ethiotelecom.et/receipt/"
"AAA11111BB.\n\nThank you for using telebirr\nEthio telecom"
),
"params": {},
},
)
data = response.json()
if data["success"]:
print(f"Status: {data['data']['status']}")
print(f"Amount: {data['data']['amount']}") # decimal string
else:
print(f"Error: {data['error']['code']} — {data['error']['message']}")
if response.status_code == 429:
retry_after = response.headers.get("Retry-After", "60")
print(f"Retry after {retry_after} seconds")Node.js (fetch)
const response = await fetch("https://dinarcheck.com/api/v1/verify", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": "epv_live_your_key_here",
},
body: JSON.stringify({
provider: "telebirr",
sms:
"Dear Abebe\nYou have transferred ETB 350.00 to Almaz Tadesse " +
"(2519****0000) on 23/10/2026 19:23:53. Your transaction number " +
"is AAA11111BB. The service fee is ETB 1.74 and 15% VAT on the " +
"service fee is ETB 0.26. Your current E-Money Account balance " +
"is ETB 52.64. To download your payment information please click " +
"this link: https://transactioninfo.ethiotelecom.et/receipt/" +
"AAA11111BB.\n\nThank you for using telebirr\nEthio telecom",
params: {},
}),
});
const data = await response.json();
if (data.success) {
console.log("Status:", data.data.status);
console.log("Amount:", data.data.amount); // decimal string
} else {
console.error(data.error.code, "—", data.error.message);
if (response.status === 429) {
const retryAfter = response.headers.get("Retry-After") || "60";
console.log("Retry after", retryAfter, "seconds");
}
}CBE Birr example
curl -X POST https://dinarcheck.com/api/v1/verify \
-H "Content-Type: application/json" \
-H "X-API-Key: epv_live_your_key_here" \
-d '{
"provider": "cbebirr",
"sms": "Dear Customer, you have sent 50.00Br. to Almaz Tadesse on 24/03/25 10:09,Txn ID CCC11111C1. Your CBE Birr account balance is 647.99Br.Thank you! For invoice https://cbepay1.cbe.com.et/aureceipt?TID=CCC11111C1&PH=251900000001 For your feedback please click the link https://shorturl.at/xxxxx",
"params": {}
}'9. FAQ
- What does success: true mean?
- It means a genuine receipt was retrieved from the payment provider and matched the transaction reference in the SMS you submitted. It does NOT mean the payment was completed. The provider-reported status may be "Completed", "Pending", "Failed", another value, or null. You must check the status field, verify the amount and merchant, prevent duplicate verifications, and make your own decision about whether to approve an order.
- What input methods are supported?
- DinarCheck supports two verification methods: SMS text and payment screenshot. For SMS, paste the full payment confirmation message. For screenshots, upload a photo of the payment receipt — the system automatically reads QR codes and uses OCR to extract the transaction reference. Both methods work across all supported providers.
- Do you store my data?
- No. Transaction-specific data (SMS content, phone numbers, references) is processed in memory and not stored beyond the lifetime of a single request. Only usage counters (request counts per API key) are stored for your dashboard.
- Is DinarCheck a payment gateway?
- No. DinarCheck does not initiate, process, or settle payments. It is a verification service: you send a payment confirmation SMS, and it returns structured receipt data from the provider. Payment processing, order management, and fund settlement are entirely your responsibility.
- What is invoice_id and can I use it to detect duplicates?
- invoice_id is the receipt's own identifier, read directly from the provider receipt. For Telebirr and CBE Birr it is the same number as the transaction number in the customer's SMS. You can store it and compare it against future verifications to detect reused receipts. The SMS content, the receipt link, the phone number, and the source URL are never returned.