Pretium
  • Introduction
  • API Reference
    • Account
      • Detail
      • Wallet
      • Countries
      • Exchange Rates
    • Kenya
      • Mobile Money
        • Collect
        • Disburse
        • Status
        • Transactions
Powered by GitBook
On this page
  1. API Reference
  2. Kenya
  3. Mobile Money

Collect

This endpoint enables you to collect payments from customers - both STK prompt and direct payment to paybill number.

POST {{uri}}/kes/collect

Body Request


name
type
description

amount

integer

Amount to collect

shortcode

string

Customer's phone number

mobile_network

string

Mobile money network i.e Safaricom, or Airtel

callback_url

url

URL to receive payment notification

{
    "code": 200,
    "message": "Prompt sent",
    "data": {
        "status": "PENDING",
        "transaction_code": "DDM6D",
        "message": "Success! Processing payment..."
    }
}
{
   "code": 400,
   "message": "Failed - Bad Request"
}
PreviousMobile MoneyNextDisburse

Last updated 19 days ago