API reference
A JSON API over your firm's customers, invoices, projects and tickets, authenticated with a key you create in your account.
Authentication
Send a key in the Authorization header. Each key carries scopes that can only narrow what its creator is allowed to do. Keys can expire after 30, 90 or 365 days.
| Scope | Allows |
|---|---|
customer:read | Read customers and contacts. |
customer:create | Create customers. |
customer:update | Update customers, and add or update contacts. |
invoice:read | Read invoices, with totals and balance. |
invoice:write | Create, edit and send invoices. |
payment:record | Record payments against invoices. |
estimate:read | Read estimates. |
estimate:write | Create, edit and send estimates. |
project:read_all | Read every project and task. |
project:read_own | Read only the projects and tasks the key's creator is on. |
project:write | Create and update projects. |
task:write | Create and update tasks. |
time:log | Log time entries. |
ticket:read_all | Read every ticket. |
ticket:read_assigned | Read only tickets assigned to the key's creator. |
ticket:reply | Open tickets, change them and post replies. |
Authorization: Bearer pk_live_...Limits
- Rate limit
- 600 requests a minute per keyPast the limit you get 429 with Retry-After. Repeated failed authentication from one address is also limited, to 20 a minute.
RateLimit-LimitRateLimit-RemainingRateLimit-Reset (seconds)Retry-After (on 429) - Idempotency
- Idempotency-Key header on any POST, kept 24 hoursSend 1 to 255 printable characters, no spaces. A repeat returns the first response. Same key with a different request returns 422; still running returns 409. A 5xx is never stored. PATCH ignores the header.
Idempotency-Key (request)Idempotent-Replayed: true (response)Retry-After (on 409) - Pagination
- page and pageSize, 25 a page by default, 200 at mostLists return rows, total, page, pageSize, pageCount and applied, which echoes the search, sort and filters used. Unrecognised sort fields and filter values are ignored, not rejected.
- Money and quantities
- Whole numbers in minor unitsAmounts end in Minor and are integer pence or cents: 3480.00 is 348000. Quantities are thousandths (1500 is 1.5). Tax and discount percentages are basis points (2000 is 20%). Dates are YYYY-MM-DD in, ISO timestamps out.
Errors
| Status | Meaning |
|---|---|
400 | Invalid body, bad Idempotency-Key, or an unknown field. issues lists each problem by path. |
401 | Missing, malformed, expired or revoked key. |
403 | The key lacks the scope, or the firm account is suspended and the call is a write. |
404 | No such record in your firm, or the module is not on your plan. Never 403, so ids are not confirmed. |
409 | The record is in the wrong state, such as editing a sent invoice, or an Idempotency-Key is still running. |
422 | The Idempotency-Key was already used with a different request. |
429 | Rate limit reached. Wait for Retry-After seconds. |
500 | A fault on our side. Safe to retry; nothing is stored under an Idempotency-Key. |
{
"error": "A payment must be more than nothing.",
"issues": [
{
"path": "amountMinor",
"message": "A payment must be more than nothing."
}
]
}
Key
Check that a key works and see its scopes and rate limit.
GET/me
Show the key name, its scopes and remaining rate limit.
Scope any key
No parameters.
Touches no firm data. A good first call from a new integration.
curl -X GET "https://veilux.io/api/v1/me" \
-H "Authorization: Bearer $VEILUX_API_KEY"
const res = await fetch("https://veilux.io/api/v1/me", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
},
});
const data = await res.json();
import os, uuid, requests
res = requests.get(
"https://veilux.io/api/v1/me",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
},
)
data = res.json()
{
"name": "Billing sync",
"scopes": [
"customer:read",
"invoice:read",
"invoice:write",
"payment:record"
],
"rateLimit": {
"limit": 600,
"remaining": 598,
"resetSeconds": 42
}
}
Customers
Companies you do business with. Contacts are the people inside them.
GET/customers
List customers, paged and searchable.
Scope customer:read
| Parameter | Type | Description |
|---|---|---|
qquery | string | Search text, up to 200 characters. |
pagequery | integer | Page number, starting at 1. |
pageSizequery | integer | Rows per page. Default 25, maximum 200. |
sortquery | string | Field to sort by. An unknown field falls back to the default. |
dirquery | string | asc or desc. |
isActivequery | boolean | Only active (true) or inactive (false) customers. |
currencyquery | string | Three-letter currency code, for example GBP. Repeatable. |
groupquery | string | Customer group id. Repeatable: matches any. |
Search matches name, trading name, VAT number and contact emails. Sort by name, createdAt, currency or city.
curl -X GET "https://veilux.io/api/v1/customers" \
-H "Authorization: Bearer $VEILUX_API_KEY"
const res = await fetch("https://veilux.io/api/v1/customers", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
},
});
const data = await res.json();
import os, uuid, requests
res = requests.get(
"https://veilux.io/api/v1/customers",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
},
)
data = res.json()
{
"rows": [
{
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"tradingName": "Harrow & Finch",
"vatNumber": "GB 214 8890 31",
"companyNumber": "09182746",
"website": "https://harrowfinch.example",
"phone": "+44 20 7946 0321",
"accountManagerId": "cm3x9k2p40009tm0kaf0rxyz",
"supportTier": "STANDARD",
"accountManager": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor",
"email": "[email protected]"
},
"addressLine1": "14 Clerkenwell Green",
"addressLine2": null,
"city": "London",
"region": null,
"postcode": "EC1R 0DP",
"country": "GB",
"billingSameAsAddress": true,
"billingLine1": null,
"billingLine2": null,
"billingCity": null,
"billingRegion": null,
"billingPostcode": null,
"billingCountry": null,
"shippingLine1": null,
"shippingLine2": null,
"shippingCity": null,
"shippingRegion": null,
"shippingPostcode": null,
"shippingCountry": null,
"currency": "GBP",
"paymentTermDays": 30,
"isActive": true,
"notes": null,
"createdAt": "2026-03-02T09:14:00.000Z",
"updatedAt": "2026-10-01T08:30:00.000Z"
}
],
"total": 1,
"page": 1,
"pageSize": 25,
"pageCount": 1,
"applied": {
"search": null,
"sort": "name",
"direction": "asc",
"filters": {}
}
}
GET/customers/{id}
Fetch one customer.
Scope customer:read
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The customer id. |
curl -X GET "https://veilux.io/api/v1/customers/{id}" \
-H "Authorization: Bearer $VEILUX_API_KEY"
const res = await fetch("https://veilux.io/api/v1/customers/{id}", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
},
});
const data = await res.json();
import os, uuid, requests
res = requests.get(
"https://veilux.io/api/v1/customers/{id}",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
},
)
data = res.json()
{
"customer": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"tradingName": "Harrow & Finch",
"vatNumber": "GB 214 8890 31",
"companyNumber": "09182746",
"website": "https://harrowfinch.example",
"phone": "+44 20 7946 0321",
"accountManagerId": "cm3x9k2p40009tm0kaf0rxyz",
"supportTier": "STANDARD",
"accountManager": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor",
"email": "[email protected]"
},
"addressLine1": "14 Clerkenwell Green",
"addressLine2": null,
"city": "London",
"region": null,
"postcode": "EC1R 0DP",
"country": "GB",
"billingSameAsAddress": true,
"billingLine1": null,
"billingLine2": null,
"billingCity": null,
"billingRegion": null,
"billingPostcode": null,
"billingCountry": null,
"shippingLine1": null,
"shippingLine2": null,
"shippingCity": null,
"shippingRegion": null,
"shippingPostcode": null,
"shippingCountry": null,
"currency": "GBP",
"paymentTermDays": 30,
"isActive": true,
"notes": null,
"createdAt": "2026-03-02T09:14:00.000Z",
"updatedAt": "2026-10-01T08:30:00.000Z"
}
}
POST/customers
Create a customer.
Scope customer:create
| Parameter | Type | Description |
|---|---|---|
namebodyrequired | string | Company name, up to 200 characters. |
tradingNamebody | string | Trading name, if different. |
vatNumberbody | string | Tax or VAT number. |
companyNumberbody | string | Company registration number. |
websitebody | string | Must start with http:// or https://. |
phonebody | string | Main phone number. |
currencybody | string | Three-letter currency code, for example GBP. |
paymentTermDaysbody | integer | Default payment terms in days, 0 to 365. |
accountManagerIdbody | string | Id of the staff member who looks after the customer. |
supportTierbody | string | STANDARD, PRIORITY or VIP. |
addressLine1body | string | Address line 1. Line 2, city, region and postcode follow the same pattern. |
countrybody | string | Two-letter country code. |
notesbody | string | Internal notes. |
Billing and shipping address fields are also accepted. Unknown fields are refused with 400.
curl -X POST "https://veilux.io/api/v1/customers" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"name":"Harrow & Finch Ltd","currency":"GBP","paymentTermDays":30,"supportTier":"STANDARD","addressLine1":"14 Clerkenwell Green","city":"London","postcode":"EC1R 0DP","country":"GB"}'
const res = await fetch("https://veilux.io/api/v1/customers", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"name": "Harrow & Finch Ltd",
"currency": "GBP",
"paymentTermDays": 30,
"supportTier": "STANDARD",
"addressLine1": "14 Clerkenwell Green",
"city": "London",
"postcode": "EC1R 0DP",
"country": "GB"
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.post(
"https://veilux.io/api/v1/customers",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"name": "Harrow & Finch Ltd",
"currency": "GBP",
"paymentTermDays": 30,
"supportTier": "STANDARD",
"addressLine1": "14 Clerkenwell Green",
"city": "London",
"postcode": "EC1R 0DP",
"country": "GB"
},
)
data = res.json()
{
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"tradingName": "Harrow & Finch",
"vatNumber": "GB 214 8890 31",
"companyNumber": "09182746",
"website": "https://harrowfinch.example",
"phone": "+44 20 7946 0321",
"accountManagerId": "cm3x9k2p40009tm0kaf0rxyz",
"supportTier": "STANDARD",
"accountManager": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor",
"email": "[email protected]"
},
"addressLine1": "14 Clerkenwell Green",
"addressLine2": null,
"city": "London",
"region": null,
"postcode": "EC1R 0DP",
"country": "GB",
"billingSameAsAddress": true,
"billingLine1": null,
"billingLine2": null,
"billingCity": null,
"billingRegion": null,
"billingPostcode": null,
"billingCountry": null,
"shippingLine1": null,
"shippingLine2": null,
"shippingCity": null,
"shippingRegion": null,
"shippingPostcode": null,
"shippingCountry": null,
"currency": "GBP",
"paymentTermDays": 30,
"isActive": true,
"notes": null,
"createdAt": "2026-03-02T09:14:00.000Z",
"updatedAt": "2026-10-01T08:30:00.000Z"
},
"warnings": []
}
PATCH/customers/{id}
Change any of a customer's fields.
Scope customer:update
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The customer id. |
namebody | string | New company name. |
paymentTermDaysbody | integer | Payment terms in days, 0 to 365. |
supportTierbody | string | STANDARD, PRIORITY or VIP. |
isActivebody | boolean | Deactivate or reactivate the customer. |
Accepts every field create does, all optional, plus isActive. Send at least one. There is no delete.
curl -X PATCH "https://veilux.io/api/v1/customers/{id}" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"paymentTermDays":14,"supportTier":"PRIORITY"}'
const res = await fetch("https://veilux.io/api/v1/customers/{id}", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"paymentTermDays": 14,
"supportTier": "PRIORITY"
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.patch(
"https://veilux.io/api/v1/customers/{id}",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"paymentTermDays": 14,
"supportTier": "PRIORITY"
},
)
data = res.json()
{
"customer": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"tradingName": "Harrow & Finch",
"vatNumber": "GB 214 8890 31",
"companyNumber": "09182746",
"website": "https://harrowfinch.example",
"phone": "+44 20 7946 0321",
"accountManagerId": "cm3x9k2p40009tm0kaf0rxyz",
"supportTier": "PRIORITY",
"accountManager": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor",
"email": "[email protected]"
},
"addressLine1": "14 Clerkenwell Green",
"addressLine2": null,
"city": "London",
"region": null,
"postcode": "EC1R 0DP",
"country": "GB",
"billingSameAsAddress": true,
"billingLine1": null,
"billingLine2": null,
"billingCity": null,
"billingRegion": null,
"billingPostcode": null,
"billingCountry": null,
"shippingLine1": null,
"shippingLine2": null,
"shippingCity": null,
"shippingRegion": null,
"shippingPostcode": null,
"shippingCountry": null,
"currency": "GBP",
"paymentTermDays": 14,
"isActive": true,
"notes": null,
"createdAt": "2026-03-02T09:14:00.000Z",
"updatedAt": "2026-10-01T08:30:00.000Z"
}
}
Contacts
The people inside a customer, with or without a portal login.
GET/contacts
List contacts across all customers.
Scope customer:read
| Parameter | Type | Description |
|---|---|---|
qquery | string | Search text, up to 200 characters. |
pagequery | integer | Page number, starting at 1. |
pageSizequery | integer | Rows per page. Default 25, maximum 200. |
sortquery | string | Field to sort by. An unknown field falls back to the default. |
dirquery | string | asc or desc. |
companyIdquery | string | Only contacts at this customer. |
hasPortalAccessquery | boolean | Only contacts with (true) or without (false) a portal login. |
isActivequery | boolean | Only active or inactive contacts. |
isPrimaryquery | boolean | Only primary contacts. |
Sort by lastName, firstName, email, createdAt or company.name.
curl -X GET "https://veilux.io/api/v1/contacts" \
-H "Authorization: Bearer $VEILUX_API_KEY"
const res = await fetch("https://veilux.io/api/v1/contacts", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
},
});
const data = await res.json();
import os, uuid, requests
res = requests.get(
"https://veilux.io/api/v1/contacts",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
},
)
data = res.json()
{
"rows": [
{
"id": "cm3x9k2p40002pn5c8w2xr4b",
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"firstName": "Priya",
"lastName": "Natarajan",
"email": "[email protected]",
"phone": "+44 20 7946 0322",
"jobTitle": "Finance director",
"isPrimary": true,
"hasPortalAccess": true,
"isActive": true,
"lastLoginAt": "2026-10-09T14:02:00.000Z"
}
],
"total": 1,
"page": 1,
"pageSize": 25,
"pageCount": 1,
"applied": {
"search": null,
"sort": "lastName",
"direction": "asc",
"filters": {}
}
}
GET/contacts/{id}
Fetch one contact.
Scope customer:read
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The contact id. |
curl -X GET "https://veilux.io/api/v1/contacts/{id}" \
-H "Authorization: Bearer $VEILUX_API_KEY"
const res = await fetch("https://veilux.io/api/v1/contacts/{id}", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
},
});
const data = await res.json();
import os, uuid, requests
res = requests.get(
"https://veilux.io/api/v1/contacts/{id}",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
},
)
data = res.json()
{
"contact": {
"id": "cm3x9k2p40002pn5c8w2xr4b",
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"firstName": "Priya",
"lastName": "Natarajan",
"email": "[email protected]",
"phone": "+44 20 7946 0322",
"jobTitle": "Finance director",
"isPrimary": true,
"hasPortalAccess": true,
"isActive": true,
"lastLoginAt": "2026-10-09T14:02:00.000Z"
}
}
POST/contacts
Add a contact to a customer.
Scope customer:update
| Parameter | Type | Description |
|---|---|---|
companyIdbodyrequired | string | The customer this person belongs to. |
firstNamebodyrequired | string | First name. A contact needs a first or last name. |
lastNamebodyrequired | string | Last name. |
emailbodyrequired | string | Email address, stored lowercase. |
phonebody | string | Phone number. |
jobTitlebody | string | Job title. |
ticketAccessbody | string | NONE, OWN or COMPANY: which tickets they see in the portal. |
Fires the contact.created webhook.
curl -X POST "https://veilux.io/api/v1/contacts" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"companyId":"cm3x9k2p40001hf8d3q7zv1a","firstName":"Priya","lastName":"Natarajan","email":"[email protected]","jobTitle":"Finance director"}'
const res = await fetch("https://veilux.io/api/v1/contacts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"firstName": "Priya",
"lastName": "Natarajan",
"email": "[email protected]",
"jobTitle": "Finance director"
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.post(
"https://veilux.io/api/v1/contacts",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"firstName": "Priya",
"lastName": "Natarajan",
"email": "[email protected]",
"jobTitle": "Finance director"
},
)
data = res.json()
{
"contact": {
"id": "cm3x9k2p40002pn5c8w2xr4b",
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"firstName": "Priya",
"lastName": "Natarajan",
"email": "[email protected]",
"phone": "+44 20 7946 0322",
"jobTitle": "Finance director",
"isPrimary": true,
"hasPortalAccess": true,
"isActive": true,
"lastLoginAt": "2026-10-09T14:02:00.000Z"
}
}
PATCH/contacts/{id}
Change a contact's details or deactivate them.
Scope customer:update
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The contact id. |
firstNamebody | string | First name. |
lastNamebody | string | Last name. |
emailbody | string | Email address. |
phonebody | string | Phone number. |
jobTitlebody | string | Job title. |
isActivebody | boolean | Deactivate or reactivate the contact. |
ticketAccessbody | string | NONE, OWN or COMPANY. |
Send at least one field.
curl -X PATCH "https://veilux.io/api/v1/contacts/{id}" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"jobTitle":"Head of finance"}'
const res = await fetch("https://veilux.io/api/v1/contacts/{id}", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"jobTitle": "Head of finance"
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.patch(
"https://veilux.io/api/v1/contacts/{id}",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"jobTitle": "Head of finance"
},
)
data = res.json()
{
"contact": {
"id": "cm3x9k2p40002pn5c8w2xr4b",
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"firstName": "Priya",
"lastName": "Natarajan",
"email": "[email protected]",
"phone": "+44 20 7946 0322",
"jobTitle": "Head of finance",
"isPrimary": true,
"hasPortalAccess": true,
"isActive": true,
"lastLoginAt": "2026-10-09T14:02:00.000Z"
}
}
Invoices
Invoices with line items. Totals and balance are always calculated, never sent.
GET/invoices
List invoices with totals and balance.
Scope invoice:read
| Parameter | Type | Description |
|---|---|---|
qquery | string | Search text, up to 200 characters. |
pagequery | integer | Page number, starting at 1. |
pageSizequery | integer | Rows per page. Default 25, maximum 200. |
sortquery | string | Field to sort by. An unknown field falls back to the default. |
dirquery | string | asc or desc. |
companyIdquery | string | Only invoices for this customer. |
issuedOn_fromquery | string | Issued on or after this date (YYYY-MM-DD). |
issuedOn_toquery | string | Issued on or before this date (YYYY-MM-DD). |
dueOn_fromquery | string | Due on or after this date (YYYY-MM-DD). |
dueOn_toquery | string | Due on or before this date (YYYY-MM-DD). |
Sort by issuedOn, dueOn, number, company.name or createdAt. There is no status filter; read status from each row.
curl -X GET "https://veilux.io/api/v1/invoices" \
-H "Authorization: Bearer $VEILUX_API_KEY"
const res = await fetch("https://veilux.io/api/v1/invoices", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
},
});
const data = await res.json();
import os, uuid, requests
res = requests.get(
"https://veilux.io/api/v1/invoices",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
},
)
data = res.json()
{
"rows": [
{
"id": "cm3x9m7q10003inv00142abcd",
"number": "INV-00142",
"reference": "Website rebuild",
"status": "SENT",
"storedStatus": "SENT",
"issuedOn": "2026-10-06T00:00:00.000Z",
"dueOn": "2026-11-05T00:00:00.000Z",
"currency": "GBP",
"discountBasisPoints": null,
"discountMinor": null,
"adjustmentMinor": 0,
"discountAfterTax": false,
"clientNote": null,
"showShipping": false,
"quantityLabel": "QTY",
"projectId": "cm3x9m7q10005pro00012abcd",
"saleAgentId": "cm3x9k2p40009tm0kaf0rxyz",
"project": {
"id": "cm3x9m7q10005pro00012abcd",
"name": "Website rebuild"
},
"saleAgent": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"notes": null,
"terms": "Payment within 30 days.",
"sentAt": "2026-10-06T10:15:00.000Z",
"cancelledAt": null,
"viewedAt": null,
"fromEstimateId": "cm3x9m7q10004est00118abcd",
"overdueRemindersOff": false,
"subscriptionId": null,
"recurringInvoiceId": null,
"periodKey": null,
"allowOnlinePayment": true,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"createdAt": "2026-10-06T09:58:00.000Z",
"updatedAt": "2026-10-06T10:15:00.000Z",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"vatNumber": "GB 214 8890 31",
"billingSameAsAddress": true,
"addressLine1": "14 Clerkenwell Green",
"city": "London",
"postcode": "EC1R 0DP",
"country": "GB"
},
"fromEstimate": {
"id": "cm3x9m7q10004est00118abcd",
"number": "EST-00118"
},
"lineItems": [
{
"id": "cm3x9m7q10101line1abcdefgh",
"description": "Website design",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 0,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
},
{
"id": "cm3x9m7q10102line2abcdefgh",
"description": "Hosting setup",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 1,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
}
],
"payments": [],
"creditNotes": [],
"creditApplications": [],
"totals": {
"lines": [
{
"netMinor": 250000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 250000,
"taxMinor": 50000,
"secondTaxMinor": 0,
"totalMinor": 300000
},
{
"netMinor": 40000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 40000,
"taxMinor": 8000,
"secondTaxMinor": 0,
"totalMinor": 48000
}
],
"subtotalMinor": 290000,
"lineDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 290000,
"taxMinor": 58000,
"secondTaxMinor": 0,
"adjustmentMinor": 0,
"discountAfterTax": false,
"totalMinor": 348000
},
"ledger": {
"totalMinor": 348000,
"paidMinor": 0,
"creditedMinor": 0,
"outstandingMinor": 348000
}
}
],
"total": 1,
"page": 1,
"pageSize": 25,
"pageCount": 1,
"applied": {
"search": null,
"sort": "issuedOn",
"direction": "desc",
"filters": {}
}
}
GET/invoices/{id}
Fetch one invoice with lines, payments and ledger.
Scope invoice:read
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The invoice id. |
status is derived: SENT, PARTIALLY_PAID, PAID or OVERDUE. storedStatus is DRAFT, SENT or CANCELLED.
curl -X GET "https://veilux.io/api/v1/invoices/{id}" \
-H "Authorization: Bearer $VEILUX_API_KEY"
const res = await fetch("https://veilux.io/api/v1/invoices/{id}", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
},
});
const data = await res.json();
import os, uuid, requests
res = requests.get(
"https://veilux.io/api/v1/invoices/{id}",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
},
)
data = res.json()
{
"invoice": {
"id": "cm3x9m7q10003inv00142abcd",
"number": "INV-00142",
"reference": "Website rebuild",
"status": "SENT",
"storedStatus": "SENT",
"issuedOn": "2026-10-06T00:00:00.000Z",
"dueOn": "2026-11-05T00:00:00.000Z",
"currency": "GBP",
"discountBasisPoints": null,
"discountMinor": null,
"adjustmentMinor": 0,
"discountAfterTax": false,
"clientNote": null,
"showShipping": false,
"quantityLabel": "QTY",
"projectId": "cm3x9m7q10005pro00012abcd",
"saleAgentId": "cm3x9k2p40009tm0kaf0rxyz",
"project": {
"id": "cm3x9m7q10005pro00012abcd",
"name": "Website rebuild"
},
"saleAgent": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"notes": null,
"terms": "Payment within 30 days.",
"sentAt": "2026-10-06T10:15:00.000Z",
"cancelledAt": null,
"viewedAt": null,
"fromEstimateId": "cm3x9m7q10004est00118abcd",
"overdueRemindersOff": false,
"subscriptionId": null,
"recurringInvoiceId": null,
"periodKey": null,
"allowOnlinePayment": true,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"createdAt": "2026-10-06T09:58:00.000Z",
"updatedAt": "2026-10-06T10:15:00.000Z",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"vatNumber": "GB 214 8890 31",
"billingSameAsAddress": true,
"addressLine1": "14 Clerkenwell Green",
"city": "London",
"postcode": "EC1R 0DP",
"country": "GB"
},
"fromEstimate": {
"id": "cm3x9m7q10004est00118abcd",
"number": "EST-00118"
},
"lineItems": [
{
"id": "cm3x9m7q10101line1abcdefgh",
"description": "Website design",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 0,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
},
{
"id": "cm3x9m7q10102line2abcdefgh",
"description": "Hosting setup",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 1,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
}
],
"payments": [],
"creditNotes": [],
"creditApplications": [],
"totals": {
"lines": [
{
"netMinor": 250000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 250000,
"taxMinor": 50000,
"secondTaxMinor": 0,
"totalMinor": 300000
},
{
"netMinor": 40000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 40000,
"taxMinor": 8000,
"secondTaxMinor": 0,
"totalMinor": 48000
}
],
"subtotalMinor": 290000,
"lineDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 290000,
"taxMinor": 58000,
"secondTaxMinor": 0,
"adjustmentMinor": 0,
"discountAfterTax": false,
"totalMinor": 348000
},
"ledger": {
"totalMinor": 348000,
"paidMinor": 0,
"creditedMinor": 0,
"outstandingMinor": 348000
}
}
}
POST/invoices
Create a draft invoice and get its number.
Scope invoice:write
| Parameter | Type | Description |
|---|---|---|
companyIdbodyrequired | string | The customer being billed. |
linesbody | array | Line items: description, quantityMilli, unitPriceMinor, taxRateId and optional discounts. |
issuedOnbody | string | Issue date, YYYY-MM-DD. Defaults to today. |
referencebody | string | Your reference, up to 100 characters. |
notesbody | string | Internal notes. |
termsbody | string | Terms shown on the document. |
clientNotebody | string | Note shown to the client. |
projectIdbody | string | Link the document to a project. |
saleAgentIdbody | string | Staff member credited with the sale. |
discountbody | object | Whole-document discount: {kind: "basisPoints" | "minor", value}. |
adjustmentMinorbody | integer | Signed adjustment after tax, in minor units. |
dueOnbody | string | Due date. Defaults to issue date plus the customer's payment terms. |
Quantities are thousandths (1500 is 1.5), prices minor units (25000 is 250.00), tax rates basis points. amount, total and status are refused.
curl -X POST "https://veilux.io/api/v1/invoices" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"companyId":"cm3x9k2p40001hf8d3q7zv1a","issuedOn":"2026-10-06","reference":"Website rebuild","lines":[{"description":"Website design","quantityMilli":1000,"unitPriceMinor":250000,"taxRateId":"cm3x9k2p40011vat20pctabcde"},{"description":"Hosting setup","quantityMilli":1000,"unitPriceMinor":40000,"taxRateId":"cm3x9k2p40011vat20pctabcde"}]}'
const res = await fetch("https://veilux.io/api/v1/invoices", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"issuedOn": "2026-10-06",
"reference": "Website rebuild",
"lines": [
{
"description": "Website design",
"quantityMilli": 1000,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde"
},
{
"description": "Hosting setup",
"quantityMilli": 1000,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde"
}
]
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.post(
"https://veilux.io/api/v1/invoices",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"issuedOn": "2026-10-06",
"reference": "Website rebuild",
"lines": [
{
"description": "Website design",
"quantityMilli": 1000,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde"
},
{
"description": "Hosting setup",
"quantityMilli": 1000,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde"
}
]
},
)
data = res.json()
{
"invoice": {
"id": "cm3x9m7q10003inv00142abcd",
"number": "INV-00142",
"reference": "Website rebuild",
"status": "DRAFT",
"storedStatus": "DRAFT",
"issuedOn": "2026-10-06T00:00:00.000Z",
"dueOn": "2026-11-05T00:00:00.000Z",
"currency": "GBP",
"discountBasisPoints": null,
"discountMinor": null,
"adjustmentMinor": 0,
"discountAfterTax": false,
"clientNote": null,
"showShipping": false,
"quantityLabel": "QTY",
"projectId": "cm3x9m7q10005pro00012abcd",
"saleAgentId": "cm3x9k2p40009tm0kaf0rxyz",
"project": {
"id": "cm3x9m7q10005pro00012abcd",
"name": "Website rebuild"
},
"saleAgent": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"notes": null,
"terms": "Payment within 30 days.",
"sentAt": null,
"cancelledAt": null,
"viewedAt": null,
"fromEstimateId": "cm3x9m7q10004est00118abcd",
"overdueRemindersOff": false,
"subscriptionId": null,
"recurringInvoiceId": null,
"periodKey": null,
"allowOnlinePayment": true,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"createdAt": "2026-10-06T09:58:00.000Z",
"updatedAt": "2026-10-06T10:15:00.000Z",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"vatNumber": "GB 214 8890 31",
"billingSameAsAddress": true,
"addressLine1": "14 Clerkenwell Green",
"city": "London",
"postcode": "EC1R 0DP",
"country": "GB"
},
"fromEstimate": {
"id": "cm3x9m7q10004est00118abcd",
"number": "EST-00118"
},
"lineItems": [
{
"id": "cm3x9m7q10101line1abcdefgh",
"description": "Website design",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 0,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
},
{
"id": "cm3x9m7q10102line2abcdefgh",
"description": "Hosting setup",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 1,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
}
],
"payments": [],
"creditNotes": [],
"creditApplications": [],
"totals": {
"lines": [
{
"netMinor": 250000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 250000,
"taxMinor": 50000,
"secondTaxMinor": 0,
"totalMinor": 300000
},
{
"netMinor": 40000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 40000,
"taxMinor": 8000,
"secondTaxMinor": 0,
"totalMinor": 48000
}
],
"subtotalMinor": 290000,
"lineDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 290000,
"taxMinor": 58000,
"secondTaxMinor": 0,
"adjustmentMinor": 0,
"discountAfterTax": false,
"totalMinor": 348000
},
"ledger": {
"totalMinor": 348000,
"paidMinor": 0,
"creditedMinor": 0,
"outstandingMinor": 348000
}
}
}
PATCH/invoices/{id}
Edit a draft invoice.
Scope invoice:write
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The invoice id. |
companyIdbody | string | The customer being billed. |
linesbody | array | Line items: description, quantityMilli, unitPriceMinor, taxRateId and optional discounts. |
issuedOnbody | string | Issue date, YYYY-MM-DD. Defaults to today. |
referencebody | string | Your reference, up to 100 characters. |
notesbody | string | Internal notes. |
termsbody | string | Terms shown on the document. |
clientNotebody | string | Note shown to the client. |
projectIdbody | string | Link the document to a project. |
saleAgentIdbody | string | Staff member credited with the sale. |
discountbody | object | Whole-document discount: {kind: "basisPoints" | "minor", value}. |
adjustmentMinorbody | integer | Signed adjustment after tax, in minor units. |
dueOnbody | string | Due date, YYYY-MM-DD. |
Drafts only. A sent invoice returns 409: credit it and raise a new one. Sending lines replaces them all.
curl -X PATCH "https://veilux.io/api/v1/invoices/{id}" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"lines":[{"description":"Website design","quantityMilli":1000,"unitPriceMinor":250000,"taxRateId":"cm3x9k2p40011vat20pctabcde"},{"description":"Hosting setup","quantityMilli":1000,"unitPriceMinor":40000,"taxRateId":"cm3x9k2p40011vat20pctabcde"},{"description":"Domain registration","quantityMilli":1000,"unitPriceMinor":1500,"taxRateId":"cm3x9k2p40011vat20pctabcde"}]}'
const res = await fetch("https://veilux.io/api/v1/invoices/{id}", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"lines": [
{
"description": "Website design",
"quantityMilli": 1000,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde"
},
{
"description": "Hosting setup",
"quantityMilli": 1000,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde"
},
{
"description": "Domain registration",
"quantityMilli": 1000,
"unitPriceMinor": 1500,
"taxRateId": "cm3x9k2p40011vat20pctabcde"
}
]
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.patch(
"https://veilux.io/api/v1/invoices/{id}",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"lines": [
{
"description": "Website design",
"quantityMilli": 1000,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde"
},
{
"description": "Hosting setup",
"quantityMilli": 1000,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde"
},
{
"description": "Domain registration",
"quantityMilli": 1000,
"unitPriceMinor": 1500,
"taxRateId": "cm3x9k2p40011vat20pctabcde"
}
]
},
)
data = res.json()
{
"invoice": {
"id": "cm3x9m7q10003inv00142abcd",
"number": "INV-00142",
"reference": "Website rebuild",
"status": "DRAFT",
"storedStatus": "DRAFT",
"issuedOn": "2026-10-06T00:00:00.000Z",
"dueOn": "2026-11-05T00:00:00.000Z",
"currency": "GBP",
"discountBasisPoints": null,
"discountMinor": null,
"adjustmentMinor": 0,
"discountAfterTax": false,
"clientNote": null,
"showShipping": false,
"quantityLabel": "QTY",
"projectId": "cm3x9m7q10005pro00012abcd",
"saleAgentId": "cm3x9k2p40009tm0kaf0rxyz",
"project": {
"id": "cm3x9m7q10005pro00012abcd",
"name": "Website rebuild"
},
"saleAgent": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"notes": null,
"terms": "Payment within 30 days.",
"sentAt": null,
"cancelledAt": null,
"viewedAt": null,
"fromEstimateId": "cm3x9m7q10004est00118abcd",
"overdueRemindersOff": false,
"subscriptionId": null,
"recurringInvoiceId": null,
"periodKey": null,
"allowOnlinePayment": true,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"createdAt": "2026-10-06T09:58:00.000Z",
"updatedAt": "2026-10-06T10:15:00.000Z",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"vatNumber": "GB 214 8890 31",
"billingSameAsAddress": true,
"addressLine1": "14 Clerkenwell Green",
"city": "London",
"postcode": "EC1R 0DP",
"country": "GB"
},
"fromEstimate": {
"id": "cm3x9m7q10004est00118abcd",
"number": "EST-00118"
},
"lineItems": [
{
"id": "cm3x9m7q10101line1abcdefgh",
"description": "Website design",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 0,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
},
{
"id": "cm3x9m7q10102line2abcdefgh",
"description": "Hosting setup",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 1,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
}
],
"payments": [],
"creditNotes": [],
"creditApplications": [],
"totals": {
"lines": [
{
"netMinor": 250000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 250000,
"taxMinor": 50000,
"secondTaxMinor": 0,
"totalMinor": 300000
},
{
"netMinor": 40000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 40000,
"taxMinor": 8000,
"secondTaxMinor": 0,
"totalMinor": 48000
}
],
"subtotalMinor": 290000,
"lineDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 290000,
"taxMinor": 58000,
"secondTaxMinor": 0,
"adjustmentMinor": 0,
"discountAfterTax": false,
"totalMinor": 348000
},
"ledger": {
"totalMinor": 348000,
"paidMinor": 0,
"creditedMinor": 0,
"outstandingMinor": 348000
}
}
}
POST/invoices/{id}/send
Send an invoice to the customer with a PDF attached.
Scope invoice:write
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The invoice id. |
Needs no body. Marks the invoice sent even if the email fails: check email.sent. Fires invoice.sent.
curl -X POST "https://veilux.io/api/v1/invoices/{id}/send" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"
const res = await fetch("https://veilux.io/api/v1/invoices/{id}/send", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Idempotency-Key": crypto.randomUUID(),
},
});
const data = await res.json();
import os, uuid, requests
res = requests.post(
"https://veilux.io/api/v1/invoices/{id}/send",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
)
data = res.json()
{
"invoice": {
"id": "cm3x9m7q10003inv00142abcd",
"number": "INV-00142",
"reference": "Website rebuild",
"status": "SENT",
"storedStatus": "SENT",
"issuedOn": "2026-10-06T00:00:00.000Z",
"dueOn": "2026-11-05T00:00:00.000Z",
"currency": "GBP",
"discountBasisPoints": null,
"discountMinor": null,
"adjustmentMinor": 0,
"discountAfterTax": false,
"clientNote": null,
"showShipping": false,
"quantityLabel": "QTY",
"projectId": "cm3x9m7q10005pro00012abcd",
"saleAgentId": "cm3x9k2p40009tm0kaf0rxyz",
"project": {
"id": "cm3x9m7q10005pro00012abcd",
"name": "Website rebuild"
},
"saleAgent": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"notes": null,
"terms": "Payment within 30 days.",
"sentAt": "2026-10-06T10:15:00.000Z",
"cancelledAt": null,
"viewedAt": null,
"fromEstimateId": "cm3x9m7q10004est00118abcd",
"overdueRemindersOff": false,
"subscriptionId": null,
"recurringInvoiceId": null,
"periodKey": null,
"allowOnlinePayment": true,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"createdAt": "2026-10-06T09:58:00.000Z",
"updatedAt": "2026-10-06T10:15:00.000Z",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"vatNumber": "GB 214 8890 31",
"billingSameAsAddress": true,
"addressLine1": "14 Clerkenwell Green",
"city": "London",
"postcode": "EC1R 0DP",
"country": "GB"
},
"fromEstimate": {
"id": "cm3x9m7q10004est00118abcd",
"number": "EST-00118"
},
"lineItems": [
{
"id": "cm3x9m7q10101line1abcdefgh",
"description": "Website design",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 0,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
},
{
"id": "cm3x9m7q10102line2abcdefgh",
"description": "Hosting setup",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 1,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
}
],
"payments": [],
"creditNotes": [],
"creditApplications": [],
"totals": {
"lines": [
{
"netMinor": 250000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 250000,
"taxMinor": 50000,
"secondTaxMinor": 0,
"totalMinor": 300000
},
{
"netMinor": 40000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 40000,
"taxMinor": 8000,
"secondTaxMinor": 0,
"totalMinor": 48000
}
],
"subtotalMinor": 290000,
"lineDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 290000,
"taxMinor": 58000,
"secondTaxMinor": 0,
"adjustmentMinor": 0,
"discountAfterTax": false,
"totalMinor": 348000
},
"ledger": {
"totalMinor": 348000,
"paidMinor": 0,
"creditedMinor": 0,
"outstandingMinor": 348000
}
},
"email": {
"sent": true,
"to": "[email protected]"
}
}
POST/invoices/{id}/payments
Record a payment against a sent invoice.
Scope payment:record
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The invoice id. |
amountMinorbodyrequired | integer | Amount in minor units: 1000.00 is 100000. |
modebodyrequired | string | How the money arrived, for example Bank transfer. |
currencybody | string | Must match the invoice currency if given. |
paidOnbody | string | Date received, YYYY-MM-DD. Defaults to today. |
transactionIdbody | string | Your bank or processor reference. Duplicates on one invoice are refused. |
notebody | string | Note, up to 1000 characters. |
Draft or cancelled invoices return 409. An overpayment is recorded in full. Fires payment.recorded, and invoice.paid when cleared.
curl -X POST "https://veilux.io/api/v1/invoices/{id}/payments" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"amountMinor":100000,"mode":"Bank transfer","paidOn":"2026-10-12","transactionId":"BACS-20261012-7731"}'
const res = await fetch("https://veilux.io/api/v1/invoices/{id}/payments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"amountMinor": 100000,
"mode": "Bank transfer",
"paidOn": "2026-10-12",
"transactionId": "BACS-20261012-7731"
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.post(
"https://veilux.io/api/v1/invoices/{id}/payments",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"amountMinor": 100000,
"mode": "Bank transfer",
"paidOn": "2026-10-12",
"transactionId": "BACS-20261012-7731"
},
)
data = res.json()
{
"payment": {
"id": "cm3x9m7q10008pay00031abcd",
"number": "PAY-00031",
"amountMinor": 100000,
"currency": "GBP",
"paidOn": "2026-10-12T00:00:00.000Z",
"mode": "Bank transfer",
"transactionId": "BACS-20261012-7731",
"note": null,
"reversalOfId": null,
"reversedAt": null
},
"invoice": {
"id": "cm3x9m7q10003inv00142abcd",
"number": "INV-00142",
"reference": "Website rebuild",
"status": "PARTIALLY_PAID",
"storedStatus": "SENT",
"issuedOn": "2026-10-06T00:00:00.000Z",
"dueOn": "2026-11-05T00:00:00.000Z",
"currency": "GBP",
"discountBasisPoints": null,
"discountMinor": null,
"adjustmentMinor": 0,
"discountAfterTax": false,
"clientNote": null,
"showShipping": false,
"quantityLabel": "QTY",
"projectId": "cm3x9m7q10005pro00012abcd",
"saleAgentId": "cm3x9k2p40009tm0kaf0rxyz",
"project": {
"id": "cm3x9m7q10005pro00012abcd",
"name": "Website rebuild"
},
"saleAgent": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"notes": null,
"terms": "Payment within 30 days.",
"sentAt": "2026-10-06T10:15:00.000Z",
"cancelledAt": null,
"viewedAt": null,
"fromEstimateId": "cm3x9m7q10004est00118abcd",
"overdueRemindersOff": false,
"subscriptionId": null,
"recurringInvoiceId": null,
"periodKey": null,
"allowOnlinePayment": true,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"createdAt": "2026-10-06T09:58:00.000Z",
"updatedAt": "2026-10-06T10:15:00.000Z",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"vatNumber": "GB 214 8890 31",
"billingSameAsAddress": true,
"addressLine1": "14 Clerkenwell Green",
"city": "London",
"postcode": "EC1R 0DP",
"country": "GB"
},
"fromEstimate": {
"id": "cm3x9m7q10004est00118abcd",
"number": "EST-00118"
},
"lineItems": [
{
"id": "cm3x9m7q10101line1abcdefgh",
"description": "Website design",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 0,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
},
{
"id": "cm3x9m7q10102line2abcdefgh",
"description": "Hosting setup",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 1,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
}
],
"payments": [
{
"id": "cm3x9m7q10008pay00031abcd",
"number": "PAY-00031",
"amountMinor": 100000,
"currency": "GBP",
"paidOn": "2026-10-12T00:00:00.000Z",
"mode": "Bank transfer",
"transactionId": "BACS-20261012-7731",
"note": null,
"reversalOfId": null,
"reversedAt": null
}
],
"creditNotes": [],
"creditApplications": [],
"totals": {
"lines": [
{
"netMinor": 250000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 250000,
"taxMinor": 50000,
"secondTaxMinor": 0,
"totalMinor": 300000
},
{
"netMinor": 40000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 40000,
"taxMinor": 8000,
"secondTaxMinor": 0,
"totalMinor": 48000
}
],
"subtotalMinor": 290000,
"lineDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 290000,
"taxMinor": 58000,
"secondTaxMinor": 0,
"adjustmentMinor": 0,
"discountAfterTax": false,
"totalMinor": 348000
},
"ledger": {
"totalMinor": 348000,
"paidMinor": 100000,
"creditedMinor": 0,
"outstandingMinor": 248000
}
}
}
Estimates
Quotes sent to customers for acceptance. Needs the quotes module.
GET/estimates
List estimates with totals.
Scope estimate:read
| Parameter | Type | Description |
|---|---|---|
qquery | string | Search text, up to 200 characters. |
pagequery | integer | Page number, starting at 1. |
pageSizequery | integer | Rows per page. Default 25, maximum 200. |
sortquery | string | Field to sort by. An unknown field falls back to the default. |
dirquery | string | asc or desc. |
statusquery | string | DRAFT, SENT, ACCEPTED, DECLINED or EXPIRED. |
companyIdquery | string | Only estimates for this customer. |
saleAgentIdquery | string | Only estimates credited to this staff member. |
issuedOn_fromquery | string | Issued on or after this date (YYYY-MM-DD). |
issuedOn_toquery | string | Issued on or before this date (YYYY-MM-DD). |
expiresOn_fromquery | string | Expiring on or after this date (YYYY-MM-DD). |
expiresOn_toquery | string | Expiring on or before this date (YYYY-MM-DD). |
Sort by issuedOn, expiresOn, number, company.name or createdAt.
curl -X GET "https://veilux.io/api/v1/estimates" \
-H "Authorization: Bearer $VEILUX_API_KEY"
const res = await fetch("https://veilux.io/api/v1/estimates", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
},
});
const data = await res.json();
import os, uuid, requests
res = requests.get(
"https://veilux.io/api/v1/estimates",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
},
)
data = res.json()
{
"rows": [
{
"id": "cm3x9m7q10004est00118abcd",
"number": "EST-00118",
"reference": "Website rebuild",
"status": "SENT",
"issuedOn": "2026-09-22T00:00:00.000Z",
"expiresOn": "2026-10-29T00:00:00.000Z",
"currency": "GBP",
"discountBasisPoints": null,
"discountMinor": null,
"adjustmentMinor": 0,
"discountAfterTax": false,
"projectId": null,
"saleAgentId": "cm3x9k2p40009tm0kaf0rxyz",
"notes": null,
"terms": null,
"clientNote": null,
"sentAt": "2026-09-22T11:00:00.000Z",
"acceptedAt": null,
"declinedAt": null,
"declineReason": null,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"vatNumber": "GB 214 8890 31",
"billingSameAsAddress": true,
"addressLine1": "14 Clerkenwell Green",
"city": "London",
"postcode": "EC1R 0DP",
"country": "GB"
},
"lineItems": [
{
"id": "cm3x9m7q10101line1abcdefgh",
"description": "Website design",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 0,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
},
{
"id": "cm3x9m7q10102line2abcdefgh",
"description": "Hosting setup",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 1,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
}
],
"totals": {
"lines": [
{
"netMinor": 250000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 250000,
"taxMinor": 50000,
"secondTaxMinor": 0,
"totalMinor": 300000
},
{
"netMinor": 40000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 40000,
"taxMinor": 8000,
"secondTaxMinor": 0,
"totalMinor": 48000
}
],
"subtotalMinor": 290000,
"lineDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 290000,
"taxMinor": 58000,
"secondTaxMinor": 0,
"adjustmentMinor": 0,
"discountAfterTax": false,
"totalMinor": 348000
},
"createdAt": "2026-09-22T10:40:00.000Z",
"updatedAt": "2026-09-22T11:00:00.000Z"
}
],
"total": 1,
"page": 1,
"pageSize": 25,
"pageCount": 1,
"applied": {
"search": null,
"sort": "issuedOn",
"direction": "desc",
"filters": {
"status": "SENT"
}
}
}
GET/estimates/{id}
Fetch one estimate.
Scope estimate:read
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The estimate id. |
curl -X GET "https://veilux.io/api/v1/estimates/{id}" \
-H "Authorization: Bearer $VEILUX_API_KEY"
const res = await fetch("https://veilux.io/api/v1/estimates/{id}", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
},
});
const data = await res.json();
import os, uuid, requests
res = requests.get(
"https://veilux.io/api/v1/estimates/{id}",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
},
)
data = res.json()
{
"estimate": {
"id": "cm3x9m7q10004est00118abcd",
"number": "EST-00118",
"reference": "Website rebuild",
"status": "SENT",
"issuedOn": "2026-09-22T00:00:00.000Z",
"expiresOn": "2026-10-29T00:00:00.000Z",
"currency": "GBP",
"discountBasisPoints": null,
"discountMinor": null,
"adjustmentMinor": 0,
"discountAfterTax": false,
"projectId": null,
"saleAgentId": "cm3x9k2p40009tm0kaf0rxyz",
"notes": null,
"terms": null,
"clientNote": null,
"sentAt": "2026-09-22T11:00:00.000Z",
"acceptedAt": null,
"declinedAt": null,
"declineReason": null,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"vatNumber": "GB 214 8890 31",
"billingSameAsAddress": true,
"addressLine1": "14 Clerkenwell Green",
"city": "London",
"postcode": "EC1R 0DP",
"country": "GB"
},
"lineItems": [
{
"id": "cm3x9m7q10101line1abcdefgh",
"description": "Website design",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 0,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
},
{
"id": "cm3x9m7q10102line2abcdefgh",
"description": "Hosting setup",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 1,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
}
],
"totals": {
"lines": [
{
"netMinor": 250000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 250000,
"taxMinor": 50000,
"secondTaxMinor": 0,
"totalMinor": 300000
},
{
"netMinor": 40000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 40000,
"taxMinor": 8000,
"secondTaxMinor": 0,
"totalMinor": 48000
}
],
"subtotalMinor": 290000,
"lineDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 290000,
"taxMinor": 58000,
"secondTaxMinor": 0,
"adjustmentMinor": 0,
"discountAfterTax": false,
"totalMinor": 348000
},
"createdAt": "2026-09-22T10:40:00.000Z",
"updatedAt": "2026-09-22T11:00:00.000Z"
}
}
POST/estimates
Create a draft estimate.
Scope estimate:write
| Parameter | Type | Description |
|---|---|---|
companyIdbodyrequired | string | The customer being billed. |
linesbody | array | Line items: description, quantityMilli, unitPriceMinor, taxRateId and optional discounts. |
issuedOnbody | string | Issue date, YYYY-MM-DD. Defaults to today. |
referencebody | string | Your reference, up to 100 characters. |
notesbody | string | Internal notes. |
termsbody | string | Terms shown on the document. |
clientNotebody | string | Note shown to the client. |
projectIdbody | string | Link the document to a project. |
saleAgentIdbody | string | Staff member credited with the sale. |
discountbody | object | Whole-document discount: {kind: "basisPoints" | "minor", value}. |
adjustmentMinorbody | integer | Signed adjustment after tax, in minor units. |
expiresOnbody | string | Expiry date. Omit for the firm default, null for never. |
Quantities are thousandths (1500 is 1.5), prices minor units (25000 is 250.00), tax rates basis points. amount, total and status are refused.
curl -X POST "https://veilux.io/api/v1/estimates" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"companyId":"cm3x9k2p40001hf8d3q7zv1a","reference":"Website rebuild","expiresOn":"2026-10-29","lines":[{"description":"Website design","quantityMilli":1000,"unitPriceMinor":250000,"taxRateId":"cm3x9k2p40011vat20pctabcde"},{"description":"Hosting setup","quantityMilli":1000,"unitPriceMinor":40000,"taxRateId":"cm3x9k2p40011vat20pctabcde"}]}'
const res = await fetch("https://veilux.io/api/v1/estimates", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"reference": "Website rebuild",
"expiresOn": "2026-10-29",
"lines": [
{
"description": "Website design",
"quantityMilli": 1000,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde"
},
{
"description": "Hosting setup",
"quantityMilli": 1000,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde"
}
]
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.post(
"https://veilux.io/api/v1/estimates",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"reference": "Website rebuild",
"expiresOn": "2026-10-29",
"lines": [
{
"description": "Website design",
"quantityMilli": 1000,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde"
},
{
"description": "Hosting setup",
"quantityMilli": 1000,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde"
}
]
},
)
data = res.json()
{
"estimate": {
"id": "cm3x9m7q10004est00118abcd",
"number": "EST-00118",
"reference": "Website rebuild",
"status": "DRAFT",
"issuedOn": "2026-09-22T00:00:00.000Z",
"expiresOn": "2026-10-29T00:00:00.000Z",
"currency": "GBP",
"discountBasisPoints": null,
"discountMinor": null,
"adjustmentMinor": 0,
"discountAfterTax": false,
"projectId": null,
"saleAgentId": "cm3x9k2p40009tm0kaf0rxyz",
"notes": null,
"terms": null,
"clientNote": null,
"sentAt": null,
"acceptedAt": null,
"declinedAt": null,
"declineReason": null,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"vatNumber": "GB 214 8890 31",
"billingSameAsAddress": true,
"addressLine1": "14 Clerkenwell Green",
"city": "London",
"postcode": "EC1R 0DP",
"country": "GB"
},
"lineItems": [
{
"id": "cm3x9m7q10101line1abcdefgh",
"description": "Website design",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 0,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
},
{
"id": "cm3x9m7q10102line2abcdefgh",
"description": "Hosting setup",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 1,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
}
],
"totals": {
"lines": [
{
"netMinor": 250000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 250000,
"taxMinor": 50000,
"secondTaxMinor": 0,
"totalMinor": 300000
},
{
"netMinor": 40000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 40000,
"taxMinor": 8000,
"secondTaxMinor": 0,
"totalMinor": 48000
}
],
"subtotalMinor": 290000,
"lineDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 290000,
"taxMinor": 58000,
"secondTaxMinor": 0,
"adjustmentMinor": 0,
"discountAfterTax": false,
"totalMinor": 348000
},
"createdAt": "2026-09-22T10:40:00.000Z",
"updatedAt": "2026-09-22T11:00:00.000Z"
}
}
PATCH/estimates/{id}
Edit an estimate.
Scope estimate:write
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The estimate id. |
companyIdbody | string | The customer being billed. |
linesbody | array | Line items: description, quantityMilli, unitPriceMinor, taxRateId and optional discounts. |
issuedOnbody | string | Issue date, YYYY-MM-DD. Defaults to today. |
referencebody | string | Your reference, up to 100 characters. |
notesbody | string | Internal notes. |
termsbody | string | Terms shown on the document. |
clientNotebody | string | Note shown to the client. |
projectIdbody | string | Link the document to a project. |
saleAgentIdbody | string | Staff member credited with the sale. |
discountbody | object | Whole-document discount: {kind: "basisPoints" | "minor", value}. |
adjustmentMinorbody | integer | Signed adjustment after tax, in minor units. |
expiresOnbody | string | Expiry date, or null for never. |
Send at least one field.
curl -X PATCH "https://veilux.io/api/v1/estimates/{id}" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"expiresOn":"2026-11-12"}'
const res = await fetch("https://veilux.io/api/v1/estimates/{id}", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"expiresOn": "2026-11-12"
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.patch(
"https://veilux.io/api/v1/estimates/{id}",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"expiresOn": "2026-11-12"
},
)
data = res.json()
{
"estimate": {
"id": "cm3x9m7q10004est00118abcd",
"number": "EST-00118",
"reference": "Website rebuild",
"status": "SENT",
"issuedOn": "2026-09-22T00:00:00.000Z",
"expiresOn": "2026-11-12T00:00:00.000Z",
"currency": "GBP",
"discountBasisPoints": null,
"discountMinor": null,
"adjustmentMinor": 0,
"discountAfterTax": false,
"projectId": null,
"saleAgentId": "cm3x9k2p40009tm0kaf0rxyz",
"notes": null,
"terms": null,
"clientNote": null,
"sentAt": "2026-09-22T11:00:00.000Z",
"acceptedAt": null,
"declinedAt": null,
"declineReason": null,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"vatNumber": "GB 214 8890 31",
"billingSameAsAddress": true,
"addressLine1": "14 Clerkenwell Green",
"city": "London",
"postcode": "EC1R 0DP",
"country": "GB"
},
"lineItems": [
{
"id": "cm3x9m7q10101line1abcdefgh",
"description": "Website design",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 0,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
},
{
"id": "cm3x9m7q10102line2abcdefgh",
"description": "Hosting setup",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 1,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
}
],
"totals": {
"lines": [
{
"netMinor": 250000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 250000,
"taxMinor": 50000,
"secondTaxMinor": 0,
"totalMinor": 300000
},
{
"netMinor": 40000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 40000,
"taxMinor": 8000,
"secondTaxMinor": 0,
"totalMinor": 48000
}
],
"subtotalMinor": 290000,
"lineDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 290000,
"taxMinor": 58000,
"secondTaxMinor": 0,
"adjustmentMinor": 0,
"discountAfterTax": false,
"totalMinor": 348000
},
"createdAt": "2026-09-22T10:40:00.000Z",
"updatedAt": "2026-09-22T11:00:00.000Z"
}
}
POST/estimates/{id}/send
Send an estimate to the customer with a PDF attached.
Scope estimate:write
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The estimate id. |
Needs no body.
curl -X POST "https://veilux.io/api/v1/estimates/{id}/send" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"
const res = await fetch("https://veilux.io/api/v1/estimates/{id}/send", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Idempotency-Key": crypto.randomUUID(),
},
});
const data = await res.json();
import os, uuid, requests
res = requests.post(
"https://veilux.io/api/v1/estimates/{id}/send",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
)
data = res.json()
{
"estimate": {
"id": "cm3x9m7q10004est00118abcd",
"number": "EST-00118",
"reference": "Website rebuild",
"status": "SENT",
"issuedOn": "2026-09-22T00:00:00.000Z",
"expiresOn": "2026-10-29T00:00:00.000Z",
"currency": "GBP",
"discountBasisPoints": null,
"discountMinor": null,
"adjustmentMinor": 0,
"discountAfterTax": false,
"projectId": null,
"saleAgentId": "cm3x9k2p40009tm0kaf0rxyz",
"notes": null,
"terms": null,
"clientNote": null,
"sentAt": "2026-09-22T11:00:00.000Z",
"acceptedAt": null,
"declinedAt": null,
"declineReason": null,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"vatNumber": "GB 214 8890 31",
"billingSameAsAddress": true,
"addressLine1": "14 Clerkenwell Green",
"city": "London",
"postcode": "EC1R 0DP",
"country": "GB"
},
"lineItems": [
{
"id": "cm3x9m7q10101line1abcdefgh",
"description": "Website design",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 250000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 0,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
},
{
"id": "cm3x9m7q10102line2abcdefgh",
"description": "Hosting setup",
"longDescription": null,
"quantityMilli": 1000,
"unit": null,
"unitPriceMinor": 40000,
"taxRateId": "cm3x9k2p40011vat20pctabcde",
"taxBasisPoints": 2000,
"secondTaxRateId": null,
"secondTaxBasisPoints": null,
"secondTaxMode": null,
"order": 1,
"discountPercentBp": null,
"discountTotal": null,
"sourceExpenseId": null
}
],
"totals": {
"lines": [
{
"netMinor": 250000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 250000,
"taxMinor": 50000,
"secondTaxMinor": 0,
"totalMinor": 300000
},
{
"netMinor": 40000,
"ownDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 40000,
"taxMinor": 8000,
"secondTaxMinor": 0,
"totalMinor": 48000
}
],
"subtotalMinor": 290000,
"lineDiscountMinor": 0,
"discountMinor": 0,
"taxableMinor": 290000,
"taxMinor": 58000,
"secondTaxMinor": 0,
"adjustmentMinor": 0,
"discountAfterTax": false,
"totalMinor": 348000
},
"createdAt": "2026-09-22T10:40:00.000Z",
"updatedAt": "2026-09-22T11:00:00.000Z"
},
"email": {
"sent": true,
"to": "[email protected]"
}
}
Projects
Client work with a budget, billing method and team. Needs the projects module.
GET/projects
List projects you may see.
Scope project:read_all
| Parameter | Type | Description |
|---|---|---|
qquery | string | Search text, up to 200 characters. |
pagequery | integer | Page number, starting at 1. |
pageSizequery | integer | Rows per page. Default 25, maximum 200. |
sortquery | string | Field to sort by. An unknown field falls back to the default. |
dirquery | string | asc or desc. |
statusquery | string | NOT_STARTED, IN_PROGRESS, ON_HOLD, CANCELLED or COMPLETED. |
companyIdquery | string | Only projects for this customer. |
isActivequery | boolean | Only active or archived projects. |
deadlineOn_fromquery | string | Deadline on or after this date (YYYY-MM-DD). |
deadlineOn_toquery | string | Deadline on or before this date (YYYY-MM-DD). |
Needs project:read_all or project:read_own. Money fields are left out for keys that may not see them.
curl -X GET "https://veilux.io/api/v1/projects" \
-H "Authorization: Bearer $VEILUX_API_KEY"
const res = await fetch("https://veilux.io/api/v1/projects", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
},
});
const data = await res.json();
import os, uuid, requests
res = requests.get(
"https://veilux.io/api/v1/projects",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
},
)
data = res.json()
{
"rows": [
{
"id": "cm3x9m7q10005pro00012abcd",
"name": "Website rebuild",
"description": "New marketing site for Harrow & Finch.",
"status": "IN_PROGRESS",
"startOn": "2026-08-17T00:00:00.000Z",
"deadlineOn": "2026-12-11T00:00:00.000Z",
"completedAt": null,
"billingMethod": "FIXED_FEE",
"budgetMinor": 1200000,
"defaultHourlyRateMinor": 9500,
"currency": "GBP",
"progressPercent": 40,
"progressFromMilestones": false,
"clientVisible": true,
"showTimeToClient": false,
"clientCanViewTasks": true,
"clientCanCreateTasks": false,
"clientCanCommentTasks": true,
"clientCanViewFinance": false,
"clientCanViewActivity": true,
"clientCanViewMilestones": true,
"clientCanUploadFiles": true,
"isActive": true,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"createdAt": "2026-08-14T09:00:00.000Z",
"updatedAt": "2026-10-02T16:20:00.000Z",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd"
},
"members": [
{
"id": "cm3x9m7q10201mem1abcdefgh",
"userId": "cm3x9k2p40009tm0kaf0rxyz",
"canSeeFinancials": true,
"addedAt": "2026-08-14T09:00:00.000Z",
"user": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor",
"email": "[email protected]",
"role": "ADMIN",
"isActive": true
}
}
],
"moneyVisible": true
}
],
"total": 1,
"page": 1,
"pageSize": 25,
"pageCount": 1,
"applied": {
"search": null,
"sort": "deadlineOn",
"direction": "asc",
"filters": {}
}
}
GET/projects/{id}
Fetch one project with its members.
Scope project:read_all
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The project id. |
curl -X GET "https://veilux.io/api/v1/projects/{id}" \
-H "Authorization: Bearer $VEILUX_API_KEY"
const res = await fetch("https://veilux.io/api/v1/projects/{id}", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
},
});
const data = await res.json();
import os, uuid, requests
res = requests.get(
"https://veilux.io/api/v1/projects/{id}",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
},
)
data = res.json()
{
"project": {
"id": "cm3x9m7q10005pro00012abcd",
"name": "Website rebuild",
"description": "New marketing site for Harrow & Finch.",
"status": "IN_PROGRESS",
"startOn": "2026-08-17T00:00:00.000Z",
"deadlineOn": "2026-12-11T00:00:00.000Z",
"completedAt": null,
"billingMethod": "FIXED_FEE",
"budgetMinor": 1200000,
"defaultHourlyRateMinor": 9500,
"currency": "GBP",
"progressPercent": 40,
"progressFromMilestones": false,
"clientVisible": true,
"showTimeToClient": false,
"clientCanViewTasks": true,
"clientCanCreateTasks": false,
"clientCanCommentTasks": true,
"clientCanViewFinance": false,
"clientCanViewActivity": true,
"clientCanViewMilestones": true,
"clientCanUploadFiles": true,
"isActive": true,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"createdAt": "2026-08-14T09:00:00.000Z",
"updatedAt": "2026-10-02T16:20:00.000Z",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd"
},
"members": [
{
"id": "cm3x9m7q10201mem1abcdefgh",
"userId": "cm3x9k2p40009tm0kaf0rxyz",
"canSeeFinancials": true,
"addedAt": "2026-08-14T09:00:00.000Z",
"user": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor",
"email": "[email protected]",
"role": "ADMIN",
"isActive": true
}
}
],
"moneyVisible": true
}
}
POST/projects
Create a project for a customer.
Scope project:write
| Parameter | Type | Description |
|---|---|---|
companyIdbodyrequired | string | The customer the project is for. |
namebodyrequired | string | Project name, up to 200 characters. |
descriptionbody | string | Description. |
statusbody | string | NOT_STARTED, IN_PROGRESS, ON_HOLD, CANCELLED or COMPLETED. |
startOnbody | string | Start date, YYYY-MM-DD. |
deadlineOnbody | string | Deadline, YYYY-MM-DD. Not before the start. |
billingMethodbody | string | FIXED_FEE, PROJECT_HOURS or TASK_HOURS. |
budgetMinorbody | integer | Budget in minor units. |
defaultHourlyRateMinorbody | integer | Default hourly rate in minor units. |
clientVisiblebody | boolean | Show the project in the client portal. |
Client permission flags such as clientCanViewTasks are also accepted.
curl -X POST "https://veilux.io/api/v1/projects" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"companyId":"cm3x9k2p40001hf8d3q7zv1a","name":"Website rebuild","status":"IN_PROGRESS","startOn":"2026-08-17","deadlineOn":"2026-12-11","billingMethod":"FIXED_FEE","budgetMinor":1200000,"clientVisible":true}'
const res = await fetch("https://veilux.io/api/v1/projects", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Website rebuild",
"status": "IN_PROGRESS",
"startOn": "2026-08-17",
"deadlineOn": "2026-12-11",
"billingMethod": "FIXED_FEE",
"budgetMinor": 1200000,
"clientVisible": true
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.post(
"https://veilux.io/api/v1/projects",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Website rebuild",
"status": "IN_PROGRESS",
"startOn": "2026-08-17",
"deadlineOn": "2026-12-11",
"billingMethod": "FIXED_FEE",
"budgetMinor": 1200000,
"clientVisible": True
},
)
data = res.json()
{
"project": {
"id": "cm3x9m7q10005pro00012abcd",
"name": "Website rebuild",
"description": "New marketing site for Harrow & Finch.",
"status": "IN_PROGRESS",
"startOn": "2026-08-17T00:00:00.000Z",
"deadlineOn": "2026-12-11T00:00:00.000Z",
"completedAt": null,
"billingMethod": "FIXED_FEE",
"budgetMinor": 1200000,
"defaultHourlyRateMinor": 9500,
"currency": "GBP",
"progressPercent": 40,
"progressFromMilestones": false,
"clientVisible": true,
"showTimeToClient": false,
"clientCanViewTasks": true,
"clientCanCreateTasks": false,
"clientCanCommentTasks": true,
"clientCanViewFinance": false,
"clientCanViewActivity": true,
"clientCanViewMilestones": true,
"clientCanUploadFiles": true,
"isActive": true,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"createdAt": "2026-08-14T09:00:00.000Z",
"updatedAt": "2026-10-02T16:20:00.000Z",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd"
},
"members": [
{
"id": "cm3x9m7q10201mem1abcdefgh",
"userId": "cm3x9k2p40009tm0kaf0rxyz",
"canSeeFinancials": true,
"addedAt": "2026-08-14T09:00:00.000Z",
"user": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor",
"email": "[email protected]",
"role": "ADMIN",
"isActive": true
}
}
],
"moneyVisible": true
}
}
PATCH/projects/{id}
Change a project, including its status.
Scope project:write
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The project id. |
namebody | string | New name. |
statusbody | string | New status. |
deadlineOnbody | string | New deadline. |
progressPercentbody | integer | Progress, 0 to 100. |
isActivebody | boolean | Archive or restore. |
completeOpenTasksbody | boolean | With status COMPLETED, also close open tasks. |
notifyMembersbody | boolean | Tell members about a status change. On unless false. |
Accepts every create field, all optional. A status change fires project.status_changed.
curl -X PATCH "https://veilux.io/api/v1/projects/{id}" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"status":"COMPLETED","completeOpenTasks":true}'
const res = await fetch("https://veilux.io/api/v1/projects/{id}", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"status": "COMPLETED",
"completeOpenTasks": true
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.patch(
"https://veilux.io/api/v1/projects/{id}",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"status": "COMPLETED",
"completeOpenTasks": True
},
)
data = res.json()
{
"project": {
"id": "cm3x9m7q10005pro00012abcd",
"name": "Website rebuild",
"description": "New marketing site for Harrow & Finch.",
"status": "COMPLETED",
"startOn": "2026-08-17T00:00:00.000Z",
"deadlineOn": "2026-12-11T00:00:00.000Z",
"completedAt": "2026-10-12T10:00:00.000Z",
"billingMethod": "FIXED_FEE",
"budgetMinor": 1200000,
"defaultHourlyRateMinor": 9500,
"currency": "GBP",
"progressPercent": 40,
"progressFromMilestones": false,
"clientVisible": true,
"showTimeToClient": false,
"clientCanViewTasks": true,
"clientCanCreateTasks": false,
"clientCanCommentTasks": true,
"clientCanViewFinance": false,
"clientCanViewActivity": true,
"clientCanViewMilestones": true,
"clientCanUploadFiles": true,
"isActive": true,
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"createdAt": "2026-08-14T09:00:00.000Z",
"updatedAt": "2026-10-02T16:20:00.000Z",
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd"
},
"members": [
{
"id": "cm3x9m7q10201mem1abcdefgh",
"userId": "cm3x9k2p40009tm0kaf0rxyz",
"canSeeFinancials": true,
"addedAt": "2026-08-14T09:00:00.000Z",
"user": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor",
"email": "[email protected]",
"role": "ADMIN",
"isActive": true
}
}
],
"moneyVisible": true
}
}
Tasks
Work items, standalone or inside a project. Needs the tasks module.
GET/tasks
List tasks you may see.
Scope project:read_all
| Parameter | Type | Description |
|---|---|---|
qquery | string | Search text, up to 200 characters. |
pagequery | integer | Page number, starting at 1. |
pageSizequery | integer | Rows per page. Default 25, maximum 200. |
sortquery | string | Field to sort by. An unknown field falls back to the default. |
dirquery | string | asc or desc. |
statusquery | string | TODO, IN_PROGRESS, IN_REVIEW, BLOCKED, DONE or CANCELLED. |
priorityquery | string | LOW, MEDIUM, HIGH or URGENT. |
assigneeIdquery | string | Only tasks assigned to this staff member. |
projectIdquery | string | Only tasks in this project. |
milestoneIdquery | string | Only tasks in this milestone. |
clientVisiblequery | boolean | Only tasks shown (true) or hidden (false) in the portal. |
dueOn_fromquery | string | Due on or after this date (YYYY-MM-DD). |
dueOn_toquery | string | Due on or before this date (YYYY-MM-DD). |
Sort by dueOn, priority, status, title, createdAt or startOn.
curl -X GET "https://veilux.io/api/v1/tasks" \
-H "Authorization: Bearer $VEILUX_API_KEY"
const res = await fetch("https://veilux.io/api/v1/tasks", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
},
});
const data = await res.json();
import os, uuid, requests
res = requests.get(
"https://veilux.io/api/v1/tasks",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
},
)
data = res.json()
{
"rows": [
{
"id": "cm3x9m7q10006tsk00044abcd",
"title": "Homepage wireframes",
"description": null,
"status": "IN_PROGRESS",
"priority": "HIGH",
"startOn": "2026-10-05T00:00:00.000Z",
"dueOn": "2026-10-16T00:00:00.000Z",
"completedAt": null,
"assigneeId": "cm3x9k2p40009tm0kaf0rxyz",
"assignee": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"projectId": "cm3x9m7q10005pro00012abcd",
"project": {
"id": "cm3x9m7q10005pro00012abcd",
"name": "Website rebuild",
"currency": "GBP"
},
"milestoneId": null,
"milestone": null,
"billable": true,
"hourlyRateMinor": 9500,
"clientVisible": true,
"createdByUserId": "cm3x9k2p40009tm0kaf0rxyz",
"createdAt": "2026-10-05T09:00:00.000Z",
"updatedAt": "2026-10-09T13:45:00.000Z",
"checklist": []
}
],
"total": 1,
"page": 1,
"pageSize": 25,
"pageCount": 1,
"applied": {
"search": null,
"sort": "dueOn",
"direction": "asc",
"filters": {}
}
}
GET/tasks/{id}
Fetch one task with its checklist.
Scope project:read_all
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The task id. |
curl -X GET "https://veilux.io/api/v1/tasks/{id}" \
-H "Authorization: Bearer $VEILUX_API_KEY"
const res = await fetch("https://veilux.io/api/v1/tasks/{id}", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
},
});
const data = await res.json();
import os, uuid, requests
res = requests.get(
"https://veilux.io/api/v1/tasks/{id}",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
},
)
data = res.json()
{
"task": {
"id": "cm3x9m7q10006tsk00044abcd",
"title": "Homepage wireframes",
"description": null,
"status": "IN_PROGRESS",
"priority": "HIGH",
"startOn": "2026-10-05T00:00:00.000Z",
"dueOn": "2026-10-16T00:00:00.000Z",
"completedAt": null,
"assigneeId": "cm3x9k2p40009tm0kaf0rxyz",
"assignee": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"projectId": "cm3x9m7q10005pro00012abcd",
"project": {
"id": "cm3x9m7q10005pro00012abcd",
"name": "Website rebuild",
"currency": "GBP"
},
"milestoneId": null,
"milestone": null,
"billable": true,
"hourlyRateMinor": 9500,
"clientVisible": true,
"createdByUserId": "cm3x9k2p40009tm0kaf0rxyz",
"createdAt": "2026-10-05T09:00:00.000Z",
"updatedAt": "2026-10-09T13:45:00.000Z",
"checklist": []
}
}
POST/tasks
Create a task.
Scope task:write
| Parameter | Type | Description |
|---|---|---|
titlebodyrequired | string | Task title, up to 200 characters. |
projectIdbody | string | Project it belongs to. Omit for a standalone task. |
descriptionbody | string | Description. |
statusbody | string | TODO, IN_PROGRESS, IN_REVIEW, BLOCKED, DONE or CANCELLED. |
prioritybody | string | LOW, MEDIUM, HIGH or URGENT. |
startOnbody | string | Start date, YYYY-MM-DD. |
dueOnbody | string | Due date, YYYY-MM-DD. Not before the start. |
assigneeIdbody | string | Staff member it is assigned to. |
billablebody | boolean | Whether logged time is billable. |
hourlyRateMinorbody | integer | Hourly rate in minor units: 85.00 is 8500. |
clientVisiblebody | boolean | Show the task in the client portal. |
Repeat settings (repeatUnit, repeatCount, repeatUntil, repeatMax) and milestoneId are also accepted.
curl -X POST "https://veilux.io/api/v1/tasks" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"title":"Homepage wireframes","projectId":"cm3x9m7q10005pro00012abcd","priority":"HIGH","dueOn":"2026-10-16","assigneeId":"cm3x9k2p40009tm0kaf0rxyz","billable":true,"hourlyRateMinor":9500}'
const res = await fetch("https://veilux.io/api/v1/tasks", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"title": "Homepage wireframes",
"projectId": "cm3x9m7q10005pro00012abcd",
"priority": "HIGH",
"dueOn": "2026-10-16",
"assigneeId": "cm3x9k2p40009tm0kaf0rxyz",
"billable": true,
"hourlyRateMinor": 9500
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.post(
"https://veilux.io/api/v1/tasks",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"title": "Homepage wireframes",
"projectId": "cm3x9m7q10005pro00012abcd",
"priority": "HIGH",
"dueOn": "2026-10-16",
"assigneeId": "cm3x9k2p40009tm0kaf0rxyz",
"billable": True,
"hourlyRateMinor": 9500
},
)
data = res.json()
{
"task": {
"id": "cm3x9m7q10006tsk00044abcd",
"title": "Homepage wireframes",
"description": null,
"status": "IN_PROGRESS",
"priority": "HIGH",
"startOn": "2026-10-05T00:00:00.000Z",
"dueOn": "2026-10-16T00:00:00.000Z",
"completedAt": null,
"assigneeId": "cm3x9k2p40009tm0kaf0rxyz",
"assignee": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"projectId": "cm3x9m7q10005pro00012abcd",
"project": {
"id": "cm3x9m7q10005pro00012abcd",
"name": "Website rebuild",
"currency": "GBP"
},
"milestoneId": null,
"milestone": null,
"billable": true,
"hourlyRateMinor": 9500,
"clientVisible": true,
"createdByUserId": "cm3x9k2p40009tm0kaf0rxyz",
"createdAt": "2026-10-05T09:00:00.000Z",
"updatedAt": "2026-10-09T13:45:00.000Z",
"checklist": []
}
}
PATCH/tasks/{id}
Change a task, including its status.
Scope task:write
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The task id. |
titlebody | string | New title. |
statusbody | string | New status. |
prioritybody | string | New priority. |
dueOnbody | string | New due date, or null to clear. |
assigneeIdbody | string | New assignee, or null to unassign. |
Accepts every create field except projectId, all optional.
curl -X PATCH "https://veilux.io/api/v1/tasks/{id}" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"status":"DONE"}'
const res = await fetch("https://veilux.io/api/v1/tasks/{id}", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"status": "DONE"
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.patch(
"https://veilux.io/api/v1/tasks/{id}",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"status": "DONE"
},
)
data = res.json()
{
"task": {
"id": "cm3x9m7q10006tsk00044abcd",
"title": "Homepage wireframes",
"description": null,
"status": "DONE",
"priority": "HIGH",
"startOn": "2026-10-05T00:00:00.000Z",
"dueOn": "2026-10-16T00:00:00.000Z",
"completedAt": "2026-10-12T15:30:00.000Z",
"assigneeId": "cm3x9k2p40009tm0kaf0rxyz",
"assignee": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"projectId": "cm3x9m7q10005pro00012abcd",
"project": {
"id": "cm3x9m7q10005pro00012abcd",
"name": "Website rebuild",
"currency": "GBP"
},
"milestoneId": null,
"milestone": null,
"billable": true,
"hourlyRateMinor": 9500,
"clientVisible": true,
"createdByUserId": "cm3x9k2p40009tm0kaf0rxyz",
"createdAt": "2026-10-05T09:00:00.000Z",
"updatedAt": "2026-10-09T13:45:00.000Z",
"checklist": []
}
}
Time
Hours logged against a task or project. Needs the time module.
POST/time
Log time against a task or project.
Scope time:log
| Parameter | Type | Description |
|---|---|---|
workedOnbodyrequired | string | Day the work was done, YYYY-MM-DD. |
durationbodyrequired | string | Minutes as a number, or text such as 2:15, 1.5h or 90m. |
taskIdbody | string | Task the time belongs to. Give this or projectId. |
projectIdbody | string | Project the time belongs to. Give this or taskId. |
notebody | string | What was done, up to 2000 characters. |
billablebody | boolean | Whether the time is billable. |
Stored as whole minutes. Zero and negative durations are refused.
curl -X POST "https://veilux.io/api/v1/time" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"taskId":"cm3x9m7q10006tsk00044abcd","projectId":"cm3x9m7q10005pro00012abcd","workedOn":"2026-10-12","duration":"2:15","note":"Wireframe review with client","billable":true}'
const res = await fetch("https://veilux.io/api/v1/time", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"taskId": "cm3x9m7q10006tsk00044abcd",
"projectId": "cm3x9m7q10005pro00012abcd",
"workedOn": "2026-10-12",
"duration": "2:15",
"note": "Wireframe review with client",
"billable": true
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.post(
"https://veilux.io/api/v1/time",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"taskId": "cm3x9m7q10006tsk00044abcd",
"projectId": "cm3x9m7q10005pro00012abcd",
"workedOn": "2026-10-12",
"duration": "2:15",
"note": "Wireframe review with client",
"billable": True
},
)
data = res.json()
{
"entry": {
"id": "cm3x9m7q10301time1abcdefgh",
"projectId": "cm3x9m7q10005pro00012abcd",
"taskId": "cm3x9m7q10006tsk00044abcd",
"userId": "cm3x9k2p40009tm0kaf0rxyz",
"workedOn": "2026-10-12T00:00:00.000Z",
"startedAt": null,
"endedAt": null,
"minutes": 135,
"note": "Wireframe review with client",
"billable": true,
"hourlyRateMinor": 9500,
"invoiceId": null,
"invoicedAt": null,
"ticketId": null,
"createdAt": "2026-10-12T16:05:00.000Z",
"updatedAt": "2026-10-12T16:05:00.000Z",
"user": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"task": {
"id": "cm3x9m7q10006tsk00044abcd",
"title": "Homepage wireframes"
}
}
}
Tickets
Support tickets and their replies.
GET/tickets
List tickets you may see.
Scope ticket:read_all
| Parameter | Type | Description |
|---|---|---|
qquery | string | Search text, up to 200 characters. |
pagequery | integer | Page number, starting at 1. |
pageSizequery | integer | Rows per page. Default 25, maximum 200. |
sortquery | string | Field to sort by. An unknown field falls back to the default. |
dirquery | string | asc or desc. |
statusquery | string | NEW, OPEN, AWAITING_CUSTOMER, ON_HOLD, RESOLVED or CLOSED. Repeatable. |
priorityquery | string | LOW, MEDIUM, HIGH or URGENT. Repeatable. |
departmentIdquery | string | Only tickets in this department. |
assigneeIdquery | string | Only tickets assigned to this staff member. |
companyIdquery | string | Only tickets for this customer. |
contactIdquery | string | Only tickets from this contact. |
serviceIdquery | string | Only tickets for this service. |
createdAt_fromquery | string | Created on or after this date (YYYY-MM-DD). |
createdAt_toquery | string | Created on or before this date (YYYY-MM-DD). |
Needs ticket:read_all or ticket:read_assigned. Sort by lastReplyAt, createdAt, number, priority, status or subject.
curl -X GET "https://veilux.io/api/v1/tickets" \
-H "Authorization: Bearer $VEILUX_API_KEY"
const res = await fetch("https://veilux.io/api/v1/tickets", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
},
});
const data = await res.json();
import os, uuid, requests
res = requests.get(
"https://veilux.io/api/v1/tickets",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
},
)
data = res.json()
{
"rows": [
{
"id": "cm3x9m7q10007tkt00471abcd",
"number": "TKT-00471",
"subject": "Cannot download October invoice",
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"contactId": "cm3x9k2p40002pn5c8w2xr4b",
"requesterEmail": "[email protected]",
"requesterName": "Priya Natarajan",
"reopenedFromId": null,
"departmentId": "cm3x9k2p40010dept0support1",
"assigneeId": "cm3x9k2p40009tm0kaf0rxyz",
"priority": "MEDIUM",
"status": "OPEN",
"source": "STAFF",
"lastReplyAt": "2026-10-12T09:20:00.000Z",
"lastReplyByKind": "CLIENT",
"resolvedAt": null,
"closedAt": null,
"createdAt": "2026-10-12T09:20:00.000Z",
"updatedAt": "2026-10-12T09:20:00.000Z",
"serviceId": null,
"statusDefId": null,
"priorityDefId": null,
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"supportTier": "STANDARD"
},
"contact": {
"id": "cm3x9k2p40002pn5c8w2xr4b",
"firstName": "Priya",
"lastName": "Natarajan",
"email": "[email protected]",
"phone": "+44 20 7946 0322"
},
"department": {
"id": "cm3x9k2p40010dept0support1",
"name": "Support"
},
"assignee": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"_count": {
"replies": 1
}
}
],
"total": 1,
"page": 1,
"pageSize": 25,
"pageCount": 1,
"applied": {
"search": null,
"sort": "lastReplyAt",
"direction": "desc",
"filters": {}
}
}
POST/tickets
Open a ticket with its first message.
Scope ticket:reply
| Parameter | Type | Description |
|---|---|---|
subjectbodyrequired | string | Subject, up to 200 characters. |
bodybodyrequired | string | The first message, up to 20,000 characters. |
companyIdbody | string | Customer it is for. |
contactIdbody | string | Contact it is from. Needs companyId. |
requesterEmailbody | string | Requester email, if not a known contact. |
requesterNamebody | string | Requester name. |
departmentIdbody | string | Department to file it under. |
assigneeIdbody | string | Staff member to assign it to. |
prioritybody | string | LOW, MEDIUM, HIGH or URGENT. |
serviceIdbody | string | Service it concerns. |
customFieldsbody | object | Custom field values keyed by field key. |
Fires ticket.created. status is not accepted on create.
curl -X POST "https://veilux.io/api/v1/tickets" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"subject":"Cannot download October invoice","body":"The PDF link in the portal returns an error.","companyId":"cm3x9k2p40001hf8d3q7zv1a","contactId":"cm3x9k2p40002pn5c8w2xr4b","priority":"MEDIUM"}'
const res = await fetch("https://veilux.io/api/v1/tickets", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"subject": "Cannot download October invoice",
"body": "The PDF link in the portal returns an error.",
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"contactId": "cm3x9k2p40002pn5c8w2xr4b",
"priority": "MEDIUM"
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.post(
"https://veilux.io/api/v1/tickets",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"subject": "Cannot download October invoice",
"body": "The PDF link in the portal returns an error.",
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"contactId": "cm3x9k2p40002pn5c8w2xr4b",
"priority": "MEDIUM"
},
)
data = res.json()
{
"ticket": {
"id": "cm3x9m7q10007tkt00471abcd",
"number": "TKT-00471",
"subject": "Cannot download October invoice",
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"contactId": "cm3x9k2p40002pn5c8w2xr4b",
"requesterEmail": "[email protected]",
"requesterName": "Priya Natarajan",
"reopenedFromId": null,
"departmentId": "cm3x9k2p40010dept0support1",
"assigneeId": "cm3x9k2p40009tm0kaf0rxyz",
"priority": "MEDIUM",
"status": "OPEN",
"source": "STAFF",
"lastReplyAt": "2026-10-12T09:20:00.000Z",
"lastReplyByKind": "CLIENT",
"resolvedAt": null,
"closedAt": null,
"createdAt": "2026-10-12T09:20:00.000Z",
"updatedAt": "2026-10-12T09:20:00.000Z",
"serviceId": null,
"statusDefId": null,
"priorityDefId": null,
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"supportTier": "STANDARD"
},
"contact": {
"id": "cm3x9k2p40002pn5c8w2xr4b",
"firstName": "Priya",
"lastName": "Natarajan",
"email": "[email protected]",
"phone": "+44 20 7946 0322"
},
"department": {
"id": "cm3x9k2p40010dept0support1",
"name": "Support"
},
"assignee": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"_count": {
"replies": 1
}
}
}
PATCH/tickets/{id}
Change a ticket's fields or status.
Scope ticket:reply
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The ticket id. |
statusbody | string | NEW, OPEN, AWAITING_CUSTOMER, ON_HOLD, RESOLVED or CLOSED. |
prioritybody | string | LOW, MEDIUM, HIGH or URGENT. |
assigneeIdbody | string | New assignee, or null to unassign. |
departmentIdbody | string | Move to another department. |
subjectbody | string | New subject. |
Also accepts companyId, contactId, requesterEmail, requesterName, serviceId and statusDefId. Send at least one.
curl -X PATCH "https://veilux.io/api/v1/tickets/{id}" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"status":"RESOLVED","priority":"LOW"}'
const res = await fetch("https://veilux.io/api/v1/tickets/{id}", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"status": "RESOLVED",
"priority": "LOW"
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.patch(
"https://veilux.io/api/v1/tickets/{id}",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"status": "RESOLVED",
"priority": "LOW"
},
)
data = res.json()
{
"ticket": {
"id": "cm3x9m7q10007tkt00471abcd",
"number": "TKT-00471",
"subject": "Cannot download October invoice",
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"contactId": "cm3x9k2p40002pn5c8w2xr4b",
"requesterEmail": "[email protected]",
"requesterName": "Priya Natarajan",
"reopenedFromId": null,
"departmentId": "cm3x9k2p40010dept0support1",
"assigneeId": "cm3x9k2p40009tm0kaf0rxyz",
"priority": "LOW",
"status": "RESOLVED",
"source": "STAFF",
"lastReplyAt": "2026-10-12T09:20:00.000Z",
"lastReplyByKind": "CLIENT",
"resolvedAt": "2026-10-12T11:00:00.000Z",
"closedAt": null,
"createdAt": "2026-10-12T09:20:00.000Z",
"updatedAt": "2026-10-12T09:20:00.000Z",
"serviceId": null,
"statusDefId": null,
"priorityDefId": null,
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"supportTier": "STANDARD"
},
"contact": {
"id": "cm3x9k2p40002pn5c8w2xr4b",
"firstName": "Priya",
"lastName": "Natarajan",
"email": "[email protected]",
"phone": "+44 20 7946 0322"
},
"department": {
"id": "cm3x9k2p40010dept0support1",
"name": "Support"
},
"assignee": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"_count": {
"replies": 1
}
}
}
POST/tickets/{id}/replies
Post a reply or an internal note on a ticket.
Scope ticket:reply
| Parameter | Type | Description |
|---|---|---|
idpathrequired | string | The ticket id. |
bodybodyrequired | string | The reply, up to 20,000 characters. |
isInternalbody | boolean | True for a staff-only note the customer never sees. |
seenLastReplyAtbody | string | ISO timestamp of the last reply you saw. A newer public reply returns 409. |
Canned replies and macros are not available over the API.
curl -X POST "https://veilux.io/api/v1/tickets/{id}/replies" \
-H "Authorization: Bearer $VEILUX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"body":"Fixed on our side. Please try the link again.","isInternal":false,"seenLastReplyAt":"2026-10-12T09:20:00.000Z"}'
const res = await fetch("https://veilux.io/api/v1/tickets/{id}/replies", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEILUX_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"body": "Fixed on our side. Please try the link again.",
"isInternal": false,
"seenLastReplyAt": "2026-10-12T09:20:00.000Z"
}),
});
const data = await res.json();
import os, uuid, requests
res = requests.post(
"https://veilux.io/api/v1/tickets/{id}/replies",
headers={
"Authorization": f"Bearer {os.environ['VEILUX_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"body": "Fixed on our side. Please try the link again.",
"isInternal": False,
"seenLastReplyAt": "2026-10-12T09:20:00.000Z"
},
)
data = res.json()
{
"reply": {
"id": "cm3x9m7q10401reply1abcdefg",
"ticketId": "cm3x9m7q10007tkt00471abcd",
"body": "Fixed on our side. Please try the link again.",
"isInternal": false,
"authorUserId": "cm3x9k2p40009tm0kaf0rxyz",
"createdAt": "2026-10-12T10:41:00.000Z"
},
"ticket": {
"id": "cm3x9m7q10007tkt00471abcd",
"number": "TKT-00471",
"subject": "Cannot download October invoice",
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"contactId": "cm3x9k2p40002pn5c8w2xr4b",
"requesterEmail": "[email protected]",
"requesterName": "Priya Natarajan",
"reopenedFromId": null,
"departmentId": "cm3x9k2p40010dept0support1",
"assigneeId": "cm3x9k2p40009tm0kaf0rxyz",
"priority": "MEDIUM",
"status": "AWAITING_CUSTOMER",
"source": "STAFF",
"lastReplyAt": "2026-10-12T10:41:00.000Z",
"lastReplyByKind": "STAFF",
"resolvedAt": null,
"closedAt": null,
"createdAt": "2026-10-12T09:20:00.000Z",
"updatedAt": "2026-10-12T09:20:00.000Z",
"serviceId": null,
"statusDefId": null,
"priorityDefId": null,
"company": {
"id": "cm3x9k2p40001hf8d3q7zv1a",
"name": "Harrow & Finch Ltd",
"supportTier": "STANDARD"
},
"contact": {
"id": "cm3x9k2p40002pn5c8w2xr4b",
"firstName": "Priya",
"lastName": "Natarajan",
"email": "[email protected]",
"phone": "+44 20 7946 0322"
},
"department": {
"id": "cm3x9k2p40010dept0support1",
"name": "Support"
},
"assignee": {
"id": "cm3x9k2p40009tm0kaf0rxyz",
"name": "Tom Okafor"
},
"_count": {
"replies": 1
}
}
}
Webhooks
Add an HTTPS endpoint in your account and pick events. Each delivery is a JSON POST with the envelope below. Respond 2xx within 10 seconds.
| Header | Contains |
|---|---|
X-Portal-Webhook-Signature | sha256= followed by the hex HMAC-SHA256 of "<timestamp>.<raw body>", keyed with the endpoint secret. |
X-Portal-Webhook-Timestamp | Unix time in seconds when the delivery was signed. |
X-Portal-Webhook-Event | The event name, for example invoice.paid. |
X-Portal-Webhook-Delivery | A unique id for this delivery. Use it to ignore repeats. |
User-Agent | Always Portal-Webhooks/1. |
Build the string "<timestamp>.<raw body>", compute its HMAC-SHA256 with your endpoint secret, prefix the hex with sha256= and compare in constant time. Reject timestamps more than 5 minutes old.
A non-2xx answer, a timeout (10 seconds) or a redirect counts as a failure. Retries follow 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, then 24 hours, up to 7 attempts. An endpoint with no success in 24 hours after 6 failed attempts is disabled. Deliveries are kept 30 days. URLs must be https and public.
Events
{
"id": "cm3x9m7q10501delivinvoicabc",
"event": "invoice.created",
"occurredAt": "2026-10-12T14:03:22.418Z",
"subject": {
"type": "Invoice",
"id": "cm3x9m7q10003inv00142abcd",
"label": "INV-00142"
},
"data": {
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"companyName": "Harrow & Finch Ltd",
"currency": "GBP",
"totalMinor": 348000
}
}
{
"id": "cm3x9m7q10501delivinvoicabc",
"event": "invoice.sent",
"occurredAt": "2026-10-12T14:03:22.418Z",
"subject": {
"type": "Invoice",
"id": "cm3x9m7q10003inv00142abcd",
"label": "INV-00142"
},
"data": {
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"currency": "GBP",
"totalMinor": 348000,
"to": "[email protected]"
}
}
{
"id": "cm3x9m7q10501delivinvoicabc",
"event": "invoice.paid",
"occurredAt": "2026-10-12T14:03:22.418Z",
"subject": {
"type": "Invoice",
"id": "cm3x9m7q10003inv00142abcd",
"label": "INV-00142"
},
"data": {
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"currency": "GBP",
"outstandingMinor": 0,
"paymentId": "cm3x9m7q10008pay00031abcd",
"amountMinor": 248000,
"mode": "Bank transfer"
}
}
{
"id": "cm3x9m7q10501delivpaymenabc",
"event": "payment.recorded",
"occurredAt": "2026-10-12T14:03:22.418Z",
"subject": {
"type": "Payment",
"id": "cm3x9m7q10008pay00031abcd",
"label": "PAY-00031"
},
"data": {
"invoiceId": "cm3x9m7q10003inv00142abcd",
"invoiceNumber": "INV-00142",
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"amountMinor": 100000,
"currency": "GBP",
"mode": "Bank transfer"
}
}
{
"id": "cm3x9m7q10501delivestimaabc",
"event": "estimate.accepted",
"occurredAt": "2026-10-12T14:03:22.418Z",
"subject": {
"type": "Estimate",
"id": "cm3x9m7q10004est00118abcd",
"label": "EST-00118"
},
"data": {
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"companyName": "Harrow & Finch Ltd",
"totalMinor": 348000,
"currency": "GBP"
}
}
{
"id": "cm3x9m7q10501delivcontraabc",
"event": "contract.signed",
"occurredAt": "2026-10-12T14:03:22.418Z",
"subject": {
"type": "Contract",
"id": "cm3x9m7q10601contr1abcdefg",
"label": "Website services agreement"
},
"data": {
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"companyName": "Harrow & Finch Ltd",
"signerName": "Priya Natarajan",
"method": "TYPED"
}
}
{
"id": "cm3x9m7q10501delivleadcrabc",
"event": "lead.created",
"occurredAt": "2026-10-12T14:03:22.418Z",
"subject": {
"type": "Lead",
"id": "cm3x9m7q10012lead00009abcd",
"label": "Maya Osei"
},
"data": {
"name": "Maya Osei",
"companyName": "Kestrel Signs",
"email": "[email protected]",
"phone": null,
"valueMinor": 450000,
"currency": "GBP",
"statusId": "cm3x9k2p40701status1abcdef",
"sourceId": null,
"assignedToId": "cm3x9k2p40009tm0kaf0rxyz"
}
}
{
"id": "cm3x9m7q10501delivticketabc",
"event": "ticket.created",
"occurredAt": "2026-10-12T14:03:22.418Z",
"subject": {
"type": "Ticket",
"id": "cm3x9m7q10007tkt00471abcd",
"label": "TKT-00471"
},
"data": {
"number": "TKT-00471",
"subject": "Cannot download October invoice",
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"departmentId": "cm3x9k2p40010dept0support1",
"priority": "MEDIUM",
"source": "STAFF"
}
}
{
"id": "cm3x9m7q10501delivprojecabc",
"event": "project.status_changed",
"occurredAt": "2026-10-12T14:03:22.418Z",
"subject": {
"type": "Project",
"id": "cm3x9m7q10005pro00012abcd",
"label": "Website rebuild"
},
"data": {
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"companyName": "Harrow & Finch Ltd",
"fromStatus": "IN_PROGRESS",
"toStatus": "COMPLETED"
}
}
{
"id": "cm3x9m7q10501delivcontacabc",
"event": "contact.created",
"occurredAt": "2026-10-12T14:03:22.418Z",
"subject": {
"type": "Contact",
"id": "cm3x9k2p40002pn5c8w2xr4b",
"label": "Priya Natarajan"
},
"data": {
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"companyName": "Harrow & Finch Ltd",
"email": "[email protected]",
"isPrimary": true
}
}
{
"id": "cm3x9m7q10501delivmeetinabc",
"event": "meeting.booked",
"occurredAt": "2026-10-12T14:03:22.418Z",
"subject": {
"type": "Meeting",
"id": "cm3x9m7q10013meet00021abcd",
"label": "Kickoff call"
},
"data": {
"meetingId": "cm3x9m7q10013meet00021abcd",
"startsAt": "2026-10-20T10:00:00.000Z",
"endsAt": "2026-10-20T10:30:00.000Z",
"hostUserId": "cm3x9k2p40009tm0kaf0rxyz",
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"leadId": null,
"bookingPageId": "cm3x9k2p40801bookpage1abcd",
"source": "BOOKING_PAGE"
}
}
{
"id": "cm3x9m7q10501delivmeetinabc",
"event": "meeting.cancelled",
"occurredAt": "2026-10-12T14:03:22.418Z",
"subject": {
"type": "Meeting",
"id": "cm3x9m7q10013meet00021abcd",
"label": "Kickoff call"
},
"data": {
"meetingId": "cm3x9m7q10013meet00021abcd",
"startsAt": "2026-10-20T10:00:00.000Z",
"endsAt": "2026-10-20T10:30:00.000Z",
"hostUserId": "cm3x9k2p40009tm0kaf0rxyz",
"companyId": "cm3x9k2p40001hf8d3q7zv1a",
"leadId": null,
"bookingPageId": "cm3x9k2p40801bookpage1abcd",
"source": "BOOKING_PAGE"
}
}
MCP server
The same keys work as an MCP server over Streamable HTTP. One tool per API operation, with the same scopes and rate limit. Write tools are marked for confirmation.
Endpoint https://veilux.io/api/mcp
get_melist_customersget_customercreate_customerupdate_customerlist_contactscreate_contactupdate_contactlist_invoicesget_invoicecreate_invoiceupdate_invoicesend_invoicerecord_paymentlist_projectscreate_projectupdate_projectlist_ticketscreate_ticketupdate_ticketreply_ticketlist_taskscreate_taskupdate_tasklog_timelist_estimatesget_estimatecreate_estimatesend_estimateHighlighted tools change data. The same API key and scopes apply.
{
"mcpServers": {
"veilux": {
"url": "https://veilux.io/api/mcp",
"headers": {
"Authorization": "Bearer pk_live_..."
}
}
}
}