Interface: FlowStartOptions
Defined in: packages/sdk/src/core/types.ts:489
Extended by
This interface is active. Its options are also inherited by FlowOpenOptions.
Properties
context?
optionalcontext?:Record<string,unknown>
Defined in: packages/sdk/src/core/types.ts:499
environment?
optionalenvironment?:"test"|"live"
Defined in: packages/sdk/src/core/types.ts:508
Force the server into a specific environment when creating the
session. 'test' routes the checkout to the org's Stripe test
integration (super-admin only). Omit to let the server decide
based on the caller's identity + route mode.
headless?
optionalheadless?:boolean
Defined in: packages/sdk/src/core/types.ts:500
promo?
optionalpromo?:PromoContext
Defined in: packages/sdk/src/core/types.ts:501
sessionId?
optionalsessionId?:string
Defined in: packages/sdk/src/core/types.ts:515
Reuse an existing session UUID instead of creating a fresh one. Used by the auto-resume path to finalize against the ORIGINAL session after a redirect-based auth bounce — creating a new session would lose the draft upsell invoice that needs settling.
templateId?
optionaltemplateId?:string
Defined in: packages/sdk/src/core/types.ts:491
templateSlug?
optionaltemplateSlug?:string
Defined in: packages/sdk/src/core/types.ts:490
user?
optionaluser?:string
Defined in: packages/sdk/src/core/types.ts:498
Customer JWT for THIS call only — overrides the SDK-wide identity from
plandalf.setUser() or the user init option. Useful for "buy as customer"
admin tooling, impersonation flows, or offers that need a different identity
than the global one. The value is the raw JWT string.