API Overview
Here, you’ll find detailed information about our APIs – what they’re for, how to use them and when to use them.
In order to start using Epay’s APIs to receive and/or disburse payments, you would need to have an Epay Account and also create an Integration. Head over to our Signup page to create a new Epay account.
Kindly note that your
telephonewill be verified.
Introduction
The Epay API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication and verbs.
Once registered, log into your account and head over to your settings sections on your dashboard to generate a Merchant Key. This Key should be kept confidential, as it would grant you access to all protected API Resources as well as direct incoming funds to your Epay Wallet.
To help you get oriented with Epay’s API and what it can help you do, let’s start by defining some basics:
- The endpoints listed are to be applied to the base Url https://epaygh.com/api
- All payments received are instantly deposited into your Epay wallet
- All API endpoints except Authorization requires authentication
- An Integration must be created on your Epay account to start using the API
- All API requests must be made over HTTPS.
- All Bulk fetches via a “list” endpoint are Paginated
- All API endpoints are versioned
- All Charge API allow payments from only our payment methods
API Resources / Endpoints
HTTP Status Code Summary
Handling Errors
Example API Error Responses
The API by default returns almost the same content structure when a call fails. Please take note of the structure below since this will no longer be mentioned in the documentation of the various individual calls.
{
"success": false,
"error_type": "authentication_error",
"message": "We couldn't verify your identity!"
}
{
"success": false,
"error_type": "invalid_request_error",
"message": "Not a valid API request with missing parameters"
}
{
"success": false,
"error_type": "authentication_error",
"message": "Your identity couldn't be validated!"
}
{
"success": false,
"error_type": "momo_error",
"message": "Ooops! We encountered an issue trying to charge
the mobile wallet"
}
Next, learn more about our API Authentication.