OleqPay Docs
Oleq Payment Gateway API

B2C — Disbursements

Send funds from your short code to a customer's mobile wallet.

Initiates a disbursement from your business short code to a customer's mobile wallet. Commonly used for withdrawals, payouts, refunds, and salary payments.

POST https://{host}/api/payment

Request fields

FieldTypeRequiredDescription
CountryCodestringrequiredISO 3166-1 alpha-2 country code. e.g. "ke"
ApiKeystringrequiredYour API key for this short code
ActionstringrequiredMust be "B2C"
TimestampstringrequiredRequest timestamp. Format: yyyyMMddHHmmss, e.g. "20260305163822"
MobilestringrequiredRecipient phone in international format. e.g. "254710111222"
AmountstringrequiredAmount to disburse. e.g. "100"
DescriptionstringrequiredPayment description. e.g. "Withdrawal to Mpesa"
ReferencestringrequiredUnique transaction reference from your system. e.g. "ZCEPALVKJA13"
ShortCodestringrequiredYour sending short code
OccassionstringoptionalAdditional context. Often set to the Reference value.
CallbackUrlstringrequiredHTTPS endpoint to receive the disbursement result

Example request

{
  "CountryCode": "ke",
  "ApiKey": "yftubezboduk",
  "Action": "B2C",
  "Timestamp": "20260305163822",
  "Mobile": "254710111222",
  "Amount": "100",
  "Description": "Withdrawal to Mpesa",
  "Reference": "ZCEPALVKJA13",
  "ShortCode": "12345",
  "Occassion": "ZCEPALVKJA13",
  "CallbackUrl": "https://yourdomain.com/callbacks/b2c"
}

Response

{
  "status": "0",
  "message": "Accept the service request successfully.",
  "ConversationID": "AG_20260305_...",
  "OriginatorConversationID": "15743-..."
}
FieldTypeDescription
statusstring"0" or "200" = accepted for processing
messagestringHuman-readable acknowledgment
ConversationIDstringUnique ID for this B2C conversation. Use to match callbacks.
OriginatorConversationIDstringOriginator conversation ID for tracking and reconciliation

On this page