POST
/
api
/
v2
/
stk-deposit
Deposit via STK Push
curl --request POST \
  --url https://dev.users.niobi.co/api/v2/stk-deposit \
  --header 'Content-Type: application/json' \
  --data '{
  "client_id": "<string>",
  "sender": "<string>",
  "timestamp": 123,
  "salt": "<string>",
  "signature": "<string>",
  "params": {
    "country_id": 123,
    "correspondent": "MTN_MOMO_NGA",
    "currency": "<string>",
    "amount": 123,
    "mobile": "<string>",
    "callback_url": "<string>"
  }
}'
{
  "success": true,
  "message": "Verification token was sent to your mobile number. Kindly verify to proceed with payment.",
  "data": {}
}

Body

application/json

Data needed for M-Pesa STK Push

client_id
string
required

Client identifier

sender
string
required

Sender's entity title

timestamp
integer
required

Timestamp of the request

salt
string
required

Salt for the request

signature
string
required

Signature for the request

params
object
required

Response

Success

success
boolean
Example:

true

message
string
Example:

"Verification token was sent to your mobile number. Kindly verify to proceed with payment."

data
object