List of all invoices
const response = await fetch('https://beta.data.banyan.computer/api/v1/invoices', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
[ { "id": "text", "billing_start": "2024-05-17T06:50:34.927Z", "billing_end": "2024-05-17T06:50:34.927Z", "subscription_id": "text", "status": "text", "created_at": "2024-05-17T06:50:34.927Z" } ]
Details of the specified invoice
const response = await fetch('https://beta.data.banyan.computer/api/v1/invoices/{invoice_id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "billing_start": "2024-05-17T06:50:34.927Z", "billing_end": "2024-05-17T06:50:34.927Z", "subscription_id": "text", "status": "text", "created_at": "2024-05-17T06:50:34.927Z" }