Use an Affonso API key with the billing:read scope. Invoices are ordered newest first. Teams without Stripe invoices receive an empty data array. The response is not paginated.The broad read, write, and delete permissions and OAuth tokens do not include billing:read. Only team members with billing access can create a key with this scope.
integer
default:"24"
Number of invoices to return, from 1 to 24. Defaults to and is capped at 24.
Response
boolean
true when the request succeeds.
array
The team’s Stripe invoices, newest first. There is no pagination object.
Show Invoice fields
integer
Creation time as Unix seconds.
string | null
Stripe invoice number.
integer
Stripe invoice total in the currency’s smallest unit.
string
Lowercase ISO currency code from Stripe.
string | null
Stripe invoice status.
string | null
Link to the hosted invoice.
string | null
Link to download the invoice PDF.
Errors
400: limit is not an integer between 1 and 24. The message is Limit must be an integer between 1 and 24.
403INSUFFICIENT_PERMISSIONS: the API key does not have the billing:read scope.