Indonesia SNAP
Static IP for Indonesia SNAP Bank APIs
For a SNAP API that checks your source IP, use stable egress addresses registered with your provider. This guide shows how to route those calls through QuotaGuard Shield, submit its assigned pair, and check egress from your deployed app. Shield encrypts the connection between your app and the proxy.

What SNAP asks for
SNAP (Standar Nasional Open API Pembayaran) is Bank Indonesia's national open payment API standard. Bank Indonesia established it through Governor Decree No. 23/10/KEP.GBI/2021 on 16 August 2021, and regulation PADG No. 23/15/PADG/2021 makes it mandatory. Article 14 requires API providers and payment-provider users to implement SNAP. Providers must also make sure their non-payment-provider partners implement it.
ASPI's technical and security standard (version 1.0.2, September 2024) includes two IP requirements:
- Section 1.5 lists the technical data a provider asks for when you apply. Item 4 is "Informasi whitelist IP" (IP whitelist information). Item 6 is your callback URL, and item 7 is the public key used to validate X-Signature.
- Section 2.1.13, other security aspects, lists "penerapan whitelisted IP pada perangkat/aset yang digunakan untuk Open API Pembayaran berbasis SNAP" (applying whitelisted IPs on the devices and assets used for SNAP-based open payment APIs).
The standard asks for whitelisted IPs rather than using the word "static". For an API that checks source IPs, keep your egress addresses registered with the provider.
PADG Article 26 sets phased integration deadlines: 30 June 2024 for the prospective-user cohorts in paragraphs (1)(d) and (3)(b), and 30 June 2025 for micro, small and medium enterprises and nonprofits in paragraphs (1)(e) and (3)(c).
| Source | What it says | Checked as of |
|---|---|---|
| Bank Indonesia SNAP page | Decree 23/10/KEP.GBI/2021, 16 Aug 2021 | Dec 4, 2026 |
| PADG No. 23/15/PADG/2021 | Art. 14: implement SNAP | Dec 4, 2026 |
| ASPI standard v1.0.2 | 1.5 item 4 and 2.1.13: IP whitelist | Dec 4, 2026 |
Check your provider's onboarding requirements
- BCA. BCA's SNAP page lists its SNAP-based APIs, including balance information, account statements, transfers, Virtual Account and QRIS MPM. Its FAQ points developers to the ASPI developer site for the technical and security standard.
- Bank Mandiri. The Mandiri API page lists Virtual Account and QRIS among its API features, and applicants follow the SNAP governance set by Bank Indonesia for SNAP-spec services.
- Ayoconnect. Its integration and security guide says merchants "are required to prepare and register their public server IP addresses with Ayoconnect before initiating API requests, where IP whitelisting is applicable", in line with SNAP. Sandbox and production may use different IP configurations.
- Midtrans. Midtrans enforces its own whitelist on the Disbursement API. For its requirements, see Fix Midtrans ip_not_whitelisted.
These provider requirements were checked on Dec 4, 2026. Use your provider's onboarding form to confirm which information to submit.
Outbound calls and callbacks are different lists
Your calls to the provider. When your provider enforces an API allowlist, it checks the public source IP of the connection. Submit the public egress addresses your server uses for that API.
The provider's callbacks to you. If the product sends callbacks, the provider calls your registered HTTPS URL. Ayoconnect calls its own outbound addresses "Callback IP" addresses. Where your provider requires an inbound IP allowlist, use its documented callback addresses. Keep that separate from the provider's allowlist for your outbound calls.

