Wallet
Balance, ledger, card and USDC top-ups, auto top-up, invoices, the monthly plan and referrals.
One prepaid wallet per workspace, in USD, accounted in integer microdollars on an immutable ledger. Every hold, charge, release, deposit, credit, expiry and reversal is a ledger entry you can read back. This page covers the balance and its ledger, top-ups by card and by USDC, auto top-up, invoices, the monthly plan and referrals.
Balance
GET /v1/wallet
{
"currency": "USD",
"balance": "24.35",
"reserved": "0.1",
"available": "24.25",
"signup_credit": {"left": "0.72", "expires_at": "2026-11-04T09:30:01+00:00"}
}
reserved is held by in-flight runs; balance includes it, and available is what new runs can reserve against. signup_credit is present while the signup credit has money left: what is left of it and when it expires, 7 days after it was granted. What you spend counts against it first, and what is left at expiry leaves the wallet as a promotional_credit_expiry entry. trial_rate_until is present while a new workspace still settles at the Scale plan rate: for 7 days after sign-up, or until its first payment if that comes sooner.
Transactions
GET /v1/wallet/transactions
Newest first, limit default 50, max 200. There is no cursor: the endpoint returns the newest entries only.
{
"items": [
{
"id": "txn_...",
"type": "usage_charge",
"amount": "-0.05",
"balance_after": "24.3",
"reference": "run_...",
"note": null,
"created_at": "2026-09-02T09:30:01+00:00"
}
]
}
reference ties an entry to its cause: the run for holds and charges, the payment for a deposit. reservation and reservation_release entries move available, not balance: their balance_after does not change, and a run's usage_charge is what leaves the balance. type is one of:
| Type | Entry |
|---|---|
reservation |
a run's hold, taken before each provider call |
usage_ |
what a run was charged when it settled; an Apify run can get a second one minutes later, when Apify's final bill for it arrives (positive when part of the charge is returned) |
model_ |
the agent model behind a turn in the RouterGrowth app (app.routergrowth.com): the model's token cost at your workspace's rate, one entry per turn |
reservation_ |
the part of a hold a run did not use, or all of it when the run is not billed |
topup |
a deposit: a card checkout, an auto top-up refill or USDC over x402 |
promotional_ |
signup or promotional credit |
promotional_ |
what was left of the signup credit when it expired, 7 days after it was granted (zero when it was all used) |
referral_ |
a referral bonus, or its reversal (reference starts with reversal:) |
referral_ |
your share of a referred workspace's calls, or its reversal |
subscription_ |
a 30-day rental: a connected account from the moment it connects, and each renewal of a sending domain, an inbox or an email deliverability seat (warm-up, blacklist monitor, scheduled placement test), whose first 30 days are the run's usage_ |
plan_ |
a paid monthly plan fee, before tax, added as credit for the month it pays for |
plan_ |
what was left of a month's plan credit when the month ended (zero when it was all used) |
plan_ |
plan credit taken back because the plan payment was refunded or disputed |
refund |
a refunded deposit taken back out of the wallet |
chargeback |
a disputed deposit taken back out of the wallet (credited again if the dispute is won) |
manual_ |
a correction made by RouterGrowth support, with a note |
A refund, chargeback or reversal of money already spent can take the balance below zero; the next deposit settles it.
Top up
POST /v1/wallet/topups/checkout
{"amount": "20"}
The minimum self-service top-up is $10.00, in whole cents. The answer is a Stripe Checkout URL to open in a browser:
{"status": "checkout", "checkout_url": "https://checkout.stripe.com/...", "session_id": "cs_...", "note": "The wallet is credited by the Stripe webhook once payment succeeds."}
Checkout collects the billing address and tax ID and adds tax where it applies; the wallet is credited the amount you asked for, by the verified Stripe webhook once payment succeeds, never by this endpoint's response. The card is saved for auto top-up.
Top up with USDC (x402)
POST /v1/wallet/topups/x402
{"amount": "10"}
An agent with an API key and a USDC wallet can add credit with no card and no checkout page, over x402 version 2 (exact scheme, USDC on Base); a connected app cannot. The amount is in dollars and whole cents, $1 to $1,000 a payment, in the body or as ?amount=. The dashboard's top-up panel takes the same payment from a browser wallet.
- Without a payment, the answer is
402with the terms in thePAYMENT-REQUIREDheader; the body repeats them with amessage. - An x402 client signs a transfer authorization for those terms and sends the same request again with a
PAYMENT-SIGNATUREheader. - Once the transfer has settled on chain, the answer is
200, with the transfer in thePAYMENT-RESPONSEheader:
{
"status": "credited",
"amount": "10",
"currency": "USD",
"balance": "34.35",
"transaction_id": "txn_...",
"payment": {"id": "x4p_...", "network": "eip155:8453", "asset": "USDC", "payer": "0x...", "transaction": "0x..."}
}
The wallet is credited only once the transfer settles, never on the client's word. Sending a settled payment again returns the same receipt (Idempotent-Replay: true) and credits nothing more. A payment that cannot be taken answers 402 again with the terms, an error naming the reason and a message saying what to do; nothing moved. payment_unconfirmed means the payment went out and its outcome is not known yet: do not pay again (errors). A USDC top-up is a topup entry referenced x402:<transaction>; it is not a card payment and has no invoice.
Auto top-up
GET /v1/wallet/auto-topup
POST /v1/wallet/auto-topup
{"enabled": true, "threshold": "10", "amount": "20", "last_error": null}
After a run settles, if the available balance is below threshold, the card of your latest checkout top-up is charged amount (at least $10.00) on an invoice, and the wallet is credited once that invoice is paid. Refills are at least 10 minutes apart. Switching it on needs a completed checkout top-up, which saved the card; threshold and amount default to 10 and 20. When a refill fails, last_error names the card and the bank's reason, and refills pause for 24 hours instead of retrying the same card; a checkout top-up with a card that works switches refills to that card and re-arms them. Changing the setting needs a dashboard session: an API key can read it, not switch it on, so a leaked key cannot turn the saved card into a standing charge.
When spending takes the balance under $0.50 and auto top-up is not refilling it, the workspace owner gets one email (at most one a day) with a top-up link and, without a monthly plan, a link to start one.
Invoices
GET /v1/wallet/invoices
GET /v1/wallet/invoices/{id}
Every card payment gets an invoice: one per checkout top-up, per auto top-up refill and per monthly plan payment, with tax where it applies. The list is newest first, up to the 100 most recent:
{
"items": [
{
"id": "in_...",
"number": "ABCD1234-0007",
"kind": "topup",
"description": "Wallet top-up",
"status": "paid",
"total": "20.00",
"currency": "USD",
"created_at": "2026-10-12T09:30:01+00:00",
"paid_at": "2026-10-12T09:30:04+00:00",
"pay_url": null
}
],
"has_more": false
}
kind is topup, auto_topup, plan or other. total is what was charged, tax included, so it can be higher than the credit the wallet received. status is paid, or open for an invoice that is issued and still due (a plan renewal whose card was declined); pay_url is then the page to pay it on, and null otherwise.
One invoice in full adds what the document shows: issued_at, due_at, the issuer (seller), your billing details (bill_to: name, email, address lines, country code, tax IDs), the lines (description, quantity, unit amount, amount, and the period a plan line covers), subtotal, taxes, amount_paid and amount_due. The dashboard's Plans & wallet page draws the invoice from it: open one there to print it or save it as a PDF. The company name, billing address and tax ID go on the checkout page when you pay, and the invoice carries them. "Edit billing details" on the same page appears once the workspace has its first invoice and opens Stripe's billing page, where you change the name, address and tax ID the next invoices show.
Reading invoices needs a dashboard session, like changing auto top-up: they carry your billing name, address and tax ID.
Monthly plan
GET /v1/plan
POST /v1/plan {"plan": "plus"}
POST /v1/plan/cancel
POST /v1/plan/portal
GET /v1/plan reads the plan in effect (null on pay per call), the subscription behind it and the plans on offer:
{
"plan": {"key": "plus", "name": "Plus", "price_monthly": "99.00", "margin_discount_pct": 40, "until": "2026-11-28T09:30:04+00:00"},
"subscription": {"plan": "plus", "status": "active", "cancel_at_period_end": false, "current_period_end": "2026-11-25T09:30:04+00:00"},
"custom_rate": false,
"plans": [{"key": "starter", "name": "Starter", "price_monthly": "39.00", "margin_discount_pct": 25}]
}
margin_discount_pct is the share a plan takes off RouterGrowth's pay-per-call margin; the provider's cost is never discounted, and the fee is also added to the wallet as plan_credit for the month it pays for (how plans work). plan.until is when the discount stops unless another payment comes in, subscription.plan is the plan the next renewal bills, and custom_rate is true for a workspace with an agreed rate of its own. plans lists all four plans (one is shown here).
The other three calls change billing, so they need a dashboard session. POST /v1/plan with no plan subscription running answers checkout with a checkout_url; otherwise it changes the plan and answers upgraded (applies now and charges the prorated difference, refused if the card declines), scheduled (a downgrade, from the next renewal), resumed (a plan set to cancel renews again) or unchanged, with the fields above. POST /v1/plan/cancel answers cancelling: the plan runs to the end of the period already paid. POST /v1/plan/portal returns the url of Stripe's billing page for the saved card, billing details and past invoices.
Referrals
GET /v1/referrals
GET /v1/referrals/terms?code=<code>
GET /v1/referrals returns your referral code and link (minted on first call), the program terms, stats (referred, activated, earned) and one item per referred workspace: a masked email, joined_at, its status and whether your share is still running (share_active, share_until). On the public program the referred workspace gets $5 of credit on its first deposit of $20 or more, and you earn 50% of RouterGrowth's net revenue on its live calls for its first 90 days; terms carries the figures your own link offers (friend_bonus, min_deposit, revenue_share_percent, window_days) (program page). Self-referrals, refunds and disputes can reverse both: the rules are in the terms. GET /v1/referrals/terms needs no key: it returns the terms a referral link offers, and an unknown code reads as the public program.
Reading this as an agent? This page as markdown: /docs/api/wallet.md · every page: /docs/llms.txt