Skip to main content

Operators Data

This page provides information about the operators data used in the Nowallet API. The operators data is used to identify the operator code and its corresponding currency for payment transactions.

To get the list of operators supported by each country code, you can use the following endpoint:

GET{baseUrl}/operators/data
note

For example, if you want to get specific operators about Cameroon, you can use the following URL:

{baseUrl}/operators/data?country=CM.

Request Parameters

When retrieving the operators data, the request must include the following parameters in the URL:

NameInTypeRequiredDescription
countryquerystringtruecountry code will be checked

Code Samples in Multiple Languages

To help you integrate the NoWallet API seamlessly, we provide code samples in various programming languages. These examples demonstrate how to make a request to the API endpoint and handle the response.

  • Shell (cURL): For quick testing and command-line usage.
  • HTTP: Raw HTTP request format for understanding the structure.
  • JavaScript: Using fetch for browser or Node.js environments.
  • Ruby: Using the rest-client library for Ruby applications.
  • Python: Using the requests library for Python projects.
  • PHP: Using GuzzleHttp for PHP integrations.
  • Java: Using HttpURLConnection for Java applications.
  • Go: Using the net/http package for Go projects.

Example Request

Below is an example of how to retrieve the operators data using different languages. Select the tab corresponding to your preferred language to view the implementation.

note

Ensure you replace {access-token} with your actual API token and provide the required request parameters.

# Exemple de commande cURL pour obtenir les données des opérateurs
curl -X GET {baseUrl}/operators/data?country=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

Response Parameters

The response from the API will include the following parameters:

StatusMeaningDescriptionSchema
200OKoperator fetched successfullyInline
400Bad RequestBad Request possible errorsNone

Response Types

The response from the API will include the following parameters in JSON format:

Success Response (200 OK)

Example response for a successful request

{
"name": "MTN MONEY",
"codeoperator": "MTN",
"logo": "https://www.example.com/assets/img/MTN.png",
"code": {
"MERCHANT": "ORANGEMONEYMERCHANTCODE",
"CASHIN": "ORANGEMONEYCASHINCODE",
"CASHOUT": "none"
},
"startwith": ["01", "02"],
"otpstarter": {
"MERCHANT": false,
"CASHIN": false,
"CASHOUT": false
},
"active": true,
"secure": {
"MERCHANT": false,
"CASHIN": false,
"CASHOUT": false
},
"instruction": {}
}

Error Response (400 Bad Request)

Bad Request possible errors

{
"statusCode": 400,
"error": "COUNTRY_CODE_NOT_FOUND",
"message": "It seems that this country code does not exist or You can't perform this action, this token does not allow you"
}

Was this page helpful?