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/webhooks and PATCH /api/webhooks/:id: a localhost / private-IP URL or a malformed URL now gets a plain-English message instead of a raw schema error. Which URLs are accepted and the error code 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 stays expired. Dedupe webhooks on (event, invoice_id) — the timestamp changes on every retry. GET /api/public-keys/:id/balance and /addresses are dashboard-only (an API key gets 403). 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 (403 TOTP_REQUIRED otherwise). 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-key now returns 409 API_KEY_EXISTS when 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_ids in the response).
  • Hardened dashboard sessions: the session cookie is now host-only (the __Host- prefix), and a cookie-authenticated write sent with a foreign Origin header is refused with 403. 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 / 415 with a clear message instead of 500.
  • GET /api/projects: each project now includes has_webhook.
  • Webhook test deliveries no longer count toward webhook health or failure counts.

2026-10-21

  • POST /api/invoices retries transient payment-network failures and returns 503 instead of 500. 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 get 503 with code payment_network_unavailable instead of an opaque 500. The invoice was not created and nothing was reserved, so retrying is safe. Treat 503 as retryable.

2026-10-20

  • Invoices can stay open past expires_at while 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 stays pending, or underpaid if it was already partly paid. You then receive invoice.paid or invoice.expired as usual.
  • POST /api/invoices/:id/cancel can return 400 during verification. While a payment for the invoice is being verified, cancel returns 400; 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 fires invoice.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/webhooks and PATCH /api/webhooks/:id return 400 for such a URL, and deliveries (including POST /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: strategy on POST /api/public-keys was ignored. The field was documented and accepted, but never reached the handler — so every wallet connected one at a time was created with the reuse default, including those that asked for single_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 wanted single_use, check it in the dashboard — it can be changed with PATCH /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: metadata echoed on webhooks (it is not — correlate by invoice_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 TEST badge — the previous wording said they were not. Webhook payload fields are named amount and received; prose elsewhere on this page called them received_amount and expected_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.confirmed has 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 (finalized commitment) 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/:id reported 0 for a confirmed transaction’s amount. Each entry in transactions[] 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 its amount read 0 and from_address could read null. Both values now survive confirmation. The invoice’s own received total 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 pending indefinitely and kept offering that address. They now move to expired once 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 returned 500 INTERNAL_ERROR even though the change itself had already been committed. Affected POST /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/:id and 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 500 could 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: treat 5xx as indeterminate and reconcile with GET /api/invoices before retrying a create.
  • Unchanged: payment detection, crediting, commission and webhook delivery. Nothing on the money path is affected, and no endpoint that previously returned 2xx now 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:mainnet deposit, 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-keys adds is_active. Boolean. true for the one wallet on that chain which POST /api/invoices will 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 see true everywhere. Additive field; no request changes.
  • POST /api/invoices can now return 503 on solana:mainnet. New codes solana_network_unavailable and solana_monitoring_unavailable. These replace an opaque 500 INTERNAL_ERROR that 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, add 503 to your retry branch alongside 429. 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 at m/44'/501'/{index}'/0' (indices 0–199) and now produces seven chain pairings instead of six. POST /api/public-keys rejects solana:mainnet. Finality is the finalized commitment 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/batch accepts 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-keys adds fresh_count. The number of that wallet’s addresses which have never been handed to an invoice. Deliberately not addresses_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/topup returns 400 for solana:mainnet (as it already did for Arbitrum); low-balance redirects never trigger for Solana invoices, so those payments always land in your wallet; and GET /api/public-keys/:id/balance / GET /api/public-keys/:id/addresses answer available: false for 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/balance and GET /api/public-keys/:id/addresses now return an available boolean. Live on-chain balance lookups aren’t wired up for Arbitrum wallets yet, so those responses come back with available: false instead 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/topup also 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/transactions gains payment_amount and tx_hash fields (the Rate column is computed against payment_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 — false when the active endpoint had a failed delivery in the last 24h), failing_webhooks (0 or 1), and last_payment_at (ISO-8601 timestamp of the most recent paid invoice, or null). 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-Project header. Dashboard sessions send an X-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/referrals endpoints 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 in GET /api/referrals adds a pending field showing unvested earnings.

2026-06-06

  • Invoice/top-up amount validation no longer rejects clean sums. Amounts like 5.15, 13.73 or 0.1 were intermittently rejected with amount must be multiple of 0.000001 due 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_activated is true only 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 +$10 bonus referral link, the verify response now includes bonus_applied: true so 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-gated POST /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 at cassiapay.com/r/{code} (standard) and the -b10 variant (gives new merchants $10 in Credits). Rolled out gradually; see the 2026-06-16 entry for general availability.
  • Invoice received_usd column. Added to back referral volume accounting (1:1 with received for stablecoins). No change to existing response shapes.

2026-05-04

  • On-chain balance + derived-address listing. New GET /api/public-keys/:id/balance returns aggregated USDT/USDC totals per wallet; new GET /api/public-keys/:id/addresses lists every derived address that currently holds a stablecoin balance. Each row carries a source field — invoice (address was assigned to a Cassia invoice; invoice_id included) or direct (deposit landed without an invoice — webhooks did not fire). 30s server-side cache, 60 req/min/merchant rate limit. Wallet cards on /wallets mirror the split as Through Cassia stats vs the On-chain live total.
  • POST /api/invoices includes deposit_address. Create-invoice response now exposes deposit_address directly — no follow-up GET /api/invoices/:id needed 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/new through 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=true enforces single-active-endpoint per merchant. POST /webhooks and PATCH /webhooks/:id active=true 409 with friendly copy when violated. Recently added invoice-rate-limit (10 req/sec/merchant) on POST /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/batch registers up to 10 (chain, xpub) pairings atomically under a shared wallet_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.csv returns RFC 4180 output filterable by status / chain / token / testnet.
  • Logout endpoint. POST /api/auth/logout clears the session cookie server-side and remains callable in soft-suspended mode.
  • Soft-suspend mode. Suspended accounts return 403 Forbidden with Account suspended — read-only mode. Contact support. on writes; GET and 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-deliveries rows now carry per-call latency for endpoint health debugging.
  • Transactions endpoint. GET /api/billing/transactions joins commission_log to 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]

From signup to payment setup in 7 minutes

Start accepting
payments today
on 5 blockchains.

Create accountRead documentation