Skip to main content
POST
/
api
/
v3
/
withdraw
/
paybill
Withdraw to Paybill (Kenya)
curl --request POST \
  --url https://sandbox-api.kotanipay.com/api/v3/api/v3/withdraw/paybill \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 500,
  "walletId": "5f9b2c7b9c9d6b0017b4e6b1",
  "paybillDetails": {
    "paybillNumber": "400200",
    "accountNumber": "ACC123456",
    "phoneNumber": "+254712345678",
    "remarks": "Payment for invoice #12345"
  },
  "callbackUrl": "https://example.com/callback",
  "referenceId": "PAYBILL-001"
}
'
{
  "success": true,
  "message": "Paybill withdrawal has been successfully created.",
  "data": {
    "id": "<string>",
    "message": "<string>",
    "referenceId": "<string>",
    "referenceNumber": 123
  }
}
Send money from integrator wallet to a Paybill number with account reference.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
amount
number
required

Amount to pay

Example:

500

walletId
string
required

Wallet ID to debit from

Example:

"5f9b2c7b9c9d6b0017b4e6b1"

paybillDetails
object
required

Paybill payment details

callbackUrl
string

Callback URL for status updates

Example:

"https://example.com/callback"

referenceId
string

Your reference ID

Example:

"PAYBILL-001"

Response

success
boolean
Example:

true

message
string
Example:

"Paybill withdrawal has been successfully created."

data
object