Payout account
A payout account is the seller’s connection to the payment provider. It is the record funds are transferred to. A payout account is represented by thePayoutAccount data model (table payout_account, id prefix pacc). It is
created for a seller through createPayoutAccountWorkflow, which also links the
account to the store.
PayoutAccount. It then calls the provider to create the connected account and
stores what the provider returns in the account’s data field. A seller has
exactly one payout account.
A store can only have one payout account.
createPayoutAccountWorkflow
validates that the seller doesn’t already have one before creating it.Onboarding
Before an account can receive funds, the seller usually has to complete provider-side setup, such as identity verification, bank details, or KYC. That state is held in theOnboarding data model (table onboarding, id prefix
onb). The record is a one-to-one satellite of the payout account.
Provider data
Thedata JSON field on PayoutAccount, Onboarding, and Payout is where
provider-specific values live, such as the Stripe account id, onboarding URLs, or
transfer references. The module never interprets these fields. It forwards them
to and from the provider.