OleqPay Docs
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/payment

Request fields

FieldTypeRequiredDescription
ActionstringrequiredMust be "B2B"
TimestampnumberrequiredUnix epoch timestamp in milliseconds. e.g. 1779013110951
ReferencestringrequiredUnique transaction reference. e.g. "9E1MH6SIAVZH96KC7VQ4"
ApiKeystringrequiredYour API key for this short code
CountryCodestringrequiredISO 3166-1 alpha-2 country code. e.g. "KE"
OperatorstringoptionalMobile operator identifier. Leave empty to auto-detect. e.g. "AIRTEL"
ShortCodestringrequiredYour sending merchant short code. e.g. "123456"
RecipientTypestringrequiredType of recipient business account. e.g. "paybill" or "till"
RecipientstringrequiredDestination paybill or till number. e.g. "211223"
MobilestringrequiredPhone number associated with the sending account. e.g. "254700000000"
AmountstringrequiredAmount to transfer. e.g. "100"
CallbackUrlstringrequiredHTTPS 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"
}
FieldTypeDescription
statusstring"0" or "200" = accepted for processing
message2stringProcessing 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.

On this page