Invoice prefixes in Enlivy allow organizations to customize the numbering scheme of invoices.
By assigning prefixes, you can categorize or segment invoices by department, region, fiscal year, or any custom logic.
The Enlivy API provides endpoints to list, create, update, and retrieve invoice prefixes with full control and flexibility.
Operations Covered
Returns a list of invoice prefixes available in your organization.
GET /organizations/{organizationId}/invoice-prefixes
Authorization: Bearer
Content Type: application/json
const organizationId = "your_org_id";
const token = "YOUR_TOKEN_HERE";
fetch(`https://api.enlivy.com/organizations/{organizationId}/invoice-prefixes?page=1&limit=20&include_meta=navigation`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
}
});
This is just a preview, additional fields may appear depending on organization settings.
{
"data": [
{
"id": "org_invpfx_dummy",
"organization_id": "org_dummy",
"name": "Prefix name",
"alias": "prefix_name",
"description": "Prefix description.",
"current_number": 1,
"type": "standard"
}
],
"meta": {
"navigation": {
"active": 2,
"trash": 0
},
"pagination": {
"total": 2,
"count": 2,
"per_page": 20,
"current_page": 1,
"total_pages": 1,
"links": {}
}
}
}
Fetch detailed information about a single invoice prefix by ID.
GET /organizations/{organizationId}/invoice-prefixes/{prefixId}
Authorization: Bearer
Content Type: application/json
const organizationId = "your_org_id";
const prefixId = "prefix_id_1";
const token = "YOUR_TOKEN_HERE";
fetch(`https://api.enlivy.com/organizations/${organizationId}/invoice-prefixes/${prefixId}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
}
});
This is just a preview, additional fields may appear depending on organization settings.
{
"data": {
"id": "org_invpfx_dummy",
"organization_id": "org_dummy",
"name": "Prefix name",
"alias": "prefix_name",
"description": null,
"current_number": 1,
"type": "standard",
}
}
Add a new prefix configuration to your organization for future invoices.
GET /organizations/{organizationId}/invoice-prefixes/{prefixId}
Authorization: Bearer
Content Type: application/json
const organizationId = "your_org_id";
const token = "YOUR_TOKEN_HERE";
fetch(`https://api.enlivy.com/organizations/${organizationId}/invoice-prefixes`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body:
});
This is just a preview, additional fields may appear depending on organization settings.
{
"data": {
"id": "org_invpfx_dummy",
"organization_id": "org_dummy",
"name": "Prefix name",
"alias": "prefix_name",
"description": null,
"current_number": 1,
"type": "standard",
}
}
Update the details of an existing invoice prefix (e.g., description or starting number). The actual prefix value may be locked if already in use.
PUT /organizations/{organizationId}/invoice-prefixes/{prefixId}
Authorization: Bearer
Content Type: application/json
const organizationId = "your_org_id";
const token = "YOUR_TOKEN_HERE";
fetch(`https://api.enlivy.com/organizations/${organizationId}/invoice-prefixes`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body:
});
This is just a preview, additional fields may appear depending on organization settings.
{
"data": {
"id": "org_invpfx_dummy",
"organization_id": "org_dummy",
"name": "Prefix",
"alias": "prefix",
"description": null,
"current_number": 2,
"type": "standard",
}
}