Skip to main content
GET
List invoices
Every invoice the workspace has, newest first, with links to view it online and download the PDF. Requires billing:read, so a key made for bookkeeping can read invoices without being able to top up or change anything. Every payment comes with one invoice, emailed to the workspace’s billing email when it is paid: a credit top-up, an automatic top-up, and a phone number’s first and every monthly charge. What the invoices print about you is set with PATCH /billing/details.

Query

next_cursor is null on the last page. A page can hold fewer than limit invoices and still have a next_cursor: keep reading until it is null.

The fields

An invoice still being prepared, and one cancelled before it was paid, is never listed. Invoices are issued in English.

Errors

Authorizations

Authorization
string
header
required

Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys. No key is 401 MISSING_KEY; a key that is not one of ours, or is revoked, is 401 INVALID_KEY; an expired one is 401 EXPIRED_KEY. A valid key without the scope an operation needs is 403 INSUFFICIENT_SCOPE on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's RATE_LIMIT asks for what is left of the minute, a route's daily cap (RATE_LIMITED) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is 404 ROUTE_NOT_FOUND, and a method a served path does not take is 405 METHOD_NOT_ALLOWED with an Allow header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (POST /calls/ is POST /calls) and refused where it can (GET /calls/). A doubled slash inside a path is merged into one before the request reaches the API (GET //calls is GET /calls).

Query Parameters

limit
integer
default:20

How many invoices to return, 1 to 100. Default 20.

Required range: 1 <= x <= 100
cursor
string

The next_cursor of the previous page. Leave it out to start from the newest invoice.

Response

One page of invoices

invoices
object[]
required
next_cursor
string | null
required

Send as cursor for the next page; null when there is none.