One Python package for Indonesia's QRIS merchant APIs — read your own merchant data with typed, tested, offline-friendly code:
- 🧾 GoPay / GoBiz — OTP or email+password login, merchants, transactions, payouts, dynamic QRIS, payment watcher.
- 🛍️ ShopeePay — OTP login (or manual
B:token), stores, normalized feed with issuer lookup, payment watcher. - 🔬 Researched, not guessed — every endpoint traced to a traffic capture or a reference repo; unknowns are marked TODO, never shipped as fact.
Each merchant has its own guide with the full tutorial and flow diagrams:
| Provider | Guide | Status |
|---|---|---|
| GoPay / GoBiz | docs/gopay/ | ✅ auth, users, merchants, transactions, payouts, QRIS, watcher |
| ShopeePay partner | docs/shopee/ | ✅ OTP login, stores, transactions + issuer, watcher (B: or OTP) |
Research/educational use only. Not affiliated with GoTo/GoPay/GoBiz or Shopee/Sea Group. Read-only by design in v0.3.0 — it only reads your own merchant data (login + history + payouts) and never moves money.
English. This is an unofficial, independent research project. It is NOT affiliated with,
endorsed by, or supported by GoTo, GoPay, GoBiz, Shopee, Sea Group, or any reference-repo author. It
is provided for research and educational purposes only, without warranty of any kind. Using
unofficial APIs may violate the providers' Terms of Service and can lead to rate limits, suspension,
or termination of your accounts. You use this software entirely at your own risk — the author
(AlfinAI) shall not be liable for any loss, damage, account action, or legal consequence arising
from its use. Credentials and tokens you enter stay on your machine (they are only ever sent to
the providers' own official servers) — never commit .env, *.har, or token/OTP cache files to any
repository.
Bahasa Indonesia. Ini adalah proyek riset independen yang tidak resmi (unofficial). TIDAK
berafiliasi, didukung, atau disetujui oleh GoTo, GoPay, GoBiz, Shopee, Sea Group, maupun author repo
referensi mana pun. Disediakan hanya untuk riset dan edukasi, tanpa jaminan apa pun. Penggunaan
API tidak resmi dapat melanggar Syarat & Ketentuan penyedia dan berakibat akun dibatasi,
ditangguhkan, atau dihapus. Segala risiko dan akibat yang timbul sepenuhnya menjadi tanggung jawab
pengguna — author (AlfinAI) tidak bertanggung jawab atas kerugian, kerusakan, tindakan terhadap
akun, atau konsekuensi hukum apa pun dari penggunaan software ini. Kredensial/token hanya
tersimpan di mesin Anda (dan hanya dikirim ke server resmi penyedia) — jangan pernah commit file
.env, *.har, atau cache token/OTP ke repo mana pun.
- Installation
- Core concepts (money · sessions · errors)
- Quickstart
- Provider guides
- Roadmap
- Development · Research · Credits · Contributing · Contact
pip install QrisMerchantIDRequires Python 3.10+ and one dependency: httpx.
Three things to understand before anything else:
- Money differs per provider — never mix them. GoPay answers minor units (sen):
gross_amount: 10600000= Rp106.000, convert withgopay.money.to_rupiah(). ShopeePay answers whole rupiah as grouped strings:"409.662"= Rp409.662, parse withshopee.money.parse_id_amount(). Never guess. - Sessions are yours to keep. GoPay: cache the
access_token, revalidate cheaply (merchants.search()); on HTTP 401, log in again. ShopeePay: log in with OTP andrefresh_session()without re-OTP, or paste a manualB:token; on codes200020/2010000, renew it. - Every HTTP error raises
ApiException. It carries.http_status,.code(when the provider sent one),.payload(full body), and a readable message. Transport errors (DNS/connect/timeout) retry with backoff; HTTP errors never retry.
from qrismerchantid import GoPayMerchant, ShopeePayPartner
# --- GoPay: pick OTP or email login, then read your history ---
gopay = GoPayMerchant()
otp = gopay.auth.login(method="otp", phone_number="0812xxxxxxx")
session = gopay.auth.login(method="otp", otp=input("OTP: "), otp_token=otp["otp_token"])
# ...or one step: gopay.auth.login(method="email", email="you@shop.id", password="secret")
txns = gopay.transactions.analytics("G...", days=7)
print(txns["total"], "transactions")
# --- ShopeePay: token (or sp.auth OTP login), then watch a store ---
sp = ShopeePayPartner(token="B:...") # token how-to: docs/shopee/token.md
print(sp.stores.list_stores())
watcher = sp.watch(7)
watcher.seed()
paid = watcher.wait_for_payment(409662, timeout=300) # Rp409.662
print("PAID:", paid["id"])- GoPay / GoBiz merchant → — login (OTP + email/password), session cache, users, merchants, transactions, payouts, dynamic QRIS, payment watcher, configuration, and the login/payment flow diagrams.
- ShopeePay partner → — OTP login + session renewal, manual-token setup, stores, normalized transaction feed with issuer lookup, whole-rupiah money rules, payment watcher, configuration, and the payment flow diagram.
- GoPay provider — auth (OTP + email), merchants, transactions, payouts, QRIS, watcher.
- ShopeePay provider — OTP login, stores, feed + issuer lookup, watcher.
- Live verification against real partner accounts (TODO-S1, TODO-R3) — field reports welcome in Discussions.
-
v0.2.0PyPI release. -
v0.3.0PyPI release. - Your idea here — open a Discussion or a feature request.
pip install -e ".[dev]"
pytest # 100% offline — never hits the real API
ruff check src tests && ruff format --check src tests
mypy src # strict
python -m buildRunnable flows (need real merchant credentials via env, except QRIS): examples/ —
01_login_otp.py, 02_merchants.py, 03_transactions.py, 04_qris_dynamic.py,
05_watch_payment.py, 06_shopee_stores.py, 07_shopee_transactions.py, 08_shopee_watch.py,
09_shopee_login_otp.py.
Full endpoint research (repos surveyed + anonymized HAR verification):
research/RESEARCH_GOPAY_SHOPEEPAY.md + the ShopeePay deep-dive
research/ANALYSIS_SHOPEEPAY_PHASE_B.md + the GoBiz OTP incident report
research/REPORT_GOBIZ_OTP_2026-09-19.md. Per-service pages: docs/gopay/, docs/shopee/.
APK research knowledge base (GoPay Merchant 2.3.0 + GoFood Merchant 5.49.0 — ±240 endpoints, hosts, deeplinks, masked security findings):
- 📚 Start here: KB index · machine-readable data in
reference/· agent guide - 🔁 Reproduce it yourself / port to another language: APK research reproduction guide
- 🛡️ Security researchers & vendors: responsible disclosure (also see SECURITY.md)
API knowledge: kavionn/gobiz-payment, warungerik/API-GOPAY-MERCHANT, alhifnywahid/merchantid, ahmadzakiyox/gopay-api-gateaway, ahmadzakiyox/shoppepay-api-gateway, namtxs/gopay-api. Python package maintained by AlfinAI.
- 🐞 Found a bug? Open a bug report — offline repro snippets get fixed fastest.
- 💡 Want an endpoint? Request it with a traffic sample or upstream link as evidence.
- 💬 Questions, ideas, show-and-tell → Discussions.
- 🔒 Security issue? See SECURITY.md — never file it publicly.
- 🤝 Pull requests welcome — see CONTRIBUTING.md.
Questions, bug reports, or research collaboration — reach me on Telegram: @JoestarMojo.
If this project saves you time, consider sponsoring — it keeps the research going:
🇮🇩 Indonesia: Saweria
MIT — see LICENSE.
