Skip to main content

Payment Limitation

To get the payment limitation of a single country code in the NoWallet system, use the following endpoint:

GET{baseUrl}/limitation/payment
note

Additionally, the request must include the country query parameter in the URL to specify the country code for which you want to check the payment limitation. If for example you want to check the payment limitation for Cameroon, the URL would look like this:

{baseUrl}/limitation/payment?country=CM.

Request Parameters

When checking the payment limitation, 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 check the payment limitation of a single country code 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.

# Example cURL command to get payment limitation
curl -X GET {baseUrl}/limitation/payment?country=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'

Response Parameters

The response from the API will include the following parameters:

StatusMeaningDescriptionSchema
200OKpayment limitation fetched successfullyInline
400Bad RequestBad Request possible errorsNone

Response Schema

For status 200, the response will include the following fields:

NameTypeRequiredRestrictionsDescription
anonymous[PaymentLimitationAmountDto]falsenonenone
» max_amountnumbertruenonetransaction maximum amount
» min_amountnumbertruenonetransaction minimum amount
» methodstringtruenonetransaction method of limitation
» countrystringtruenonetransaction country code of limitation

Response Types

The response will be in JSON format and will include the payment limitation information for the specified country code.

Success Response (200 OK)

Example of a successful response with payment limitation informations for Cameroon.

[
{
"max_amount": 100000,
"min_amount": 10,
"method": "CASHIN",
"country": "CM"
}
]

Error Response (400 Bad Request)

Bad Request possible errors

COUNTRY_CODE_NOT_FOUND
{
"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"
}

Enumerated Values

The following enumerated values are used in the API:

  • Method: The method of payment limitation can be one of the following:
    • CASHIN: Represents a cash-in transaction.
    • CASHOUT: Represents a cash-out transaction.
    • MERCHANT: Represents a merchant transaction.
  • Country: The country code for which the payment limitation is applicable. This should be a valid ISO 3166-1 alpha-2 country code (e.g., CM for Cameroon).

This table provides a summary of the enumerated values used in the API:

PropertyValue
methodCASHIN
methodMERCHANT
methodCASHOUT
countryDZ
countryAO
countryBJ
countryBW
countryBF
countryBI
countryCM
countryCV
countryCF
countryTD
countryKM
countryCG
countryCD
countryCI
countryDJ
countryEG
countryGQ
countryER
countryET
countryGA
countryGM
countryGH
countryGN
countryGW
countryKE
countryLS
countryLR
countryLY
countryMG
countryMW
countryML
countryMR
countryMU
countryYT
countryMA
countryMZ
countryNA
countryNE
countryNG
countryRE
countryRW
countryST
countrySN
countrySC
countrySL
countrySO
countryZA
countrySS
countrySD
countrySZ
countryTZ
countryTG
countryTN
countryUG
countryEH
countryZM
countryZW

Was this page helpful?