const options = {method: 'POST'};
fetch('https://api.dolfinai.co/organisations/{id}/payment-account/session', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"clientSecret": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}Returns a short-lived client secret that the frontend hands to Stripe’s embedded ConnectAccountOnboarding component. The secret is single-use and expires; call this endpoint each time the onboarding component is mounted.
const options = {method: 'POST'};
fetch('https://api.dolfinai.co/organisations/{id}/payment-account/session', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"clientSecret": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}Documentation Index
Fetch the complete documentation index at: https://docs.dolfinai.co/llms.txt
Use this file to discover all available pages before exploring further.