curl --request POST \
--url https://dev.users.niobi.co/api/niobi-payment \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 10,
"customer_identifier": 1234,
"currency": "KES",
"payment_reference": "123456789",
"first_name": "John",
"last_name": "Doe",
"mobile": "254123456789",
"email": "john@doe.com",
"country": "KE",
"city": "Nairobi",
"postal_code": "001001",
"line1": "abc, xyz",
"description": "abc, xyz",
"client_callback_url": "https://your-domain.com/niobi/result",
"payment_method_type": "send money",
"MTN": [
{
"phone_number": "254123456789",
"correspondent": "MPESA_KEN"
}
],
"Orange": [
{
"phone_number": "254123456789",
"correspondent": "MPESA_KEN"
}
],
"Vodacom": [
{
"phone_number": "254123456789",
"correspondent": "MPESA_KEN"
}
],
"Airtel": [
{
"phone_number": "254123456789",
"correspondent": "MPESA_KEN"
}
],
"AT": [
{
"phone_number": "254123456789",
"correspondent": "MPESA_KEN"
}
],
"Vodafone": [
{
"phone_number": "254123456789",
"correspondent": "MPESA_KEN"
}
],
"TNM": [
{
"phone_number": "254123456789",
"correspondent": "MPESA_KEN"
}
],
"Zamtel": [
{
"phone_number": "254123456789",
"correspondent": "MPESA_KEN"
}
],
"Halotel": [
{
"phone_number": "254123456789",
"correspondent": "MPESA_KEN"
}
],
"Tigo": [
{
"phone_number": "254123456789",
"correspondent": "MPESA_KEN"
}
],
"Free": [
{
"phone_number": "254123456789",
"correspondent": "MPESA_KEN"
}
],
"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"
}
]
}'