List Bottle invoices
GET
/billing/invoices
const url = 'https://example.com/billing/invoices';const options = { method: 'GET', 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 GET \ --url https://example.com/billing/invoices \ --cookie bottle.session_token=<bottle.session_token>Newest first. Each one links to its own page, where the VAT breakdown and a PDF live.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The invoices, or none yet
Media typeapplication/json
object
invoices
required
Array<object>
object
id
required
string
number
required
string | null
date
required
string format: date-time
total
required
integer
currency
required
ISO 4217, lower case, as Stripe writes it.
string
status
required
string
url
required
string | null format: uri
pdfUrl
required
string | null format: uri
Example
{ "invoices": [ { "status": "draft" } ]}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not allowed to manage billing, or asking for a key to do it
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}