Rest API Endpoint

this is the rest api endpoint for making request

Main Endpoint (send)

Good to know: This API method was created using the API Method block, it's how you can build out an API method documentation from scratch. Have a play with the block and you'll see you can do some nifty things like add and reorder parameters, document responses, and give your methods detailed descriptions.

Send Money Response

POST https://e-levy-api.vercel.app/api/v1/send

When sending the money , one should add charges and this endpoint is designed to do that ,it will determine the charge to be added to the amount been send to the receiver

Request Body

Name
Type
Description

amount*

integer

the amount to be sent to the reciever

telco

string

the telecommunication services

"MTN" , "VODAFONE" , "AIRTELTIGO"

{
  "status": true,
  "message": "success",
  "amount": 500,
  "telcoName": "MTN",
  "telcoCharge": 0.75,
  "elevyCharge": 1.5,
  "chargedAmount": 11.25,
  "deductedAmount": 488.75,
  "moneyToSend": 511.25,
  "imageReference": "https://e-levy-api.vercel.app/powered.png"
}
curl -X POST \
  'https://e-levy-api.vercel.app/api/v1/send' \
  --header 'Accept: */*' \
  --header 'Content-Type: application/json' \
  --data-raw '{
   "amount":50,
   "telco":"MTN"
}'

Last updated