Skip to main content
A payout moves a customer’s USDT or USDC from their Rach address to any outside address on the same chain. Your servers send payouts on your customers’ behalf: you created the customers, so no customer step is involved. Every request is signed with your payout key. Who pays what. amount is exactly what the destination receives. Rach’s flat fee for the chain is taken on top, in the same token and from the same customer’s address. Rach pays the network gas, including TRON energy and Solana fees. Your customer needs no ETH, BNB, POL, TRX or SOL. Each response shows the fee and the total_debited.

Send payouts

Up to 500 payouts per request, across any mix of chains, tokens and customers. POST https://api.rach.finance/caas/v1/payouts, signed (see Payout keys & signing for the headers), with for example Idempotency-Key: withdrawals-batch-20261121-07:
  • chain: polygon, base, ethereum, bsc, tron or solana. The aliases eth, bnb, pol, trx and sol are also accepted.
  • token: USDT or USDC where the chain has it (TRON: USDT; Base: USDC).
  • amount: a decimal string with up to 6 decimals.
  • reference: yours, up to 128 characters, and echoed in every response and webhook.
  • Name the customer by customer_ref, or by Rach’s customer_id.
All or nothing. Every item is checked before anything moves: chain, token, address format, and that the customer holds amount + fee beyond what their earlier queued payouts will take. Several items from one customer are counted together. If any item fails a check, nothing is sent and you get 422 listing every item to fix:
On success you get 202 with the batch. Each item is now a durable transfer that Rach drives to the chain, retrying and recovering on its own.

Follow each payout

Each item ends exactly once, and you are told by webhook:
payout.failed has the same shape, with status: "FAILED" and a reason. A failed payout moved nothing and charged no fee, so return the funds to your customer’s balance in your ledger. Deduplicate on event_id. Item statuses: QUEUED, then SUBMITTED (broadcast), then SETTLED or FAILED. A batch is PROCESSING until every item has ended, then COMPLETED, PARTIAL (some failed) or FAILED. If a webhook is missed, poll:
Debit your customer when you send, not when it settles. Hold total_debited from their balance when you submit. Release it on payout.failed; treat it as final on payout.settled. That way two withdrawals cannot spend the same balance. Rach enforces the same rule on chain balances.

Sweep balances to one address

A sweep moves every customer’s balance of a token on one chain to a single address, such as your treasury. Each wallet sends its whole balance less the chain’s fee. Wallets holding less than the fee are skipped. POST /v1/sweeps, signed:
  • min_amount (optional): skip wallets that would send less than this after the fee.
  • customer_refs (optional): sweep only these customers. Leave it out to sweep everyone.
The answer is a batch of kind: "SWEEP", followed and reported exactly like payouts.

From the dashboard

Owners and admins can do all of this in CaaS dashboard → Payouts: see balances, upload a CSV of payouts (customer_ref, chain, token, amount, to_address, reference), sweep, and watch each batch to the chain. The dashboard needs no payout key. It uses your signed-in session and its own idempotency keys.

Sandbox

Test-mode keys check the request and the signature, then answer with status: "SANDBOX_SIMULATED" and the default fee for the chain. Nothing is read or moved.