Generate a URL that directs a sub-merchant to their account portal, such as the hosted payouts dashboard or the KYC onboarding flow.
A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
Parameters for CreateAccountLink
The unique identifier of the company to generate the link for, starting with 'biz_'. Must be a sub-merchant of the API key's company.
"biz_xxxxxxxxxxxxxx"
The URL to redirect the user to if the session expires and needs to be re-authenticated, such as 'https://example.com/refresh'.
The URL to redirect the user to when they want to return to your site, such as 'https://example.com/return'.
The purpose of the account link, such as hosted payouts portal or hosted KYC onboarding.
account_onboarding, payouts_portal A successful response
A temporary, time-limited URL that grants a user access to an external account management page.
The temporary URL to redirect the user to for account access. Expires at the time specified by expires_at.
"https://whop.com/payouts/biz_xxxxxxxxx/verify"
The timestamp after which this account link URL is no longer valid.
"2023-12-01T05:00:00.401Z"