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.

  1. Sign up at /signup to create a developer account.
  2. Create an API key in your dashboard under /dashboard/keys.
  3. Send a verification request to POST /api/v1/verify with your API key in the X-API-Key header.

Base URL: https://dinarcheck.com

Security: keep your API key on your server only. Never embed it in browser JavaScript, mobile app code, or client-side bundles. Treat SMS content as sensitive — do not log it.

2. Authentication

All verification requests require an API key passed in the X-API-Key header.

http
POST /api/v1/verify HTTP/1.1
Host: dinarcheck.com
Content-Type: application/json
X-API-Key: epv_live_your_key_here

Keys 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

FieldTypeDescription
providerstringProvider slug, e.g. telebirr or cbebirr.
smsstringThe full payment confirmation SMS message. Max 1000 characters.
paramsobjectOptional provider-specific parameters. Pass an empty object {} for standard verification.

Example request

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": {}
}

Paste the full payment confirmation SMS exactly as received on the customer's phone.

Success response (200)

json
{
  "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.

Important: 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

json
{
  "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.

json
{
  "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)

telebirrOperational

Available response fields

statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timepayment_modeinvoice_id

Notes

  • Supports both SMS and screenshot verification.

Illustrative request example

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": {}
}
json
{
  "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)

cbebirrOperational

Available response fields

statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_id

Send 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

json
{
  "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": {}
}
json
{
  "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

cbeOperational

Available response fields

statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_id

Notes

  • Timestamps are returned in UTC.
  • Forward the complete confirmation SMS including the receipt link.

Illustrative request example

json
{
  "provider": "cbe",
  "sms": "Paste the full payment confirmation SMS here",
  "params": {}
}

Bank of Abyssinia (BOA)

boaOperational

Available response fields

statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_id

Notes

  • Supports both SMS and screenshot verification.

Illustrative request example

json
{
  "provider": "boa",
  "sms": "Paste the full payment confirmation SMS here",
  "params": {}
}

M-Pesa (Safaricom Ethiopia)

mpesaOperational

Available response fields

statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_id

Notes

  • Available for requests originating from Ethiopia.

Illustrative request example

json
{
  "provider": "mpesa",
  "sms": "Paste the full payment confirmation SMS here",
  "params": {}
}

Dashen Bank

dashenOperational

Available response fields

statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_id

Notes

  • Use the short FT Ref from the SMS or receipt as the transaction reference.

Illustrative request example

json
{
  "provider": "dashen",
  "sms": "Paste the full payment confirmation SMS here",
  "params": {}
}

Bunna International Bank

bunnaOperational

Available response fields

statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_id

Notes

  • Forward the complete confirmation SMS including the receipt link.

Illustrative request example

json
{
  "provider": "bunna",
  "sms": "Paste the full payment confirmation SMS here",
  "params": {}
}

ZamZam Bank

zamzamOperational

Available response fields

statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_id

Notes

  • Account numbers are partially masked for privacy.

Illustrative request example

json
{
  "provider": "zamzam",
  "sms": "Paste the full payment confirmation SMS here",
  "params": {}
}

Siinqee Bank

siinqeeOperational

Available response fields

statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_id

Notes

  • The transaction reference is case-sensitive.

Illustrative request example

json
{
  "provider": "siinqee",
  "sms": "Paste the full payment confirmation SMS here",
  "params": {}
}

Wegagen Bank

wegagenOperational

Available response fields

statusamountcurrencypayer_namepayer_accountreceiver_namereceiver_accountpayment_timeinvoice_id

Notes

  • Use the share ID from the share link as the transaction reference.

Illustrative request example

json
{
  "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.

HTTPCodeDescriptionRetry guidance
401UNAUTHORIZEDInvalid or missing API key.Check your API key and retry.
404NOT_FOUNDNo payment record found for the given transaction.Verify the SMS is correct. Do not retry the same message.
413INVALID_REFERENCERequest body too large.Reduce body size to under 16 KB.
422INVALID_REFERENCEThe payment confirmation message could not be validated for the specified provider.Check the SMS content and params. Do not retry the same message.
422UNSUPPORTED_PROVIDERProvider is not supported.Check /api/v1/providers for available providers.
422IDENTITY_MISMATCHThe retrieved receipt does not match the requested transaction.Ensure the SMS corresponds to a real transaction. Do not retry.
429RATE_LIMITEDRate limit exceeded.Wait for the Retry-After period, then retry with exponential backoff.
500INTERNAL_ERRORAn internal error occurred.Retry after a short delay. Contact support if persistent.
502PROVIDER_UNAVAILABLEThe payment provider is temporarily unavailable.Retry with exponential backoff.
502PROVIDER_PARSE_ERRORThe provider's response could not be processed.Retry after a short delay.
503SERVICE_UNAVAILABLEThe 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

bash
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)

python
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)

javascript
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

bash
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.