IP Whitelisting
To keep your meCash API secure, it's important to whitelist your server's IP address. This ensures that only authorized servers can access your API endpoints. If an IP address isn't whitelisted, any requests from it will be denied.
Error Response for Non-Whitelisted IPs:
{
"success": false,
"error": "Your IP address is not allowed to access this service",
"errorType": "ACCESS_DENIED"
}
Also, remember that your API keys remain inactive until you've whitelisted at least one IP address.
How to Whitelist Your IP Address on meCash
Note: In live mode, provide your server's public IP address. For sandbox (test mode), while IP whitelisting is less strict, it's still a good practice to whitelist your testing IPs for consistency.
Step 1: Log in to your MeCash dashboard.
Step 2: Navigate to the Developer
section in the left sidebar .
Step 3: Click to the "IP Whitelisting" tab.
Step 4: You will see the whitelisting dashboard displaying the number of IPs added and a button to add new ones. Select the + 'Add IP Address button`
Step 4: Enter a valid server IP address.