Get the payment account
GET
/payments/account
const url = 'https://example.com/payments/account';const options = { method: 'GET', headers: {cookie: '__Host-bottle.session_token=<__Host-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 GET \ --url https://example.com/payments/account \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>The business’s own provider account, connected to Bottle. Money settles to them; Bottle never holds it. Until the provider says the account may take charges, no payment link can be sent.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Where they stand
Media typeapplication/json
object
status
required
string
provider
required
object
id
required
string
name
required
string
manageUrl
required
string | null format: uri
capabilities
required
Array<string>
chargesEnabled
required
boolean
detailsSubmitted
required
boolean
onboardingUrl
required
string | null format: uri
existingAccountAvailable
boolean
Example
{ "status": "none", "provider": { "capabilities": [ "account_onboarding" ] }}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"}