List invoices
const url = 'https://api.brrndops.com/v1/invoices?limit=10&starting_after=inv_8f3c0e7e-5d2a-4c1b-9f43-2c1d0a9b7e11&status=open%2Csent';const options = {method: 'GET', headers: {Authorization: 'Bearer <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://api.brrndops.com/v1/invoices?limit=10&starting_after=inv_8f3c0e7e-5d2a-4c1b-9f43-2c1d0a9b7e11&status=open%2Csent' \ --header 'Authorization: Bearer <token>'Returns invoices, newest first. Deleted invoices are hidden unless you ask for status=deleted.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Example
inv_8f3c0e7e-5d2a-4c1b-9f43-2c1d0a9b7e11An invoice ID; returns the invoices after it.
Example
open,sentComma-separated: draft, open, sent, paid, deleted.
Case-insensitive exact match.
Responses
Section titled “ Responses ”A page of invoices.
object
object
object
ISO 3166-1 alpha-2
object
ISO 3166-1 alpha-2
object
Quantity × unit_amount.
Subtotal + tax_amount − discount_amount.
object
Must be https.
object
Example
{ "object": "list", "url": "/v1/invoices", "data": [ { "id": "inv_8f3c0e7e-5d2a-4c1b-9f43-2c1d0a9b7e11", "object": "invoice", "number": "INV-001", "status": "draft", "customer": { "country_code": "NG" }, "issuer": { "country_code": "NG" }, "line_items": [ { "id": "li_…", "object": "line_item" } ], "branding": { "primary_color": "#2388ff", "secondary_color": "#f7f8fc" } } ]}The request was invalid: a missing or malformed field (param says which), an unknown field, or a rule such as a disallowed status change.
object
object
The request field the error relates to.
Example
{ "error": { "type": "authentication_error", "code": "parameter_missing" }}Missing, invalid, expired or revoked API key.
object
object
The request field the error relates to.
Example
{ "error": { "type": "authentication_error", "code": "parameter_missing" }}The key lacks the required scope (insufficient_scope), or the business isn’t verified yet (account_not_verified, production keys only).
object
object
The request field the error relates to.
Example
{ "error": { "type": "authentication_error", "code": "parameter_missing" }}