Connect a payment account
POST
/payments/account
const url = 'https://example.com/payments/account';const options = { method: 'POST', headers: {cookie: 'bottle.session_token=<bottle.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/payments/account \ --cookie bottle.session_token=<bottle.session_token>Creates their Stripe account the first time and returns where to send the browser to finish. Call it again for a fresh link whenever setup was left half done: the links Stripe gives out expire in minutes.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The account, with somewhere to go next
Media typeapplication/json
object
status
required
string
chargesEnabled
required
boolean
detailsSubmitted
required
boolean
onboardingUrl
required
string | null format: uri
Example
{ "status": "none"}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, or without the permission this needs
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Payments are not configured on this installation
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}