curl --request POST \
--url https://dev.users.niobi.co/api/v2/niobi-payment \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "K1PoY1WYricSpXh6Wm24twnk6ecPJOWrHGsqiKJr",
"params": {
"amount": 1000,
"currency": "KES",
"payment_reference": "TRANS-123456789",
"first_name": "John",
"last_name": "Doe",
"mobile": "254123456789",
"email": "[email protected]",
"country": "KE",
"city": "Nairobi",
"postal_code": "001001",
"line1": "abc, xyz",
"client_callback_url": "https://your-domain.com/niobi/result",
"payment_method_type": "send money",
"customer_identifier": 1234,
"description": "abc, xyz",
"MTN": [
{
"phone_number": "254123456789"
}
],
"Orange": [
{
"phone_number": "254123456789"
}
],
"Vodacom": [
{
"phone_number": "254123456789"
}
],
"Airtel": [
{
"phone_number": "254123456789"
}
],
"AT": [
{
"phone_number": "254123456789"
}
],
"Vodafone": [
{
"phone_number": "254123456789"
}
],
"TNM": [
{
"phone_number": "254123456789"
}
],
"Zamtel": [
{
"phone_number": "254123456789"
}
],
"Halotel": [
{
"phone_number": "254123456789"
}
],
"Tigo": [
{
"phone_number": "254123456789"
}
],
"Free": [
{
"phone_number": "254123456789"
}
],
"sendmoney": [
{
"phone_number": "254123456789"
}
],
"paybill": [
{
"paybill_number": "123456",
"account_number": "123456789"
}
],
"tillnumber": [
{
"till_number": "123456"
}
],
"pesalink": [
{
"bank_name": "ABC",
"bank_code": "00",
"branch_name": "ABC",
"account_name": "ABC",
"account_number": "123456789"
}
]
},
"salt": "waqassharif00494",
"sender": "ApexVim",
"timestamp": 1709363033,
"signature": "2193d01d50d4bd5da234ac0e0add5d4ccb40907a1b1ab27a12d2c1d88a5d5807"
}
'Handles payment processing for Niobi, supporting multiple payment methods.
curl --request POST \
--url https://dev.users.niobi.co/api/v2/niobi-payment \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "K1PoY1WYricSpXh6Wm24twnk6ecPJOWrHGsqiKJr",
"params": {
"amount": 1000,
"currency": "KES",
"payment_reference": "TRANS-123456789",
"first_name": "John",
"last_name": "Doe",
"mobile": "254123456789",
"email": "[email protected]",
"country": "KE",
"city": "Nairobi",
"postal_code": "001001",
"line1": "abc, xyz",
"client_callback_url": "https://your-domain.com/niobi/result",
"payment_method_type": "send money",
"customer_identifier": 1234,
"description": "abc, xyz",
"MTN": [
{
"phone_number": "254123456789"
}
],
"Orange": [
{
"phone_number": "254123456789"
}
],
"Vodacom": [
{
"phone_number": "254123456789"
}
],
"Airtel": [
{
"phone_number": "254123456789"
}
],
"AT": [
{
"phone_number": "254123456789"
}
],
"Vodafone": [
{
"phone_number": "254123456789"
}
],
"TNM": [
{
"phone_number": "254123456789"
}
],
"Zamtel": [
{
"phone_number": "254123456789"
}
],
"Halotel": [
{
"phone_number": "254123456789"
}
],
"Tigo": [
{
"phone_number": "254123456789"
}
],
"Free": [
{
"phone_number": "254123456789"
}
],
"sendmoney": [
{
"phone_number": "254123456789"
}
],
"paybill": [
{
"paybill_number": "123456",
"account_number": "123456789"
}
],
"tillnumber": [
{
"till_number": "123456"
}
],
"pesalink": [
{
"bank_name": "ABC",
"bank_code": "00",
"branch_name": "ABC",
"account_name": "ABC",
"account_number": "123456789"
}
]
},
"salt": "waqassharif00494",
"sender": "ApexVim",
"timestamp": 1709363033,
"signature": "2193d01d50d4bd5da234ac0e0add5d4ccb40907a1b1ab27a12d2c1d88a5d5807"
}
'Payload required for initiating a Niobi payment transaction.
The Client id is your public key which is generated when you are creating a new API integration from our app.
"K1PoY1WYricSpXh6Wm24twnk6ecPJOWrHGsqiKJr"
Show child attributes
The amount to be transferred. Please note this value should be in standard units(x100)
1000
Currency of the transaction.
"KES"
Any information you can use to reference this transaction later.
"TRANS-123456789"
First name of the payee.
"John"
Last name of the payee.
"Doe"
Mobile number of the payee.
"254123456789"
Email of the payee.
Country of the payee.
"KE"
City of the payee.
"Nairobi"
Postal code of the payee.
"001001"
Street address of the payee.
"abc, xyz"
Callback URL for payment confirmation response.
"https://your-domain.com/niobi/result"
Preferred payment method.
MTN, Orange, Vodacom, Airtel, AT, Vodafone, TNM, Zamtel, Halotel, Tigo, Free, send money, till number, pay bill, pesalink "send money"
Customer identifier for sub-wallet.
1234
This is the description or message from payer who is paying out
"abc, xyz"
Niobi Payments also allows payouts via Bank Transfers using Pesalink. This transfer needs the following information
Show child attributes
your respective bank name
"ABC"
your respective bank code
"00"
your respective branch name
"ABC"
your respective account name
"ABC"
This is the account number associated with the recipient that will receive the payout
"123456789"
Salt for security.
"waqassharif00494"
Identifier of the sender.
"ApexVim"
Timestamp of the request.
1709363033
Signature for verifying the request.
"2193d01d50d4bd5da234ac0e0add5d4ccb40907a1b1ab27a12d2c1d88a5d5807"
Ok.