Transfer funds from your CBL account to MPESA

Transfer funds from your CBL account to MPESA

Request
header Parameters
x-app-id
required
string

pass the project id

x-api-key
required
string

api-key

Request Body schema: application/json

MPESA B2C Request

amount
required
string
creditAccount
required
string
transactionType
required
string
transactionReference
required
string
timestamp
required
string
currency
required
string
Responses
200

Successfully transfered the funds

400

bad input parameter

post/mpesa-b2c
Request samples
application/json
{
  • "amount": "3000",
  • "creditAccount": "+254711123123",
  • "transactionType": "MPESAB2C",
  • "transactionReference": "20GY1KKB2CSA",
  • "timestamp": "2021-01-29T00:54:08+03:00",
  • "currency": "KES"
}
Response samples
application/json
{
  • "responseCode": "00",
  • "responseMessage": "Request processed successfully",
  • "transactionReference": "FT120GY1KKB2",
  • "referenceNumber": "20GY1KKB2CSWL",
  • "transaction_value_date": "2021-01-29",
  • "debitAccount": "9012311313212",
  • "creditAccount": "25478120100",
  • "transactionDate": "2021-01-29"
}