Skip to main content
GET
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.

Errors

  • 400: limit is not an integer between 1 and 24. The message is Limit must be an integer between 1 and 24.
  • 403 INSUFFICIENT_PERMISSIONS: the API key does not have the billing:read scope.
  • 503 SERVICE_UNAVAILABLE: billing is not available.
Billing unavailable