Enlivy allows you to seamlessly manage receipts for your organization via its robust API.
Whether you’re synchronizing with internal payment tracking tools, generating transaction records, or integrating with finance dashboards, the Enlivy API provides endpoints to list, view, create, and update receipts with full control and flexibility.
Each receipt is linked to an organization and can hold details like amounts, currencies, status, payment methods, and linked invoices.
Using the following endpoints, you can automate and streamline receipt operations within your system.
Each receipt is tied to an organization and may contain detailed information including payment methods, statuses, and line items.
Use the following endpoints to integrate receipt management into your workflows.
This section covers the essential operations:
- List all receipts
- Retrieve details of a specific receipt
- Create a new receipt
- Edit an existing receipt
List All Receipts
const organizationId = "your_org_id";
const token = "YOUR_TOKEN_HERE";
fetch(`https://api.enlivy.com/organizations/${organizationId}/receipts?page=1&limit=20&include=line_items,taxes,tag_ids&include_meta=navigation`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
}
});Get a Receipt
const organizationId = "your_org_id";
const receiptId = "receipt_12345";
const token = "YOUR_TOKEN_HERE";
fetch(`https://api.enlivy.com/organizations/${organizationId}/receipts/${receiptId}?include=tag_ids,taxes`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
}
});Add a Receipt
const organizationId = "your_org_id";
const token = "YOUR_TOKEN_HERE";
fetch(`https://api.enlivy.com/organizations/${organizationId}/receipts`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
issued_at: "2025-03-01",
line_items: [
{ description: "Item", quantity: 1, unit_price: 50 }
]
})
});Edit a Receipt
const organizationId = "your_org_id";
const receiptId = "receipt_12345";
const token = "YOUR_TOKEN_HERE";
fetch(`https://api.enlivy.com/organizations/${organizationId}/receipts/${receiptId}`, {
method: 'PUT',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
status: "confirmed"
})
});