Prerequisites
- A Fluz account with a staging application — Steps 1–2 of any quickstart, or see Prepare your accounts and API credentials.
- An OAuth-configured app: a
client_id,client_secret, and registeredredirect_uri— see Create an OAuth App and Configure OAuth App. - Requests go to the sandbox — no real money, no real PII. See Staging vs. Live Environment.
The full flow
Register the customer
Provision a complete user — account, balances, and referral capability — with
registerUser, authenticated with your application’s token.Send the customer through the OAuth grant
The customer authorizes your app by visiting the hosted grant page. Build the URL with your OAuth settings and the scopes your integration needs:
Authorization URL
scopesis space-delimited (URL-encoded as%20) and must be a subset of the scopes enabled on your app — unknown scopes are silently ignored.stateis echoed back unmodified — use it to correlate the redirect with your session.
redirect_uri with ?code=...&state=.... That code is single-use — capture it server-side.Full parameter reference: Client-Facing OAuth Grant Flow.Exchange the code for the customer's token
Trade the authorization code for the customer-scoped The
accessToken (plus a refreshToken). This call authenticates with Basic auth: base64 of client_id:client_secret.redirect_uri must match the grant step exactly. Store the refreshToken and rotate before accessTokenExpiresAt — see Refresh an OAuth Access Token.Verify the customer's identity (KYC)
Money movement requires a verified identity. Call
verifyUserInformation with the customer’s token — the token determines who gets verified. In staging, this test identity always returns APPROVED:Operate on their account — prove it
This is the payoff: run any Fluz operation with the customer’s token and it executes against their account. An
createVirtualCard is createVirtualCard — no separate platform API.ACTIVE card back means the loop is closed: registered → connected → verified → operating. The customer becomes visible in your systems through the token; they never gained access to your account, and you hold only the scopes they granted.You’re done 🎉
You’ve onboarded and connected a customer end to end. From here:Build a platform
The full platform architecture — token paths, capabilities, and patterns.
Approvals & requests
Let connected users request actions that owners approve.
External reference IDs
Address customers by your own IDs instead of Fluz account IDs.
Business registration & KYB
Onboard businesses, not just individuals.
Want to learn more? Contact us at support@fluz.app to speak with our experts or request a demo.