Skip to content
Connect an agent
Billing

List your invoices and receipts

The invoices Stripe issued for this account's Plotwork subscription, newest first.

GET/user/billing/documents

TL;DR

QuestionAnswer
What does it do?List your invoices and receipts.
What does it take?Nothing.
What does it return?Status 200 with a body of type BillingDocumentList.
What can go wrong?401 not signed in; 429 too many requests; 502 stripe could not complete the request; 503 billing is not set up on this server. Every failure uses the one error envelope.

What it does

The invoices Stripe issued for this account's Plotwork subscription, newest first. Amounts are whole cents with a currency. A paid invoice is a receipt. Nothing of another product on the shared Stripe account is ever listed.

Responses

StatusMeaningBody
200The account's documents.BillingDocumentList
401Not signed in.ErrorResponse
429Too many requests.ErrorResponse
502Stripe could not complete the request.ErrorResponse
503Billing is not set up on this server.ErrorResponse

Response body

A 200 answer has the type BillingDocumentList.

FieldTypeRequiredDescription
itemsBillingDocument[]yes
items[].idstringyesThe id to ask for the document and its PDF with.
items[].kind"invoice" | "receipt"yesA receipt is an invoice that has been paid; anything else is an invoice.
items[].numberstringyesThe number printed on the document, which an accounts department quotes back.
items[].descriptionstringyesWhat it was for, such as the plan. Empty when Stripe names nothing.
items[].currencystringyesThe three-letter currency, in capitals. at least 3 characters; at most 3 characters.
items[].totalCentsintegeryesThe total in whole cents (the currency's minor unit).
items[].statusstringyesThe invoice's own word: paid, open, void, or uncollectible. A draft is never listed.
items[].issuedAtintegeryesWhen it was issued, in milliseconds since the epoch.
items[].paidAtinteger | nullyesWhen it was paid, in milliseconds since the epoch, or null while it is not.
items[].downloadablebooleanyesFalse when there is no PDF to fetch, so the PDF route would answer 404.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools