Accept Payments
Niobi create payment-link
Accept Payments
Niobi create payment-link
Niobi create payment-link
POST
/
api
/
payment-link-api
/
create
curl --request POST \
--url https://dev.users.niobi.co/api/payment-link-api/create \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"business_name": "ABC Ltd",
"item_name": "xyz",
"callback_url": "https://your-domain.com/niobi/result",
"redirection_url": "https://your-domain.com/niobi/result",
"logo": "image.png",
"amount": "integer",
"country_id": 123,
"currency": "<string>",
"correspondent": "<string>"
}'
{
"success": "true",
"message": "Verification token was sent to your mobile number. Kindly verify to proceed with payment",
"data": {
"MerchantRequestID": "1234-123456789-1",
"CheckoutRequestID": "ab_XY_*******************",
"ResponseCode": "0",
"ResponseDescription": "Success. Request accepted for processing",
"CustomerMessage": "Success. Request accepted for processing"
}
}
Authorizations
Enter token in format (Bearer <token>)
Body
application/json
Create payment link.
The body is of type object
.
Response
201
application/json
Ok.
The response is of type object
.
curl --request POST \
--url https://dev.users.niobi.co/api/payment-link-api/create \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"business_name": "ABC Ltd",
"item_name": "xyz",
"callback_url": "https://your-domain.com/niobi/result",
"redirection_url": "https://your-domain.com/niobi/result",
"logo": "image.png",
"amount": "integer",
"country_id": 123,
"currency": "<string>",
"correspondent": "<string>"
}'
{
"success": "true",
"message": "Verification token was sent to your mobile number. Kindly verify to proceed with payment",
"data": {
"MerchantRequestID": "1234-123456789-1",
"CheckoutRequestID": "ab_XY_*******************",
"ResponseCode": "0",
"ResponseDescription": "Success. Request accepted for processing",
"CustomerMessage": "Success. Request accepted for processing"
}
}