Changelog
2026-11-14
- Several internal bookkeeping fields that were never documented are no longer returned in invoice objects. Every documented field is unchanged.
POST /api/webhooksandPATCH /api/webhooks/:id: a localhost / private-IP URL or a malformed URL now gets a plain-Englishmessageinstead of a raw schema error. Which URLs are accepted and theerrorcode are unchanged.- Documentation corrections (no behaviour change). An API key never reaches wallet or webhook endpoints, with or without 2FA — the old wording said it could replace a wallet without 2FA. A payment arriving after an invoice reached
status: 'expired'is not credited to that invoice; the invoice staysexpired. Dedupe webhooks on(event, invoice_id)— the timestamp changes on every retry.GET /api/public-keys/:id/balanceand/addressesare dashboard-only (an API key gets403). REST samples now show amounts as numbers, and webhook samples show the plain-decimal strings actually sent.
2026-11-13
- Managing API keys now requires 2FA: creating, rotating and revoking a key need 2FA enabled on the account and a current code (
403TOTP_REQUIREDotherwise). Existing keys keep working for the payment API. See Authentication. - New:
POST /api/auth/api-key/revoke— stop a project’s API key immediately (also a Revoke key button in Quick integration). POST /api/auth/api-keynow returns409API_KEY_EXISTSwhen the project already has a live key. Rotating with two live keys no longer fails: the older keys beyond the limit are revoked immediately (revoked_key_idsin the response).- Hardened dashboard sessions: the session cookie is now host-only (the
__Host-prefix), and a cookie-authenticated write sent with a foreignOriginheader is refused with403. Existing sessions keep working. API-key requests are unaffected. - Fixed: the “Confirm lock” button on the emergency-lock page (linked from the “this wasn’t me” email) did not lock the account. A locked account is read-only until support unlocks it.
- 2FA codes are single-use: a 6-digit code that was already accepted is refused with 401 (“This code was already used”) — wait for the next one. A reused code does not count as a wrong one. Incorrect codes — including while confirming 2FA setup — are limited to 5 per 15 minutes (429), now also for simultaneous requests.
2026-10-23
- Fixed: Tron invoices could fail to be created while low-balance protection was on.
- New error responses for invoice and top-up creation. See Invoices and Billing.
- Top-ups now have per-account limits. See Billing.
- Fixed: a request with a wrong Content-Type, malformed JSON or an oversized body now returns
400/413/415with a clear message instead of500. GET /api/projects: each project now includeshas_webhook.- Webhook test deliveries no longer count toward webhook health or failure counts.
2026-10-21
POST /api/invoicesretries transient payment-network failures and returns503instead of500. When the payment network briefly cannot register a new invoice, Cassia now retries automatically (up to 6 attempts over about 15 seconds) before giving up. If it still fails you get503with codepayment_network_unavailableinstead of an opaque500. The invoice was not created and nothing was reserved, so retrying is safe. Treat503as retryable.
2026-10-20
- Invoices can stay open past
expires_atwhile a payment is double-checked. When Cassia suspects a payment may have been missed, it double-checks before expiring the invoice — usually a few minutes; in rare cases longer. The invoice stayspending, orunderpaidif it was already partly paid. You then receiveinvoice.paidorinvoice.expiredas usual. POST /api/invoices/:id/cancelcan return 400 during verification. While a payment for the invoice is being verified, cancel returns400; the invoice will be settled or expire on its own.- Multi-transfer invoices confirm only when every transfer is final. An invoice paid in several transfers now moves to
confirmed(and firesinvoice.confirmed) only after every contributing transfer has reached finality.
2026-10-14
- Webhook URLs must resolve to public IP addresses. Private, loopback and link-local destinations are rejected:
POST /api/webhooksandPATCH /api/webhooks/:idreturn 400 for such a URL, and deliveries (includingPOST /api/webhooks/:id/test) to an address that resolves privately fail without sending a request. Public HTTP and HTTPS endpoints are unaffected. See Webhooks management.
2026-10-12
- Fixed:
strategyonPOST /api/public-keyswas ignored. The field was documented and accepted, but never reached the handler — so every wallet connected one at a time was created with thereusedefault, including those that asked forsingle_use, and the call returned 200 with no hint. This affected the dashboard’s connect-wallet form as well as the API: the form sends the strategy you pick, and it was being dropped the same way. Wallets created by the multi-chain generator (POST /api/public-keys/batch) were never affected — that endpoint always honoured it. It is now honoured. The default is unchanged (reuse), and an unknown field or an unsupported strategy value is now a 400 instead of being dropped silently. If you connected a wallet by API and wantedsingle_use, check it in the dashboard — it can be changed withPATCH /api/public-keys/:id. - Corrected:
llms-full.txt, the machine-readable spec. It had drifted two months behind the API and promised several things that were never true:metadataechoed on webhooks (it is not — correlate byinvoice_id), money fields as numbers everywhere (webhook bodies send strings; REST responses send numbers),inv_-prefixed invoice ids (they are UUIDs), cursor pagination (it is offset-based), and Bearer auth on every endpoint (an API key reaches the invoice endpoints only). It now also documents rate limits, the webhook retry policy, one-delivery-per-event, and what happens to a payment that lands on a terminal invoice. - Corrected on this page: test webhook events are persisted and appear in Recent deliveries with a
TESTbadge — the previous wording said they were not. Webhook payload fields are namedamountandreceived; prose elsewhere on this page called themreceived_amountandexpected_amount, which are not fields Cassia sends.
2026-09-20
- Corrected: finality thresholds on this page. The confirmation counts published for Ethereum, BSC and Tron were higher than what Cassia actually waits for, so
invoice.confirmedhas always arrived sooner than documented. Ethereum is 6 confirmations (was listed as 12), BSC 8 (was 15), Tron 10 (was 19), and Tron Nile 1 (was listed as 19). Arbitrum (50 blocks), Sepolia (3) and Solana (finalizedcommitment) were already correct. No behaviour changed — only the numbers on this page, which were wrong.
2026-09-09
- New:
GET /api/topup/chains— the chains a top-up can currently be created on. The Top up Credits screen now renders this list instead of assuming every mainnet works. - Fixed: top-ups on unsupported chains. The chain picker offered networks that could not accept a deposit; a Tron top-up failed with a server error rather than a clear message. Unsupported chains are no longer offered, and a request for one now returns
400.
2026-08-18
- Fixed:
GET /api/invoices/:idreported0for a confirmed transaction’s amount. Each entry intransactions[]is assembled from two events — the detection, which carries the amount and the payer, and the confirmation, which carries neither. The confirmation was overwriting both, so once a payment finalised itsamountread0andfrom_addresscould readnull. Both values now survive confirmation. The invoice’s ownreceivedtotal was never affected — if you reconcile on that field, nothing changes for you. - Top-ups now expire. A top-up deposit address is only monitored for 60 minutes, but unpaid top-ups stayed
pendingindefinitely and kept offering that address. They now move toexpiredonce the window closes, so the dashboard stops pointing at an address that is no longer watched. A deposit that still arrives against an expired top-up is credited as before.
2026-08-14
- Reliability: a succeeded write is no longer reported as
500. Cassia records an internal entry for every change you make. Until now, if writing that entry failed, the request returned500 INTERNAL_ERROReven though the change itself had already been committed. AffectedPOST /api/invoices,POST /api/invoices/:id/cancel,POST /api/webhooks,PATCH /api/webhooks/:id,DELETE /api/webhooks/:id,POST /api/public-keys,POST /api/public-keys/batch,PATCH /api/public-keys/:id,DELETE /api/public-keys/:idand the API-key, top-up and account endpoints. These now return their normal success response. No request or response shape changes. - Why this matters for retries. On the affected endpoints a
500could previously mean the write had succeeded, so a retry created a duplicate — a second invoice with a second deposit address, for example. That specific cause is gone. General advice is unchanged: treat5xxas indeterminate and reconcile withGET /api/invoicesbefore retrying a create. - Unchanged: payment detection, crediting, commission and webhook delivery. Nothing on the money path is affected, and no endpoint that previously returned
2xxnow returns an error.
2026-08-13
- Solana deposit detection is now event-driven too. A live notification from our chain provider can now trigger detection of a
solana:mainnetdeposit, instead of waiting for the next sweep. Nothing about the API changes — same events, same payloads, same ordering — and the ~1-minute sweep still runs and remains the guarantee, so keep budgeting for it rather than assuming a deposit is credited within seconds. Amounts and direction are still read from the chain itself, never from the notification. GET /api/public-keysaddsis_active. Boolean.truefor the one wallet on that chain whichPOST /api/invoiceswill actually derive a deposit address from — the most recently added one. Cassia does not fail over between wallets on the same chain, so if you hold more than one, the others receive nothing. Merchants with a single wallet per chain seetrueeverywhere. Additive field; no request changes.POST /api/invoicescan now return503onsolana:mainnet. New codessolana_network_unavailableandsolana_monitoring_unavailable. These replace an opaque500 INTERNAL_ERRORthat a provider outage used to produce: Cassia refuses to hand out a deposit address it could not prepare or could not register for monitoring, and now says so. Treat both as transient and retry — the invoice was not created and no address was reserved, so a retry is not a duplicate. If you switch on status codes, add503to your retry branch alongside429. Other chains are unaffected.
2026-08-12
- Solana support. Accept USDT and USDC on
solana:mainnet— both are the standard 6-decimal SPL Token mints. Mainnet only (no Solana testnet) and generate-only: Solana’s key format (ed25519) has no public-key-only derivation, so there is no Solana xpub to paste. The in-browser generator derives a fixed pool of 200 addresses on your device atm/44'/501'/{index}'/0'(indices 0–199) and now produces seven chain pairings instead of six.POST /api/public-keysrejectssolana:mainnet. Finality is thefinalizedcommitment level rather than a block depth; Solana deposits are picked up by a ~1-minute sweep and confirmed by a 10-minute one, so its webhooks can lag the chain more than the other networks do. Full details in Solana wallets. POST /api/public-keys/batchaccepts a second pairing shape. Alongside{ chain, xpub }, a pairing may now be{ chain: "solana:mainnet", rootPublicKey, addresses }with exactly 200 base58 addresses. The two shapes are mutually exclusive per chain, and a batch may still contain each chain at most once. Existing xpub-only callers are unaffected — the change is purely additive.GET /api/public-keysaddsfresh_count. The number of that wallet’s addresses which have never been handed to an invoice. Deliberately notaddresses_count − in_use_count, which also counts already-used addresses waiting out their reuse cooldown — on a fixed-size Solana pool the two diverge badly. Additive field; no request changes.- Solana is excluded from top-ups, auto-collect and on-chain balance lookups.
POST /api/topupreturns 400 forsolana:mainnet(as it already did for Arbitrum); low-balance redirects never trigger for Solana invoices, so those payments always land in your wallet; andGET /api/public-keys/:id/balance/GET /api/public-keys/:id/addressesansweravailable: falsefor Solana wallets rather than a misleading zero. - Recovering Solana funds is your job, not ours. Cassia ships no sweep or consolidation tool for Solana in v1 and never accepts a seed phrase back. The derivation path is published on the seed-backup screen and again on the wallet card; to move funds, import your seed into Phantom or Solflare and send from the accounts holding a balance.
2026-08-07
- Arbitrum One support. Accept USDT and USDC on
eip155:42161. Same EVM derivation as Ethereum/BSC — no new xpub needed if you’ve already connected an Ethereum or BSC wallet through the in-browser generator, which now produces six chain pairings instead of five. Finality: ~13s (50 blocks). Referral partner-mode payouts can also target Arbitrum now. Note: the on-chain USDT contract on Arbitrum reads “USD₮0” — Tether’s canonical successor token since a Feb-2025 migration, same issuer and 1:1 peg as classic USDT. - Wallet balance responses distinguish “not yet available” from a genuine zero.
GET /api/public-keys/:id/balanceandGET /api/public-keys/:id/addressesnow return anavailableboolean. Live on-chain balance lookups aren’t wired up for Arbitrum wallets yet, so those responses come back withavailable: falseinstead of an indistinguishable$0.00— the dashboard shows “Balance lookup not yet available for this chain” for those wallets. Invoices and webhooks are unaffected; this is limited to the on-chain balance/addresses widgets on the Wallets page. - Arbitrum invoices skip low-balance protection and account top-ups. Auto-collect redirects (see Low-balance protection) never trigger for
chain: "eip155:42161"invoices, regardless of your balance zone — those payments always land in your wallet.POST /api/topupalso returns a 400 for the same chain. Top up your balance on Ethereum, BSC, or Tron in the meantime; accepting customer payments on Arbitrum is unaffected either way.
2026-06-26
- Commission is now charged on every received payment. Previously the 1% fee accrued only when an invoice reached
paid. It now accrues on each deposit we receive on your behalf — including partial (underpaid) payments and overpayments — at 1% of that payment’s amount. The Credits transactions table now shows one row per payment;GET /api/billing/transactionsgainspayment_amountandtx_hashfields (the Rate column is computed againstpayment_amount, so it stays ~1% for partials). Additive and forward-only — payments received before this change are unaffected.
2026-06-23
- GET /api/projects now includes per-project 30-day rollups. Each project object in the response now carries activity fields computed over a rolling 30-day window:
revenue_30d(USD paid in the last 30 days),invoices_30d(invoices created in the last 30 days),underpaid(currently underpaid invoices),wallets(active wallets),webhooks_healthy(boolean —falsewhen the active endpoint had a failed delivery in the last 24h),failing_webhooks(0 or 1), andlast_payment_at(ISO-8601 timestamp of the most recent paid invoice, ornull). No request changes needed; the new fields are additive.
2026-06-22
- Projects: multiple isolated workspaces per account. An account can now contain multiple projects, each with its own wallets, API key, webhooks, and invoice history. New endpoints:
GET /api/projects,POST /api/projects({ name }),PATCH /api/projects/:id({ name }). - API keys are now per-project. A
csk_live_*key belongs to one project; requests authenticated with it automatically operate within that project. No action needed — every existing key was migrated to the account’s initial Default project and continues to work without any code change. - Dashboard uses
X-Cassia-Projectheader. Dashboard sessions send anX-Cassia-Project: <projectId>header to indicate the active project. API-key callers do not need this header — the key already determines the project automatically.
2026-06-16
- Referral program: general availability. The referral program is now live for all merchants — the Referrals section is available in the dashboard and the
/api/referralsendpoints are active. No code changes; existing API behaviour is unchanged.
2026-06-08
- Referral earnings now vest on collected commission. A referrer’s share is recorded when the 1% fee is charged but becomes withdrawable only once the referred merchant actually pays that fee (via top-up or auto-collect). The referral overview response adds
pending_referral; each referee row inGET /api/referralsadds apendingfield showing unvested earnings.
2026-06-06
- Invoice/top-up amount validation no longer rejects clean sums. Amounts like
5.15,13.73or0.1were intermittently rejected withamount must be multiple of 0.000001due to IEEE-754 float rounding in the validator. Any amount with up to 6 decimal places is now accepted; genuinely over-precise amounts (7+ decimals) are still rejected. No request changes needed — you can drop client-side workarounds that nudged the amount. - Tron Nile (
tron:testnet) USDT detection. Nile invoices now use the USDT contract the official nileex.io faucet actually dispenses,TXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf, so test deposits from the standard faucet are detected and credited (previously a different contract was configured and faucet deposits were silently skipped). Testnet only — mainnet behaviour is unchanged. - POST /api/referrals/activate — start referral promo window. Calling this endpoint starts the merchant’s 30-day referral promo window. The call is idempotent: if the window was already started it simply returns without error. Response:
{ ok, just_activated }—just_activatedistrueonly on the first call. The dashboard masks the referral link until the merchant copies it; that copy action triggers this endpoint automatically.
2026-06-05 — dashboard
- POST /api/auth/verify returns
bonus_applied. When a brand-new merchant signs up through a+$10bonus referral link, the verify response now includesbonus_applied: trueso the dashboard can show a one-time welcome toast. Existing fields (ok,merchant_id) are unchanged. - GET /api/referrals adds
promo_started_at. The overview response now exposes the promo start timestamp (nullable) so the dashboard’s promo countdown shows exact elapsed/total progress.
2026-06-05
- Referral program API. New merchant endpoints under
/api/referrals:GET /api/referrals(tier, balance, referees),GET /api/referrals/ledger,GET /api/referrals/rate-history,GET /api/referrals/payouts, and TOTP-gatedPOST /api/referrals/transfer,POST /api/referrals/partner-mode,POST /api/referrals/payout({ amount, asset, address, chain }— asset is USDT/USDC, chain is mainnet-only, and the asset must be supported on the chosen chain). Share links live atcassiapay.com/r/{code}(standard) and the-b10variant (gives new merchants $10 in Credits). Rolled out gradually; see the 2026-06-16 entry for general availability. - Invoice
received_usdcolumn. Added to back referral volume accounting (1:1 withreceivedfor stablecoins). No change to existing response shapes.
2026-05-04
- On-chain balance + derived-address listing. New
GET /api/public-keys/:id/balancereturns aggregated USDT/USDC totals per wallet; newGET /api/public-keys/:id/addresseslists every derived address that currently holds a stablecoin balance. Each row carries asourcefield —invoice(address was assigned to a Cassia invoice;invoice_idincluded) ordirect(deposit landed without an invoice — webhooks did not fire). 30s server-side cache, 60 req/min/merchant rate limit. Wallet cards on/walletsmirror the split as Through Cassia stats vs the On-chain live total. - POST /api/invoices includes deposit_address. Create-invoice response now exposes
deposit_addressdirectly — no follow-upGET /api/invoices/:idneeded to render the payment screen. Field name matches the detail endpoint. - 2FA gate on
/wallets/new. Connecting a wallet now blocks at the entry point when 2FA is disabled, preventing the foot-gun where merchants would go through the in-browser seed-phrase ceremony only to hit a 401 at submit and lose the freshly generated mnemonic. Setup carries?return=/wallets/newthrough all three steps; the final "Done" button changes to "Continue to wallet setup". - One active webhook endpoint cap. Partial unique index
(merchant_id) WHERE active=trueenforces single-active-endpoint per merchant.POST /webhooksandPATCH /webhooks/:id active=true409 with friendly copy when violated. Recently added invoice-rate-limit (10 req/sec/merchant) onPOST /api/invoices.
2026-04-30 — 2026-05-01
- Testnet support. Sepolia (
eip155:11155111) and Tron Nile (tron:testnet) added. Testnet activity is excluded from revenue, billing and credit consumption; analytics endpoints accept?include_testnet=true. - Batch wallet generation.
POST /api/public-keys/batchregisters up to 10(chain, xpub)pairings atomically under a sharedwallet_group_id, gated by a single TOTP code. Supports the in-browser BIP39 generator that creates 5 chain wallets from one seed. - CSV invoice export.
GET /api/invoices/export.csvreturns RFC 4180 output filterable by status / chain / token / testnet. - Logout endpoint.
POST /api/auth/logoutclears the session cookie server-side and remains callable in soft-suspended mode. - Soft-suspend mode. Suspended accounts return
403 ForbiddenwithAccount suspended — read-only mode. Contact support.on writes;GETand logout still succeed. - Invoice deposit / from address fields. Invoice objects now expose the derived deposit address and the customer’s funding address (from the matched transaction) so you can issue refunds without leaving the dashboard data.
- Webhook delivery
latency_ms.GET /api/webhook-deliveriesrows now carry per-call latency for endpoint health debugging. - Transactions endpoint.
GET /api/billing/transactionsjoinscommission_logto invoices for the Credits page table; up to 200 rows per call. - Recovery-codes flow change. TOTP setup now emits one-time recovery codes shown only on enrollment; regeneration requires re-entering an active TOTP.
2026-04-24 — Initial published API
- First published merchant API surface. Covers authentication, invoices, wallets (public keys), webhooks management, webhook delivery contract, credits/top-up, and settings. No breaking changes (this is the initial contract).
Updated . For integration help, email [email protected]