Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.1 KB

File metadata and controls

41 lines (29 loc) · 1.1 KB

weTalk-API 📲

Description

A mobile top-up API created on Flutterwave and Reloadly APIs.

Endpoints

/countries

A GET request which sends a list of supported countries on Reloadly.

Expected Response : 200 OK

/operator

A POST request which allows you retrieve operator information on the mobile number inputed. Body of request should be in the format 👇🏽👇🏽

{ countryisocode: "recepient's country code",
  phoneNumber: "recepient's phone number" }

Expected Response : 200 OK

/verify

A POST endpoint which verifies the user's payment via Flutterwave's verify endpoint. If the verification is successful, airtime top-up endpoint on Reloadly runs. Format for body 👇🏽👇🏽

{ operatorId: "341",
  amount: "100",
  recipientNumber: "+234xxxxxxxx",
  recipientCountryCode: "NG",
  transactionRef: "2509533"}

Expected Response : 200 OK

In the event that any endpoint does not work; the API responds with a 400 Bad Request error code.

Postman Documentation Link:

https://documenter.getpostman.com/view/14420044/UUxwBUHv