Initialize sub-account KYC
create_sub_account_kyc_sessionStart KYC verification for a sub-account by emailing a secure link or returning a redirect widget URL; optionally send events to a webhook and track status.
Instructions
Start a Vobiz-hosted KYC session for a sub-account. flow_type email (default) has Vobiz email the customer a secure verification link (customer_email required); flow_type redirect returns a widget_url to send the customer to (redirect_url required). Optional webhook_url receives KYC events. Track progress with get_sub_account_kyc_status. Gated by VOBIZ_ENABLE_PROVISIONING and confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true, set only after the user explicitly approved: starting KYC for this sub-account (the email flow emails the customer). | |
| flow_type | No | Default email. | |
| sub_auth_id | Yes | The sub-account's Auth ID (SA_...), from list_sub_accounts. | |
| webhook_url | No | Public https endpoint that receives KYC events. Omit for no callbacks. | |
| redirect_url | No | Required for flow_type redirect: where the customer's browser goes after verification (public https). | |
| customer_email | No | Required for flow_type email: Vobiz sends the KYC link here. | |
| expires_in_days | No | Days until the link expires (Vobiz default 7). |