Skip to content

Docs

API reference

JSON · HTTPS · https://stabletally-api.stabletally.workers.dev

Public

GET/v1/leaderboard
Ranked merchants with MRR, subscribers, revenue (30d), chain ids, and mrrProvider (part read from gateways).
GET/v1/merchants/:slug
Profile, verified wallets, MRR history, recent payments, sources (onchain | provider), gateway payments.
GET/v1/indexer/status
Last indexed block per chain and token.

Pay

Open CORS. POST rate-limited to 20/min per IP on /intents.

GET/v1/pay/config?merchant=|key=
Networks this merchant can receive on.
POST/v1/pay/intents
{ merchant | invoice, amount, chain, token } → id, exact amount, to, expiresAt.
GET/v1/pay/intents/:id
Status (pending | confirming | paid | underpaid | expired), confirmations x/N, payment.
POST/v1/pay/intents/:id/tx
{ txHash } hint: shows confirming early. Display only.
POST/v1/pay/intents/:id/payer
{ address } of the connected payer (underpaid rule).
GET/v1/pay/invoices/:id
Public invoice for the hosted page (no metadata or email).

Merchant

Authorization: Bearer sk_live_…

POST/v1/invoices
Create an invoice. Idempotency-Key supported.
GET/v1/invoices/:id
Retrieve an invoice.
GET/v1/invoices
List: limit, status, startingAfter → data, hasMore.

Errors

Non-2xx responses carry { "error": "code" }. 400 invalid request · 401 key · 404 not found · 429 rate limit.