What the business's payment provider reports
GET
/payments/summary
const url = 'https://example.com/payments/summary';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/summary \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>Where supported: money in the account, pending money, payouts and anything the provider needs from the owner. Read only: the provider pays the business and Bottle never moves money.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The normalised provider account summary
Media typeapplication/json
object
connected
required
boolean
provider
required
object
id
required
string
name
required
string
manageUrl
required
string | null format: uri
capabilities
required
Array<string>
chargesEnabled
required
boolean
payoutsEnabled
required
boolean | null
availablePence
required
integer | null
pendingPence
required
integer | null
nextPayout
required
object
date
required
string format: date
pence
required
integer
lastPayout
required
object
date
required
string format: date
pence
required
integer
disabledReason
required
string | null
problems
required
Array<object>
object
code
required
string
kind
required
string
requirement
required
string
when
required
string
reason
required
string | null
deadline
required
string | null format: date
Example
{ "provider": { "capabilities": [ "account_onboarding" ] }, "problems": [ { "kind": "bank", "when": "now" } ]}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"}