Invoices and top-ups
GET
/api/billing/invoices
const url = 'https://met.cards/api/billing/invoices?limit=50';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://met.cards/api/billing/invoices?limit=50' \ --header 'Authorization: Bearer <token>'Invoices issued to the workspace and balance adjustments and refunds, newest first in one list, paged with cursor and limit (nextCursor is null on the last page). Top-up requests still open come with the first page only.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”cursor
string
The nextCursor of the previous page. Leave it out for the newest items.
limit
number
Invoices and balance changes per page (1 to 100). Defaults to 50.
Responses
Section titled “Responses”Media typeapplication/json
object
Examplegenerated
{}