Enlivy gives you full control over your organization’s invoices via the API.
Whether you’re integrating billing into your own dashboard or automating invoicing workflows, the Enlivy API enables you to list, view, create, and update invoices with precision and ease.
Each invoice in Enlivy is associated with an organization and can include detailed billing information, statuses, and line items.
By using the following endpoints, you can efficiently manage your organization’s invoicing process, connect with internal billing systems, or automate recurring invoice generation.
This section covers the essential operations:
- List all invoices
- Retrieve details of a specific invoice
- Create a new invoice
- Edit an existing invoice
List All Invoices
const organizationId = "your_org_id";
const token = "YOUR_TOKEN_HERE";
fetch(`https://api.enlivy.com/organizations/${organizationId}/invoices?page=1&limit=20&include=invoice_prefix,tag_ids,line_items,taxes&include_meta=navigation`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
}
});Get an Invoice
const organizationId = "your_org_id";
const invoiceId = "your_invoice_id";
const token = "YOUR_TOKEN_HERE";
fetch(`https://api.enlivy.com/organizations/${organizationId}/invoices/${invoiceId}?include=invoice_prefix,tag_ids,line_items,taxes`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
}
});Adding an Invoice
const organizationId = "your_org_id";
const token = "YOUR_TOKEN_HERE";
fetch(`https://api.enlivy.com/organizations/${organizationId}/invoices`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
invoice_prefix_id: "prefix_id_1",
issued_at: "2025-03-01",
line_items: [
{ description: "Consulting services", quantity: 1, unit_price: 500 }
]
})
});Edit an Invoice
const organizationId = "your_org_id";
const invoiceId = "existing_invoice_id";
const token = "YOUR_TOKEN_HERE";
fetch(`https://api.enlivy.com/organizations/${organizationId}/invoices/${invoiceId}`, {
method: 'PUT',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
status: "sent"
})
});