Oleq Payment Gateway API
B2B — Business
Transfer funds to another business paybill or till number.
Transfers funds from your business short code to another business paybill or till number. Commonly used for supplier payments, inter-account transfers, and merchant settlements.
POST https://{host}/api/paymentRequest fields
| Field | Type | Required | Description |
|---|---|---|---|
Action | string | required | Must be "B2B" |
Timestamp | number | required | Unix epoch timestamp in milliseconds. e.g. 1779013110951 |
Reference | string | required | Unique transaction reference. e.g. "9E1MH6SIAVZH96KC7VQ4" |
ApiKey | string | required | Your API key for this short code |
CountryCode | string | required | ISO 3166-1 alpha-2 country code. e.g. "KE" |
Operator | string | optional | Mobile operator identifier. Leave empty to auto-detect. e.g. "AIRTEL" |
ShortCode | string | required | Your sending merchant short code. e.g. "123456" |
RecipientType | string | required | Type of recipient business account. e.g. "paybill" or "till" |
Recipient | string | required | Destination paybill or till number. e.g. "211223" |
Mobile | string | required | Phone number associated with the sending account. e.g. "254700000000" |
Amount | string | required | Amount to transfer. e.g. "100" |
CallbackUrl | string | required | HTTPS endpoint to receive the transfer result |
Example request
{
"Action": "B2B",
"Timestamp": 1779013110951,
"Reference": "9E1MH6SIAVZH96KC7VQ4",
"ApiKey": "yflaqbc5k321",
"CountryCode": "KE",
"Operator": "AIRTEL",
"ShortCode": "123456",
"RecipientType": "paybill",
"Recipient": "211223",
"Mobile": "254700000000",
"Amount": "100",
"CallbackUrl": "https://yourdomain.com/callbacks/b2b"
}Response
{
"status": "0",
"message2": "request completed successfully"
}| Field | Type | Description |
|---|---|---|
status | string | "0" or "200" = accepted for processing |
message2 | string | Processing acknowledgment from the gateway |
The Timestamp for B2B uses a Unix epoch in milliseconds (a 13-digit number), unlike C2B/B2C which use a yyyyMMddHHmmss string. The final transfer confirmation arrives via callback to your CallbackUrl.