Send your customers’ USDT and USDC to outside addresses, one at a time or 500 at once, sweep balances to your treasury, and follow each payout to the chain.
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:
{ "error": "No payouts were made: fix the listed items and send the request again", "items": [ { "index": 1, "error": "insufficient balance: 39.000000 USDC available, 41.000000 needed (amount 40.000000 + fee 1.000000)" } ]}
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.
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:
GET /v1/payouts # your batches, newest first (?limit=&offset=)GET /v1/payouts/{batch_id} # a batch with all its itemsGET /v1/payout-items/{id} # one item
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.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Rach","description":"Developer documentation for Rach — crypto payment gateway, WaaS, CaaS stablecoin wallets, swaps, 24/7 monitoring and webhooks.","colors":{"primary":"#8B5CF6","light":"#A78BFA","dark":"#7C3AED"},"logo":{"light":"https://mintcdn.com/rach-finance/JqM0ln4O1zcrC0GI/logo/rach.png?fit=max\u0026auto=format\u0026n=JqM0ln4O1zcrC0GI\u0026q=85\u0026s=a23db7dff16b5f42358dfbf063db7350","dark":"https://mintcdn.com/rach-finance/JqM0ln4O1zcrC0GI/logo/rach-white.png?fit=max\u0026auto=format\u0026n=JqM0ln4O1zcrC0GI\u0026q=85\u0026s=2f65b17ea450ed92913b13573f56f0a5","href":"https://rach.finance"},"favicon":"https://mintcdn.com/rach-finance/JqM0ln4O1zcrC0GI/favicon.png?fit=max\u0026auto=format\u0026n=JqM0ln4O1zcrC0GI\u0026q=85\u0026s=2c7e887a54008974865567f4609381b1","appearance":{"default":"dark"},"navbar":{"links":[{"href":"mailto:support@rach.finance","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://payments.rach.finance"}},"footer":{"socials":{"website":"https://rach.finance","x":"https://x.com/userachhq","instagram":"https://instagram.com/userachhq","youtube":"https://youtube.com/@userachhq","threads":"https://threads.net/@userachhq","facebook":"https://facebook.com/userachhq"}},"integrations":{"gtm":{"tagId":"GTM-XXXXXXX"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"rach-finance","hasAudioNarration":false,"actualSubdomain":"rach-finance","customDomains":["docs.rach.finance"],"gitSource":{"type":"gitlab","owner":"tech-team6074316","repo":"rach-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"projectId":77262143,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b04158b89423dec6798cbbd","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Payments API","count":82},{"language":"default","tag":"CaaS API","count":41},{"language":"default","tag":"Value-Added Services","count":25},{"language":"default","tag":"Documentation","count":23},{"language":"default","tag":"WaaS (Wallet-as-a-Service)","count":18},{"language":"default","tag":"Platforms","count":13},{"language":"default","tag":"Get Started","count":11},{"language":"default","tag":"Core Products","count":10},{"language":"default","tag":"B2B - Escrow","count":10},{"language":"default","tag":"B2B - Users","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"guides/caas-payouts","slug":"/guides/caas-payouts","pageMetadata":{"title":"Payouts, sweeps \u0026 balances","description":"Send your customers' USDT and USDC to outside addresses, one at a time or 500 at once, sweep balances to your treasury, and follow each payout to the chain.","href":"/guides/caas-payouts"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Send your customers’ USDT and USDC to outside addresses, one at a time or 500 at once, sweep balances to your treasury, and follow each payout to the chain.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A `,_jsx(_components.strong,{children:`payout`}),` moves a customer’s USDT or USDC from their Rach address to any outside address on\nthe same chain. Your servers send payouts `,_jsx(_components.strong,{children:`on your customers’ behalf`}),`: you created the\ncustomers, so no customer step is involved. Every request is signed with your\n`,_jsx(_components.a,{href:`/guides/caas-payout-signing`,children:`payout key`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Who pays what.`}),` `,_jsx(_components.code,{children:`amount`}),` is exactly what the destination receives. Rach’s flat fee for the\nchain is taken `,_jsx(_components.strong,{children:`on top`}),`, in the same token and from the same customer’s address. Rach pays the\nnetwork gas, including TRON energy and Solana fees. Your customer needs no ETH, BNB, POL, TRX or\nSOL. Each response shows the `,_jsx(_components.code,{children:`fee`}),` and the `,_jsx(_components.code,{children:`total_debited`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`send-payouts`,children:`Send payouts`}),`\n`,_jsx(_components.p,{children:`Up to 500 payouts per request, across any mix of chains, tokens and customers.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POST https://api.rach.finance/caas/v1/payouts`}),`, signed (see\n`,_jsx(_components.a,{href:`/guides/caas-payout-signing`,children:`Payout keys \u0026 signing`}),` for the headers), with for example\n`,_jsx(_components.code,{children:`Idempotency-Key: withdrawals-batch-20261121-07`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"customer_ref\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cus_8f2a91\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"chain\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tron\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USDT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"125.50\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"to_address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TQ5dK…Xh\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"reference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"withdrawal-991\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"customer_ref\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cus_1b7c03\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"chain\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"base\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USDC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"40\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"to_address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x5e1f…a2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"reference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"withdrawal-992\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"customer_ref\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cus_77de10\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"chain\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"solana\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USDT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"to_address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9WzD…WM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"reference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"withdrawal-993\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`chain`}),`: `,_jsx(_components.code,{children:`polygon`}),`, `,_jsx(_components.code,{children:`base`}),`, `,_jsx(_components.code,{children:`ethereum`}),`, `,_jsx(_components.code,{children:`bsc`}),`, `,_jsx(_components.code,{children:`tron`}),` or `,_jsx(_components.code,{children:`solana`}),`. The aliases `,_jsx(_components.code,{children:`eth`}),`, `,_jsx(_components.code,{children:`bnb`}),`,\n`,_jsx(_components.code,{children:`pol`}),`, `,_jsx(_components.code,{children:`trx`}),` and `,_jsx(_components.code,{children:`sol`}),` are also accepted.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`token`}),`: `,_jsx(_components.code,{children:`USDT`}),` or `,_jsx(_components.code,{children:`USDC`}),` where the chain has it (TRON: USDT; Base: USDC).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`amount`}),`: a decimal string with up to 6 decimals.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`reference`}),`: yours, up to 128 characters, and echoed in every response and webhook.`]}),`\n`,_jsxs(_components.li,{children:[`Name the customer by `,_jsx(_components.code,{children:`customer_ref`}),`, or by Rach’s `,_jsx(_components.code,{children:`customer_id`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`All or nothing.`}),` Every item is checked before anything moves: chain, token, address format,\nand that the customer holds `,_jsx(_components.code,{children:`amount + fee`}),` beyond what their earlier queued payouts will take.\nSeveral items from one customer are counted together. If any item fails a check, `,_jsx(_components.strong,{children:`nothing`}),` is\nsent and you get `,_jsx(_components.code,{children:`422`}),` listing every item to fix:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No payouts were made: fix the listed items and send the request again\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"index\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"insufficient balance: 39.000000 USDC available, 41.000000 needed (amount 40.000000 + fee 1.000000)\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`On success you get `,_jsx(_components.code,{children:`202`}),` with the batch. Each item is now a durable transfer that Rach drives\nto the chain, retrying and recovering on its own.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pob_3f6c…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"kind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PAYOUT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"origin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"API\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PROCESSING\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"item_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"po_91a2…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"batch_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pob_3f6c…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"reference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"withdrawal-991\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"customer_ref\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cus_8f2a91\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"c4b1…9e\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"chain\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tron\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USDT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"125.500000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"fee\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_debited\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"to_address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TQ5dK…Xh\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"QUEUED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-21T09:20:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-21T09:20:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`follow-each-payout`,children:`Follow each payout`}),`\n`,_jsx(_components.p,{children:`Each item ends exactly once, and you are told by webhook:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"event\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payout.settled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"event_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payout.settled:po_91a2…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"payout_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"po_91a2…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"batch_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pob_3f6c…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"withdrawal-991\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer_ref\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cus_8f2a91\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"c4b1…9e\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chain\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tron\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USDT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"125.500000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fee\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total_debited\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"to_address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TQ5dK…Xh\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SETTLED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tx_hash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a9e3…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-21T09:21:04Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`payout.failed`}),` has the same shape, with `,_jsx(_components.code,{children:`status: \"FAILED\"`}),` and a `,_jsx(_components.code,{children:`reason`}),`. A failed payout\nmoved nothing and charged no fee, so return the funds to your customer’s balance in your ledger.\nDeduplicate on `,_jsx(_components.code,{children:`event_id`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Item statuses: `,_jsx(_components.code,{children:`QUEUED`}),`, then `,_jsx(_components.code,{children:`SUBMITTED`}),` (broadcast), then `,_jsx(_components.code,{children:`SETTLED`}),` or `,_jsx(_components.code,{children:`FAILED`}),`. A batch is\n`,_jsx(_components.code,{children:`PROCESSING`}),` until every item has ended, then `,_jsx(_components.code,{children:`COMPLETED`}),`, `,_jsx(_components.code,{children:`PARTIAL`}),` (some failed) or `,_jsx(_components.code,{children:`FAILED`}),`.`]}),`\n`,_jsx(_components.p,{children:`If a webhook is missed, poll:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /v1/payouts`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # your batches, newest first (?limit=\u0026offset=)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /v1/payouts/{batch_id}`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # a batch with all its items`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /v1/payout-items/{id}`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # one item`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Debit your customer when you send, not when it settles.`}),` Hold `,_jsx(_components.code,{children:`total_debited`}),` from their\nbalance when you submit. Release it on `,_jsx(_components.code,{children:`payout.failed`}),`; treat it as final on `,_jsx(_components.code,{children:`payout.settled`}),`.\nThat way two withdrawals cannot spend the same balance. Rach enforces the same rule on chain\nbalances.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`sweep-balances-to-one-address`,children:`Sweep balances to one address`}),`\n`,_jsxs(_components.p,{children:[`A sweep moves `,_jsx(_components.strong,{children:`every`}),` customer’s balance of a token on one chain to a single address, such as\nyour treasury. Each wallet sends its whole balance less the chain’s fee. Wallets holding less\nthan the fee are skipped.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POST /v1/sweeps`}),`, signed:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"chain\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tron\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USDT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"to_address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TTreasury…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"min_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"20\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customer_refs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cus_8f2a91\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cus_1b7c03\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reference\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"daily-sweep-2026-11-21\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`min_amount`}),` (optional): skip wallets that would send less than this after the fee.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`customer_refs`}),` (optional): sweep only these customers. Leave it out to sweep everyone.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The answer is a batch of `,_jsx(_components.code,{children:`kind: \"SWEEP\"`}),`, followed and reported exactly like payouts.`]}),`\n`,_jsx(Heading,{level:`2`,id:`from-the-dashboard`,children:`From the dashboard`}),`\n`,_jsxs(_components.p,{children:[`Owners and admins can do all of this in `,_jsx(_components.strong,{children:`CaaS dashboard → Payouts`}),`: see balances, upload a CSV\nof payouts (`,_jsx(_components.code,{children:`customer_ref, chain, token, amount, to_address, reference`}),`), sweep, and watch each\nbatch to the chain. The dashboard needs no payout key. It uses your signed-in session and its\nown idempotency keys.`]}),`\n`,_jsx(Heading,{level:`2`,id:`sandbox`,children:`Sandbox`}),`\n`,_jsxs(_components.p,{children:[`Test-mode keys check the request and the signature, then answer with\n`,_jsx(_components.code,{children:`status: \"SANDBOX_SIMULATED\"`}),` and the default fee for the chain. Nothing is read or moved.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Payouts, sweeps \u0026 balances","description":"Send your customers' USDT and USDC to outside addresses, one at a time or 500 at once, sweep balances to your treasury, and follow each payout to the chain.","href":"/guides/caas-payouts"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Send payouts","slug":"send-payouts","depth":2,"children":[]},{"title":"Follow each payout","slug":"follow-each-payout","depth":2,"children":[]},{"title":"Sweep balances to one address","slug":"sweep-balances-to-one-address","depth":2,"children":[]},{"title":"From the dashboard","slug":"from-the-dashboard","depth":2,"children":[]},{"title":"Sandbox","slug":"sandbox","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/rach-finance/390919c57430ba8a/scripts/add-missing-endpoints.js","/_mintlify/custom/rach-finance/1395d9e41ea8d255/scripts/fix-balances-schema.js","/_mintlify/custom/rach-finance/800c53d2efc4d1ca/scripts/fix-stale-descriptions.js","/_mintlify/custom/rach-finance/6403dc646251b28a/scripts/add-vas-endpoints.js"],"subdomain":"rach-finance","siteName":"Rach","title":"Payouts, sweeps \u0026 balances - Rach","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-22T21:28:53.075Z","originalFileLocation":"guides/caas-payouts.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Send your customers\u0026#x27; USDT and USDC to outside addresses, one at a time or 500 at once, sweep balances to your treasury, and follow each payout to the chain.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Rach\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rach-finance/-7wdBJOkp4YcRXzu/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/rach-finance/-7wdBJOkp4YcRXzu/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rach-finance/-7wdBJOkp4YcRXzu/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rach-finance/-7wdBJOkp4YcRXzu/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rach-finance/-7wdBJOkp4YcRXzu/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rach-finance/-7wdBJOkp4YcRXzu/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rach-finance/-7wdBJOkp4YcRXzu/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rach-finance/-7wdBJOkp4YcRXzu/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rach-finance/-7wdBJOkp4YcRXzu/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Payouts, sweeps \u0026amp; balances - Rach\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send your customers\u0026#x27; USDT and USDC to outside addresses, one at a time or 500 at once, sweep balances to your treasury, and follow each payout to the chain.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Rach\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.rach.finance/guides/caas-payouts\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://rach-finance.mintlify.site/_mintlify/api/og/v2?division=Platform+custody\u0026amp;title=Payouts%2C+sweeps+%26+balances\u0026amp;description=Send+your+customers%27+USDT+and+USDC+to+outside+addresses%2C+one+at+a+time+or+500+at+once%2C+sweep+balances+to+your+treasury%2C+and+follow+each+payout+to+the+chain.\u0026amp;theme=2d02f724647fc4aa3d515216\u0026amp;signature=dd7bd04dd689366826484bb499bf18852a0dca6bb121220329ea19e6e33cc839\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Payouts, sweeps \u0026amp; balances - Rach\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send your customers\u0026#x27; USDT and USDC to outside addresses, one at a time or 500 at once, sweep balances to your treasury, and follow each payout to the chain.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://rach-finance.mintlify.site/_mintlify/api/og/v2?division=Platform+custody\u0026amp;title=Payouts%2C+sweeps+%26+balances\u0026amp;description=Send+your+customers%27+USDT+and+USDC+to+outside+addresses%2C+one+at+a+time+or+500+at+once%2C+sweep+balances+to+your+treasury%2C+and+follow+each+payout+to+the+chain.\u0026amp;theme=2d02f724647fc4aa3d515216\u0026amp;signature=dd7bd04dd689366826484bb499bf18852a0dca6bb121220329ea19e6e33cc839\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/rach-finance/-7wdBJOkp4YcRXzu/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Rach\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8B5CF6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.rach.finance/guides/caas-payouts\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/caas-payouts.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.rach.finance/#organization\",\"name\":\"Rach\",\"url\":\"https://docs.rach.finance\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/rach-finance/JqM0ln4O1zcrC0GI/logo/rach.png?fit=max\u0026auto=format\u0026n=JqM0ln4O1zcrC0GI\u0026q=85\u0026s=a23db7dff16b5f42358dfbf063db7350\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.rach.finance#website\",\"name\":\"Rach\",\"url\":\"https://docs.rach.finance\",\"publisher\":{\"@id\":\"https://docs.rach.finance/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.rach.finance/guides/caas-payouts#webpage\",\"url\":\"https://docs.rach.finance/guides/caas-payouts\",\"name\":\"Payouts, sweeps \u0026 balances\",\"description\":\"Send your customers' USDT and USDC to outside addresses, one at a time or 500 at once, sweep balances to your treasury, and follow each payout to the chain.\",\"dateModified\":\"2026-11-22T21:28:53.075Z\",\"isPartOf\":{\"@id\":\"https://docs.rach.finance#website\"},\"breadcrumb\":{\"@id\":\"https://docs.rach.finance/guides/caas-payouts#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.rach.finance/guides/caas-payouts#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Platform custody\",\"item\":\"https://docs.rach.finance/guides/caas-customers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Payouts, sweeps \u0026 balances\",\"item\":\"https://docs.rach.finance/guides/caas-payouts\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.rach.finance/guides/caas-payouts#article\",\"headline\":\"Payouts, sweeps \u0026 balances\",\"name\":\"Payouts, sweeps \u0026 balances\",\"description\":\"Send your customers' USDT and USDC to outside addresses, one at a time or 500 at once, sweep balances to your treasury, and follow each payout to the chain.\",\"url\":\"https://docs.rach.finance/guides/caas-payouts\",\"mainEntityOfPage\":{\"@id\":\"https://docs.rach.finance/guides/caas-payouts#webpage\"},\"dateModified\":\"2026-11-22T21:28:53.075Z\",\"publisher\":{\"@id\":\"https://docs.rach.finance/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.rach.finance#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Rach\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Rach\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/caas-payouts.md","siteName":"Rach","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Payments API","pages":[{"title":"Payments API","href":"/api-reference/introduction"}]},{"tab":"CaaS API","groups":[{"group":"Overview","pages":[{"title":"CaaS API Reference","href":"/api-reference/caas-introduction"},{"title":"Idempotency \u0026 settlement","href":"/guides/caas-reliability"},{"title":"Embedded escrow","href":"/guides/embedded-escrow"},{"title":"Escrow pilot requirements","href":"/guides/escrow-pilot"},{"title":"Solana USDC \u0026 USDT","href":"/guides/solana-usdc-usdt"}]},{"group":"Platform custody","pages":[{"title":"Customers \u0026 deposit addresses","href":"/guides/caas-customers"},{"title":"Payout keys \u0026 signing","description":"Sign every payout, sweep and cross-chain swap with your own Ed25519 key, so an API key alone can never move money, and retry safely with an Idempotency-Key.","href":"/guides/caas-payout-signing"},{"title":"Payouts, sweeps \u0026 balances","href":"/guides/caas-payouts"},{"title":"Stablecoin swaps","description":"Swap a customer's USDT for USDC (or back) on the same chain, or move it across chains, from TRON USDT to Base USDC for example, with refunds always returning to the customer.","href":"/guides/caas-swaps"}]},{"group":"Operations","pages":[{"title":"Service readiness","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json get /health/ready","href":"/api-reference/operations/service-readiness"}]},{"group":"B2B - Escrow","pages":[{"title":"List escrows","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json get /v1/escrows","href":"/api-reference/b2b--escrow/list-escrows"},{"title":"Open an escrow","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/escrows","href":"/api-reference/b2b--escrow/open-an-escrow"},{"title":"Read an escrow","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json get /v1/escrows/{id}","href":"/api-reference/b2b--escrow/read-an-escrow"},{"title":"Cancel an unfunded escrow","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/escrows/{id}/cancel","href":"/api-reference/b2b--escrow/cancel-an-unfunded-escrow"},{"title":"Raise a dispute","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/escrows/{id}/dispute","href":"/api-reference/b2b--escrow/raise-a-dispute"},{"title":"Read an escrow's history","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json get /v1/escrows/{id}/events","href":"/api-reference/b2b--escrow/read-an-escrows-history"},{"title":"Replay an escrow webhook event","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/escrows/{id}/events/{event_id}/replay","href":"/api-reference/b2b--escrow/replay-an-escrow-webhook-event"},{"title":"List escrow deposit recoveries","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json get /v1/escrows/{id}/recoveries","href":"/api-reference/b2b--escrow/list-escrow-deposit-recoveries"},{"title":"Refund an escrow to the buyer","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/escrows/{id}/refund","href":"/api-reference/b2b--escrow/refund-an-escrow-to-the-buyer"},{"title":"Release an escrow to the seller","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/escrows/{id}/release","href":"/api-reference/b2b--escrow/release-an-escrow-to-the-seller"}]},{"group":"B2B - FX","pages":[{"title":"Get FX Conversion Quote","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/fx/quote","href":"/api-reference/b2b--fx/get-fx-conversion-quote"}]},{"group":"Solana","pages":[{"title":"Send sponsored USDC or USDT on Solana","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/solana/transfers/send","href":"/api-reference/solana/send-sponsored-usdc-or-usdt-on-solana"},{"title":"Read a Solana transfer","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json get /v1/solana/transfers/{id}","href":"/api-reference/solana/read-a-solana-transfer"},{"title":"Read a Solana SPL balance","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json get /v1/solana/users/balance","href":"/api-reference/solana/read-a-solana-spl-balance"},{"title":"Provision a Solana wallet","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/solana/users/provision","href":"/api-reference/solana/provision-a-solana-wallet"}]},{"group":"Swaps","pages":[{"title":"Swap USDC\u003c->USDT","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/swaps","href":"/api-reference/swaps/swap-usdc\u003c->usdt"},{"title":"Get swap status","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json get /v1/swaps/{id}","href":"/api-reference/swaps/get-swap-status"}]},{"group":"B2B - Transfers","pages":[{"title":"Send Instant On-Chain Transfer","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/transfers/send","href":"/api-reference/b2b--transfers/send-instant-on-chain-transfer"}]},{"group":"B2B - TRON USDT","pages":[{"title":"Send sponsored TRON USDT","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/tron/transfers/send","href":"/api-reference/b2b--tron-usdt/send-sponsored-tron-usdt"},{"title":"Get sponsored TRON USDT transfer status","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json get /v1/tron/transfers/{id}","href":"/api-reference/b2b--tron-usdt/get-sponsored-tron-usdt-transfer-status"},{"title":"Read TRON USDT balance","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json get /v1/tron/users/balance","href":"/api-reference/b2b--tron-usdt/read-tron-usdt-balance"},{"title":"Provision a sponsored TRON USDT wallet","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/tron/users/provision","href":"/api-reference/b2b--tron-usdt/provision-a-sponsored-tron-usdt-wallet"}]},{"group":"B2B - Users","pages":[{"title":"Get Customer Stablecoin Balances","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json get /v1/users/balance","href":"/api-reference/b2b--users/get-customer-stablecoin-balances"},{"title":"Fund Customer SCW (On-Ramp)","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/users/fund","href":"/api-reference/b2b--users/fund-customer-scw-on-ramp"},{"title":"Confirm Wallet Link with OTP (Consent Step 2)","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/users/link/confirm","href":"/api-reference/b2b--users/confirm-wallet-link-with-otp-consent-step-2"},{"title":"Request to Link an Existing Wallet (Consent Step 1)","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/users/link/request","href":"/api-reference/b2b--users/request-to-link-an-existing-wallet-consent-step-1"},{"title":"Confirm Phone Number Change with OTP (Consent Step 2)","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/users/phone-change/confirm","href":"/api-reference/b2b--users/confirm-phone-number-change-with-otp-consent-step-2"},{"title":"Request Phone Number Change (Consent Step 1)","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/users/phone-change/request","href":"/api-reference/b2b--users/request-phone-number-change-consent-step-1"},{"title":"Provision User SCW Address","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/users/provision","href":"/api-reference/b2b--users/provision-user-scw-address"},{"title":"Update Customer Phone Number","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/users/update-phone","href":"/api-reference/b2b--users/update-customer-phone-number"},{"title":"Initiate Off-Ramp Withdrawal","deprecated":null,"version":null,"openapi":"/api-reference/caas-openapi.json post /v1/users/withdraw","href":"/api-reference/b2b--users/initiate-off-ramp-withdrawal"}]}]}]},"basePath":"","title":"Payouts, sweeps \u0026 balances - Rach","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}