Drinah Pay API Documentation

Charge API

Use the Charge API to initiate M-Pesa payments from your customers. You need to pass your secret key and payment details.

Request Format

{
    "amount": 1000,
    "phone": "2547XXXXXXXXX",
    "description": "Payment for goods"
}
    

Response Example

{
    "status": "success",
    "transaction_id": "abcd1234"
}
    

Error Codes