List of all invoices
Details of the specified invoice
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-12-21T12:06:57.971Z", "billing_end": "2024-12-21T12:06:57.971Z", "subscription_id": "text", "total_amount": 0, "status": "text", "created_at": "2024-12-21T12:06:57.971Z" } ]
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-12-21T12:06:57.971Z", "billing_end": "2024-12-21T12:06:57.971Z", "subscription_id": "text", "total_amount": 0, "status": "text", "created_at": "2024-12-21T12:06:57.971Z" }