Accept Payments
Submit M-Pesa STK Push
Accept Payments
Submit M-Pesa STK Push
POST
/
api
/
v2
/
stk-deposit
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
The body is of type object
.
Response
200
application/json
Success
The response is of type object
.
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": {}
}