const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({returnUrl: '<string>', refreshUrl: '<string>'})
};
fetch('https://api.dolfinai.co/organisations/{id}/payment-account/link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"url": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}Returns a short-lived Stripe-hosted onboarding URL. The Client redirects the SMB to this URL; Stripe collects KYC and redirects back to the supplied ReturnUrl. Use this as an alternative to the embedded-components session when the Client does not want to embed Stripe.js. The returned link is single-use and expires; call this endpoint each time onboarding resumes.
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({returnUrl: '<string>', refreshUrl: '<string>'})
};
fetch('https://api.dolfinai.co/organisations/{id}/payment-account/link', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"url": "<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.