Midtrans sends (outgoing) HTTP notifications / webhook status update from various IP addresses to your notification url (as backend to backend request). In case your system needs to whitelist IP addresses, please add Midtrans CIDR given below to your whitelist.
Production Environment: 184.108.40.206/24 220.127.116.11/32 18.104.22.168/23 22.214.171.124/32 126.96.36.199 188.8.131.52 Sandbox Environment : 184.108.40.206 220.127.116.11
Change Notice for Production Environment per Jan 20th, 2023
As part of improving our service reliability
- New IP addresses are added: 18.104.22.168 and 22.214.171.124
- The older IP ranges with prefixes of 103.x.x.x will gradually no longer be used, a few weeks after.
Although we are providing the IP list, we don’t quite recommend relying on IP whitelisting to ensure notification authenticity. Instead, we strongly recommend you to verify the authenticity by implementing the methods explained here.
If you are unable to receive notification from Midtrans, please ensure that your infrastructure is allowing HTTPs connection from the above-mentioned IP addresses. Additionally try to follow this troubleshooting section.
Midtrans API endpoints & URLs are publicly accessible via the internet, by default you won’t need to whitelist anything on your side to be able to send API requests to Midtrans.
But only in case your network/infrastructure setup need to, or if you are still unable to send request to Midtrans, please ensure that you have whitelisted the mentioned domain names below.
Midtrans API endpoint is distributed and protected with multiple layers of security, it does not have any specific IP address. So, please whitelist our API domain names mentioned below.
api.midtrans.com app.midtrans.com api.veritrans.co.id
api.sandbox.midtrans.com app.sandbox.midtrans.com api.sandbox.veritrans.co.id simulator.sandbox.midtrans.com
If it is necessary for you to whitelist IP addresses instead of the Domain name, you can refer to the IP range list. Although this is not recommended. Do so at your own risk, as the IP range may change without notice, which poses the risk of breaking your integration.
Updated 6 months ago