Skip to main content
A customer is one of your own users, named by your own reference (customer_ref). Rach gives each customer static deposit addresses on every chain enabled for your account and tells you, by webhook, every time one of them receives USDT or USDC. You credit your customer from that webhook. Your customers never need a phone number, a seed phrase or gas. Rach holds the keys, pays the network fees, and acts on the wallets only on your instructions.
The addresses never change. Show them to your customer once and they stay valid. Send only the listed tokens to them: anything else is not credited.

Create a customer

  • customer_ref is yours: up to 128 printable characters, unique within your account.
  • It is idempotent. Calling again with the same reference returns the same addresses with status: "ALREADY_EXISTS". Retry freely after a timeout.
  • customer_id is Rach’s identity for the customer. Webhooks carry both.
  • GET /v1/customers/{customer_ref} returns the same response without creating anything.
Each address has its own status: Only chains enabled for your account are listed. GET /health/ready shows each chain’s state.

Get told about every deposit

Register a webhook in your CaaS dashboard → Developers. Every confirmed deposit to any of your customers’ addresses, on any chain, arrives as transfer.received:
Credit your customer when it arrives:
  1. Verify the X-Rach-Signature header (HMAC-SHA256 of the raw body with your webhook secret; see Webhooks).
  2. Deduplicate on event_id (also sent as the X-Rach-Event-Id header). A retried delivery carries the same ID. Credit it once.
  3. Credit amount of token to the customer named by customer_ref. chain (plus chain_id on EVM chains) tells you where it landed.
  4. Answer 2xx quickly and do the rest asynchronously.
Use amount and token. amount_usdc exists only for older integrations and does not mean the deposit was USDC.
Deposits are reported once the chain has confirmed them. TRON waits for solidified blocks and Solana for finalized slots. Swap output and refunds that land in a customer’s own address also arrive as transfer.received, so this one event is your only signal to credit.

Balances

Balances are read from the chains themselves and refreshed at most once a minute. pending_payouts is what queued payouts will still take, and available is what is left after them. If some wallets could not be read, the response carries "partial": true. Your own ledger stays the record of what each customer is owed; use these numbers to reconcile against it.

Next