Skip to main content
In this guide, you’ll learn how to start provider onboarding for a payout account from server code. Onboarding is what moves an account from PENDING toward ACTIVE. For Stripe Connect, it produces the hosted link the seller uses to submit their details.

Run the workflow

createOnboardingWorkflow asks the provider to produce onboarding data and stores it as an Onboarding record on the account.
src/api/custom/onboarding/route.ts
The provider-specific payload (for Stripe Connect, the onboarding URL) is stored in the record’s data field for you to return to the seller.
Running the workflow again on an account that already has an onboarding record updates it in place instead of creating a second one. It is safe to call whenever a seller needs a fresh link.

Reaching ACTIVE

Onboarding kicks off the flow, but the account only becomes ACTIVE when the provider confirms it via webhook. Handle that step in Process a webhook, and see Account lifecycle for the full state model.