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-11-21T06:47:56.608Z", "billing_end": "2024-11-21T06:47:56.608Z", "subscription_id": "text", "status": "text", "created_at": "2024-11-21T06:47:56.608Z" } ]
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-11-21T06:47:56.608Z", "billing_end": "2024-11-21T06:47:56.608Z", "subscription_id": "text", "status": "text", "created_at": "2024-11-21T06:47:56.608Z" }