Skip to content

Docs

Gateway connections

If you get paid through OxaPay or Cryptomus, connect the gateway under Connections and that revenue counts toward your MRR. Read-only.

Which key to use

OxaPay
Merchant service → API keys → Merchant API key.
Cryptomus
Settings → API → Payment API key plus your merchant UUID.

Never use a payout key. Stabletally only reads your payment history and cannot create payments, withdrawals or swaps. Before saving a key we read one page of payment history with it; a payout key can’t, so it is rejected.

Sync

Every hour we read new paid payments (OxaPay Paid; Cryptomus paid or paid_over). The first sync reads up to 400 days. Each payment is stored once per (connection, gateway payment id).

USD value: the invoice amount when its currency is USD or a stablecoin (1.00 USD), or the stablecoin amount the customer paid. Payments with no USD figure (e.g. a EUR invoice paid in BTC) are skipped: we never invent exchange rates.

Customers and MRR

Same rules as on-chain: the same customer paying every 30 days (±5) or 365 days (±15) is a subscription; MRR = monthly + yearly/12; everything else goes to Revenue (30d). The customer is not the sending wallet (gateways use their own addresses) but:

1
The email the gateway gives (OxaPay). We store only a SHA-256 hash, never the email.
2
An order_id shaped customer:anything groups by customer. E.g. cus_42:2026-11.
3
Otherwise the whole order_id; without one, each payment is a one-off.

On-chain cross-check

When a payment carries a transaction hash on Base, Arbitrum One, Polygon, OP Mainnet, Ethereum or BNB Chain, we fetch its receipt: a successful transaction paying the gateway’s deposit address ⇒ “Verified on-chain”. TRON, BTC and other networks stay “Gateway-reported”.

Your public page always keeps both sources apart: on-chain MRR (transfers to verified wallets) and MRR via gateways (figures from the gateway API).

Security

The key is encrypted with AES-256-GCM and never shown again (only its last 4 characters). Disconnecting deletes the key and every payment read with it, and recomputes your MRR. You can revoke the key at the gateway at any time.

Gateways apply their own country restrictions; Stabletally does not work around them.