Route SNAP calls through Shield
Use Shield, our TLS-wrapped proxy, for bank traffic. It's the product we support for regulated data. Your app opens a TLS connection to the proxy on port 9294 and sends a CONNECT request. We terminate that outer TLS wrapper to authenticate you and select the destination.
Your SNAP request travels to the bank in a separate inner TLS session, with the signed headers and body preserved. That inner session stays encrypted between your app and the bank.
For outbound HTTPS, the proxy sees the bank's host and port. Your request and response headers, authorization headers and message bodies stay inside the inner TLS session, outside the proxy layer's access and logs.
- Send only your SNAP client through the proxy. Other traffic can keep its normal route.
- Each QuotaGuard subscription includes two static outbound IPs. Submit both through the provider's onboarding process for each environment where it enforces an allowlist. Confirm the submission method and scope with the provider.
- Before submitting the addresses, check that SNAP requests leave through the proxy. Run this check from your deployed app rather than your laptop.
- For products with callbacks, register your HTTPS receiver. Apply the provider's callback IP rules separately, on your side.
To check Shield egress without calling the bank, supply QUOTAGUARDSHIELD_URL from your deployment's secret store and leave shell tracing off. From the deployed environment, use a curl build that supports HTTPS proxies:
https_proxy="${QUOTAGUARDSHIELD_URL:?Missing Shield proxy URL}" \
curl --disable --noproxy '' --fail --silent --show-error \
--max-time 10 https://ip.quotaguard.comThe JSON ip should match either address assigned to the subscription. This checks curl's route for the echo host. Verify the bank client's proxy settings and use the provider-approved onboarding check for the actual bank path. The FAQ below separates this from BRI's signed token request.
When Static fits
Static provides HTTP and SOCKS5 proxying along the same outbound route. For HTTP and HTTPS traffic, use port 9293. Static uses a plain HTTP connection between your app and the proxy, carrying the CONNECT wrapper, proxy credentials and destination host and port in plaintext on that hop. Your HTTPS payload stays end-to-end encrypted between your app and the bank.
Use Shield with an HTTPS-proxy-capable client for regulated bank traffic. Static provides a plain HTTP proxy connection for general API workloads where that proxy-hop configuration is appropriate.
FAQ
Does Bank Indonesia's SNAP standard require a static IP?
The SNAP technical and security standard calls for IP allowlisting. Section 1.5 lists IP whitelist information among the onboarding details, and section 2.1.13 calls for allowlisting on SNAP systems and supporting assets. The wording is about allowlisting, not buying a static IP or using a particular proxy.
For an internet API that checks source IPs, use stable public egress addresses so new connections keep matching the provider's list. Bank Indonesia established SNAP, and ASPI manages it. Ask the bank or payment provider how to register addresses for your product and environment.
Which IP addresses do I give BRI, and is X-IP-ADDRESS one of them?
Submit the public source addresses that the bank will see on connections from your app. With QuotaGuard Shield's load-balanced route, give the provider both outbound IPv4 addresses from the subscription's connection details. If the form asks for CIDR, enter each as a separate /32. Use the addresses, not the proxy hostname or the app's private IP.
The SNAP transaction headers describe X-IP-ADDRESS as the end user's IPv4 address, not your server's connection source. Ask Bank Rakyat Indonesia (BRI) where to submit the pair and which environment and product the approval covers. Setting a header doesn't register an IP.
Does passing the ASPI sandbox mean my BRI production app is ready?
No. The ASPI testing application checks your implementation against the SNAP standard. BRI's go-live process is separate: it calls for registration and UAT paperwork, then a production app with production credentials in My Apps.
Keep the base URL, credentials, signing keys, and permitted egress IPs together in each environment's deployment config. BRI lists sandbox.partner.api.bri.co.id and partner.api.bri.co.id for QRIS Dynamic MPM v1.0. Use the host and path approved for your product. Confirm production IP approval separately; sandbox success doesn't establish it.
What method, path, and keys does BRI's SNAP B2B token endpoint use?
For BRI's published SNAP OAuth v1.0 flow, send POST /snap/v1.0/access-token/b2b with JSON {"grantType":"client_credentials"}. Set Content-Type: application/json, X-CLIENT-KEY to your BRI client ID, and X-TIMESTAMP to the timestamp used to sign the request. For X-SIGNATURE, sign client_ID + "|" + X-TIMESTAMP using SHA256withRSA and your private key.
Register the corresponding public key in BRI's Manage Snap Key. Keep the private key in your backend. Reuse the returned accessToken until it needs refreshing, using expiresIn as its lifetime in seconds rather than fetching a token for every API call. Keep sandbox tokens separate from production tokens.
Will Shield change my X-SIGNATURE, and what should I check if BRI rejects it?
Shield leaves the bank-facing HTTPS session encrypted between your app and the bank. The signed headers and JSON body travel inside that session. Sign the bank request in your app, using the bank path, not the proxy URL. The outer TLS connection to Shield carries CONNECT and proxy authentication.
BRI's QRIS Dynamic MPM v1.0 reference uses HMAC-SHA512 with the client secret for protected calls, distinct from the RSA signature on the token request. Check the uppercase method, endpoint path, bearer token value, timestamp, and SHA-256 digest of the minified JSON body against what the client actually sends.
Pay particular attention to query strings: ASPI's general signing notes include URL parameters, while BRI's QRIS reference describes a path without the query. Use the signing rules for your exact endpoint and version. Confirm the accepted timestamp format and offset with BRI if its examples and field rules differ.
How do I route BRI SNAP calls through Shield without proxying the rest of my app?
Configure the backend HTTP client that makes the bank calls. For regulated bank traffic, use Shield's https:// proxy URL on port 9294 with a client that supports TLS to the proxy. The API URL remains the bank's HTTPS URL. Apply this route to token, transaction, and status calls that use the bank's allowlisted path.
In Node.js, use a dedicated Undici ProxyAgent. This example uses Undici 8.0.0 on Node.js 22.19.0 or later. Supply the full connection URL as a runtime secret named QUOTAGUARDSHIELD_URL.
import { fetch, ProxyAgent } from "undici";
const proxyUrl = process.env.QUOTAGUARDSHIELD_URL;
if (!proxyUrl) throw new Error("Missing QUOTAGUARDSHIELD_URL");
const dispatcher = new ProxyAgent({
uri: proxyUrl,
requestTls: { minVersion: "TLSv1.3" },
});
export function snapFetch(url, init = {}) {
return fetch(url, { ...init, dispatcher, redirect: "error" });
}
Reuse the dispatcher and pass a destination from server-side config. requestTls sets the bank-facing TLS minimum, not the proxy's. An SDK with its own transport needs its own proxy settings.
Keep the proxy URL, BRI private key, and client secret in your backend's secret store. Keep them out of browser bundles and logs, and don't log bearer tokens or signed request bodies.
How do I verify SNAP egress from the deployed app without sending a payment?
From the deployment that makes the bank calls, send an HTTPS GET to QuotaGuard's IP check using the same client's proxy settings, with no bank headers or payload. Read the ip field in the JSON response and compare it with the assigned pair. Either address is a pass for that connection.
For a curl-only check, supply QUOTAGUARDSHIELD_URL through the deployment's secret configuration. Use a curl build with HTTPS-proxy support and keep shell tracing off so the secret stays out of the trace.
https_proxy="${QUOTAGUARDSHIELD_URL:?Missing Shield proxy URL}" \
curl --disable --noproxy '' --fail --silent --show-error \
--max-time 10 https://ip.quotaguard.com
The curl command checks curl's route, not your SDK's. Even an echo from the SDK only proves the route to the echo host. Check the bank hostname against the client's proxy and bypass rules. For bank-side confirmation, use the non-payment check approved for your onboarding environment.
Why do I keep seeing only one of the two Shield IPs?
Shield selects egress per connection. If the client reuses an open tunnel, its requests keep the same address. Successive requests aren't supposed to alternate. Register both IPs on the provider's list because a new connection through the load-balanced hostname can use either one.
To check the two nodes independently, use the node-specific -a and -b hostnames for two separate IP echo checks. That verifies each node's egress, not bank approval or automatic failover. Keep the load-balanced hostname in production when the provider can accept both IPs.
Does TLS 1.3 apply to the Shield hop or the SNAP connection to the bank?
Configure TLS 1.3 on the bank-facing connection. ASPI section 2.1.10 specifies TLS 1.3 and limits its listed TLS 1.2 fallback to 30 June 2026. The TLS session from your app to Shield is separate from the session your app negotiates with the bank inside CONNECT.
If a handshake fails, check the hostname and trust configuration for the failing hop. With a curl build that supports TLS 1.3, --tlsv1.3 sets the destination TLS minimum. Proxy-side TLS settings affect a different handshake. Keep certificate verification enabled on both hops.
Does a 401, 403, or 407 mean BRI rejected my source IP?
A 407 on CONNECT is proxy authentication. Make sure the deployed client is using the current Shield connection details and an active subscription. A TLS failure or a timeout without an HTTP response doesn't identify an allowlist problem.
For a response from BRI after the tunnel opens, check the operation's responseCode and responseMessage. The BRI v1.0 token table uses 4017300 for several failures, including an unauthorized client, signing string, or signature. The HTTP status alone isn't an IP diagnosis.
Verify the deployed client's egress, then ask BRI to confirm the observed source IP and allowlist decision for the affected environment. For troubleshooting, record the timestamp, API path, and error code. Leave credentials and transaction payloads out of the support report.
Do I give the bank my Shield egress IPs for incoming SNAP callbacks?
No. Submit your app's public egress IPs for the provider's outbound API allowlist when it requires one. For a product that sends callbacks, register the HTTPS receiver URL and, where required, allowlist the provider's callback source IPs on your side.
Ayoconnect's guide calls these separate settings API Request IP and Callback IP. BRI documents callbacks for QRIS Dynamic MPM. Use the source addresses and callback validation rules supplied for your specific product and environment. Outbound Shield settings don't configure the callback receiver.
Is the Midtrans Disbursement allowlist the same as the BI SNAP allowlist?
No. Midtrans's Disbursement guide says BI SNAP has its own IP settings. If ip_not_whitelisted comes from the Disbursement API, check Settings → Access Keys → IP Whitelist for API in Midtrans and verify that the caller's public IP has Disbursement permission.
If your endpoint is a BI SNAP API, use its provider's onboarding process. That includes Midtrans's own BI SNAP integrations. A Disbursement allowlist entry doesn't establish access to those endpoints or to BRI.
How do I change Shield regions without losing bank API access?
A Shield region move changes the outbound pair. Every provider reached through that subscription needs the new addresses. List the affected products and environments, then ask each provider to approve both new IPs before moving traffic. If you're switching from Static to Shield instead, register the new Shield pair; the products use separate IP pools.
Coordinate a window when both routes can stay in use if your providers accept both pairs. Deploy the new connection URL, verify egress from the deployed client, and confirm access with the provider before retiring the old entries. ASPI section 1.6 describes provider-specific procedures for changing technical data.
Should I retry a BRI SNAP transfer if the request times out?
Check the original transfer's status before resubmitting it. The BRI Interbank Transfer v1.0 table lists 2021800 as in progress and 5041800 as pending. A timeout can leave you without a final result even if the bank received the transfer.
Save the original partner reference and the bank reference if returned. Use the bank's approved status inquiry for that product and environment. The SNAP bank status inquiry standard distinguishes the inquiry's responseCode from the transfer's latestTransactionStatus. Reconcile the original result and follow BRI's retry rules before sending another transfer.
Give your SNAP integration an address the bank can whitelist
Use Shield for regulated bank traffic. For general API traffic where a plain proxy hop is appropriate, choose Static.