Skip to main content

Overview

Some widget flows require the user to accept the latest legal disclosure before continuing. ZBD tracks acceptance by disclosure type and version, so a user may need to accept a new version even if they accepted an older version before. The widget session exposes outstanding session disclosures, and the cashout backend separately verifies cashout-specific disclosures before a payout is submitted.

End-to-end Flow

If your integration only embeds the hosted widget, the disclosure prompt and acceptance flow are handled inside the widget. Your backend still creates users, funds balances, creates sessions, and processes webhooks as usual.

Outstanding Disclosures on User Creation

You do not need a separate call to discover what a user still owes. The Create User response (POST /api/v1/widget/users) already includes an outstanding_disclosures array on that first user request — the disclosure versions this user has not yet accepted. Surface or record them right away; if the array is empty, the user is current. outstanding_disclosures only lists what is still outstanding. When you need the complete picture — including which disclosures a user has already accepted and when — use the dedicated endpoints:
  • Get Disclosure Status — list every current disclosure type with the user’s acceptance state (is_current, accepted_at), so you can show accepted vs. outstanding.
  • Submit Disclosure Acceptance — record acceptance of the latest version from your server.
The same outstanding_disclosures shape also appears in the widget session status during a session (see Session Status). Create User is the initial snapshot at provisioning time; Get Disclosure Status is the source of truth for the full, up-to-date acceptance state.

Disclosure Types

The widget disclosure endpoints can check and record acceptance for all current disclosure types.
ACH cashout submission requires the current Electronic Funds Transfer disclosure to be accepted. If the user has not accepted the latest Electronic Funds Transfer disclosure, the cashout request is rejected until acceptance is recorded.

Session Status

During a widget session, ZBD returns outstanding session disclosure information to the widget runtime. The field is named outstanding_disclosures. Today this session response includes Terms of Service and Privacy Policy disclosure checks. Cashout-specific checks, such as Electronic Funds Transfer acceptance for ACH, are enforced when the user submits the cashout. Example session status shape:
If outstanding_disclosures is empty, the user is current on all session disclosures returned by this endpoint.

Recording Acceptance Outside the Widget

Most integrations should let the hosted widget collect the user’s acceptance. If your integration collects disclosure acceptance before the widget opens, use the widget disclosure APIs from your server. The API key determines the project context, so these endpoints only require the widget user ID in the path.
Disclosure endpoints require your server-side API key. Do not call these endpoints directly from a browser, mobile client, game client, or WebView.
Use Get Disclosure Status to check current disclosure acceptance and Submit Disclosure Acceptance to record acceptance for the latest version of one or more disclosure types.

Existing Users

Disclosure acceptance is versioned. If a user already exists and needs to accept a current disclosure, submit the acceptance with the disclosure endpoint above. Do not rely on an idempotent user-create call to update disclosure acceptance for an existing user. User creation can return an existing user without recording new disclosure acceptance.

Sandbox

Sandbox uses the same disclosure status and acceptance model as production. When testing disclosure handling, use your sandbox API key and sandbox API base URL:
Some sandbox bypass settings can skip cashout checks for faster testing. If you specifically need to verify cashout disclosure blocking behavior, make sure your sandbox setup is not bypassing the cashout disclosure gate.