Search routes

Search major documentation and API reference routes.

Direct Integrations

CBE Birr Direct Integration

USSD direct collection flow for CBE Birr customers.

Initiate Payment

POST/api/v1/CBEBirrUssd/direct/transaction-initiate

Send a direct payment request to a customer CBE Birr account.

Request Parameters

FieldTypeRequiredDescription
descriptionstringYesPayment description
imageUrlstringNoPublic image URL for checkout
amountnumberYesPayment amount
currencystringYesCurrency code (ETB, USD, etc.)
phonestringYesCustomer phone in country-code format without plus sign
MerchantOrderIdstringYesUnique merchant order ID
callbackUrlstringYesWebhook URL for status updates
cancelRedirectUrlstringNoRedirect URL on cancel
failedRedirectUrlstringNoRedirect URL on failure
complitedUrlstringNoRedirect URL on success
order.itemsarrayYesOrder line items collection
order.items[].itemNamestringYesItem name
order.items[].pricenumberYesItem price
order.items[].quantitynumberYesItem quantity

Example Request

curl --location '/api/v1/CBEBirrUssd/direct/transaction-initiate' \
--data '{
  "description": "Afropay Order Checkout",
  "imageUrl": "https://yourapp.com/images/logo.png",
  "amount": 1.18,
  "currency": "ETB",
  "phone": "251900000000",
  "MerchantOrderId": "TXN_123456789",
  "cancelRedirectUrl": "https://yourapp.com/payment/cancel",
  "callbackUrl": "https://yourapp.com/payment/callback",
  "failedRedirectUrl": "https://yourapp.com/payment/failed",
  "complitedUrl": "https://yourapp.com/payment/success",
  "order": {
    "items": [
      {
        "itemName": "Premium Package",
        "price": 1.18,
        "quantity": 1
      }
    ]
  }
}'

Example Response

{
  "isSuccess": true,
  "statusCode": 0,
  "message": "Transaction successfully registered",
  "data": {
    "paymentUrl": "https://client-checkout.afropays.co/checkout/TXN2026012808112471",
    "refrence": "TXN2026012808112471"
  }
}

The customer receives a USSD prompt and authorizes with their CBE Birr flow.