API reference

A JSON API over your firm's customers, invoices, projects and tickets, authenticated with a key you create in your account.

On Growth and Scale https://veilux.io/api/v1 33 endpoints, 12 webhook events, 29 MCP tools

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.

ScopeAllows
customer:readRead customers and contacts.
customer:createCreate customers.
customer:updateUpdate customers, and add or update contacts.
invoice:readRead invoices, with totals and balance.
invoice:writeCreate, edit and send invoices.
payment:recordRecord payments against invoices.
estimate:readRead estimates.
estimate:writeCreate, edit and send estimates.
project:read_allRead every project and task.
project:read_ownRead only the projects and tasks the key's creator is on.
project:writeCreate and update projects.
task:writeCreate and update tasks.
time:logLog time entries.
ticket:read_allRead every ticket.
ticket:read_assignedRead only tickets assigned to the key's creator.
ticket:replyOpen tickets, change them and post replies.
Header
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-Limit RateLimit-Remaining RateLimit-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

StatusMeaning
400Invalid body, bad Idempotency-Key, or an unknown field. issues lists each problem by path.
401Missing, malformed, expired or revoked key.
403The key lacks the scope, or the firm account is suspended and the call is a write.
404No such record in your firm, or the module is not on your plan. Never 403, so ids are not confirmed.
409The record is in the wrong state, such as editing a sent invoice, or an Idempotency-Key is still running.
422The Idempotency-Key was already used with a different request.
429Rate limit reached. Wait for Retry-After seconds.
500A fault on our side. Safe to retry; nothing is stored under an Idempotency-Key.
Error body
{
  "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"
Response 200
{
  "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

ParameterTypeDescription
qquerystringSearch text, up to 200 characters.
pagequeryintegerPage number, starting at 1.
pageSizequeryintegerRows per page. Default 25, maximum 200.
sortquerystringField to sort by. An unknown field falls back to the default.
dirquerystringasc or desc.
isActivequerybooleanOnly active (true) or inactive (false) customers.
currencyquerystringThree-letter currency code, for example GBP. Repeatable.
groupquerystringCustomer 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"
Response 200
{
  "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

ParameterTypeDescription
idpathrequiredstringThe customer id.
curl -X GET "https://veilux.io/api/v1/customers/{id}" \
  -H "Authorization: Bearer $VEILUX_API_KEY"
Response 200
{
  "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

ParameterTypeDescription
namebodyrequiredstringCompany name, up to 200 characters.
tradingNamebodystringTrading name, if different.
vatNumberbodystringTax or VAT number.
companyNumberbodystringCompany registration number.
websitebodystringMust start with http:// or https://.
phonebodystringMain phone number.
currencybodystringThree-letter currency code, for example GBP.
paymentTermDaysbodyintegerDefault payment terms in days, 0 to 365.
accountManagerIdbodystringId of the staff member who looks after the customer.
supportTierbodystringSTANDARD, PRIORITY or VIP.
addressLine1bodystringAddress line 1. Line 2, city, region and postcode follow the same pattern.
countrybodystringTwo-letter country code.
notesbodystringInternal 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"}'
Response 201
{
  "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

ParameterTypeDescription
idpathrequiredstringThe customer id.
namebodystringNew company name.
paymentTermDaysbodyintegerPayment terms in days, 0 to 365.
supportTierbodystringSTANDARD, PRIORITY or VIP.
isActivebodybooleanDeactivate 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"}'
Response 200
{
  "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

ParameterTypeDescription
qquerystringSearch text, up to 200 characters.
pagequeryintegerPage number, starting at 1.
pageSizequeryintegerRows per page. Default 25, maximum 200.
sortquerystringField to sort by. An unknown field falls back to the default.
dirquerystringasc or desc.
companyIdquerystringOnly contacts at this customer.
hasPortalAccessquerybooleanOnly contacts with (true) or without (false) a portal login.
isActivequerybooleanOnly active or inactive contacts.
isPrimaryquerybooleanOnly 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"
Response 200
{
  "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

ParameterTypeDescription
idpathrequiredstringThe contact id.
curl -X GET "https://veilux.io/api/v1/contacts/{id}" \
  -H "Authorization: Bearer $VEILUX_API_KEY"
Response 200
{
  "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

ParameterTypeDescription
companyIdbodyrequiredstringThe customer this person belongs to.
firstNamebodyrequiredstringFirst name. A contact needs a first or last name.
lastNamebodyrequiredstringLast name.
emailbodyrequiredstringEmail address, stored lowercase.
phonebodystringPhone number.
jobTitlebodystringJob title.
ticketAccessbodystringNONE, 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"}'
Response 201
{
  "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

ParameterTypeDescription
idpathrequiredstringThe contact id.
firstNamebodystringFirst name.
lastNamebodystringLast name.
emailbodystringEmail address.
phonebodystringPhone number.
jobTitlebodystringJob title.
isActivebodybooleanDeactivate or reactivate the contact.
ticketAccessbodystringNONE, 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"}'
Response 200
{
  "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

ParameterTypeDescription
qquerystringSearch text, up to 200 characters.
pagequeryintegerPage number, starting at 1.
pageSizequeryintegerRows per page. Default 25, maximum 200.
sortquerystringField to sort by. An unknown field falls back to the default.
dirquerystringasc or desc.
companyIdquerystringOnly invoices for this customer.
issuedOn_fromquerystringIssued on or after this date (YYYY-MM-DD).
issuedOn_toquerystringIssued on or before this date (YYYY-MM-DD).
dueOn_fromquerystringDue on or after this date (YYYY-MM-DD).
dueOn_toquerystringDue 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"
Response 200
{
  "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

ParameterTypeDescription
idpathrequiredstringThe 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"
Response 200
{
  "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

ParameterTypeDescription
companyIdbodyrequiredstringThe customer being billed.
linesbodyarrayLine items: description, quantityMilli, unitPriceMinor, taxRateId and optional discounts.
issuedOnbodystringIssue date, YYYY-MM-DD. Defaults to today.
referencebodystringYour reference, up to 100 characters.
notesbodystringInternal notes.
termsbodystringTerms shown on the document.
clientNotebodystringNote shown to the client.
projectIdbodystringLink the document to a project.
saleAgentIdbodystringStaff member credited with the sale.
discountbodyobjectWhole-document discount: {kind: "basisPoints" | "minor", value}.
adjustmentMinorbodyintegerSigned adjustment after tax, in minor units.
dueOnbodystringDue 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"}]}'
Response 201
{
  "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

ParameterTypeDescription
idpathrequiredstringThe invoice id.
companyIdbodystringThe customer being billed.
linesbodyarrayLine items: description, quantityMilli, unitPriceMinor, taxRateId and optional discounts.
issuedOnbodystringIssue date, YYYY-MM-DD. Defaults to today.
referencebodystringYour reference, up to 100 characters.
notesbodystringInternal notes.
termsbodystringTerms shown on the document.
clientNotebodystringNote shown to the client.
projectIdbodystringLink the document to a project.
saleAgentIdbodystringStaff member credited with the sale.
discountbodyobjectWhole-document discount: {kind: "basisPoints" | "minor", value}.
adjustmentMinorbodyintegerSigned adjustment after tax, in minor units.
dueOnbodystringDue 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"}]}'
Response 200
{
  "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

ParameterTypeDescription
idpathrequiredstringThe 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)"
Response 200
{
  "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

ParameterTypeDescription
idpathrequiredstringThe invoice id.
amountMinorbodyrequiredintegerAmount in minor units: 1000.00 is 100000.
modebodyrequiredstringHow the money arrived, for example Bank transfer.
currencybodystringMust match the invoice currency if given.
paidOnbodystringDate received, YYYY-MM-DD. Defaults to today.
transactionIdbodystringYour bank or processor reference. Duplicates on one invoice are refused.
notebodystringNote, 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"}'
Response 201
{
  "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

ParameterTypeDescription
qquerystringSearch text, up to 200 characters.
pagequeryintegerPage number, starting at 1.
pageSizequeryintegerRows per page. Default 25, maximum 200.
sortquerystringField to sort by. An unknown field falls back to the default.
dirquerystringasc or desc.
statusquerystringDRAFT, SENT, ACCEPTED, DECLINED or EXPIRED.
companyIdquerystringOnly estimates for this customer.
saleAgentIdquerystringOnly estimates credited to this staff member.
issuedOn_fromquerystringIssued on or after this date (YYYY-MM-DD).
issuedOn_toquerystringIssued on or before this date (YYYY-MM-DD).
expiresOn_fromquerystringExpiring on or after this date (YYYY-MM-DD).
expiresOn_toquerystringExpiring 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"
Response 200
{
  "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

ParameterTypeDescription
idpathrequiredstringThe estimate id.
curl -X GET "https://veilux.io/api/v1/estimates/{id}" \
  -H "Authorization: Bearer $VEILUX_API_KEY"
Response 200
{
  "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

ParameterTypeDescription
companyIdbodyrequiredstringThe customer being billed.
linesbodyarrayLine items: description, quantityMilli, unitPriceMinor, taxRateId and optional discounts.
issuedOnbodystringIssue date, YYYY-MM-DD. Defaults to today.
referencebodystringYour reference, up to 100 characters.
notesbodystringInternal notes.
termsbodystringTerms shown on the document.
clientNotebodystringNote shown to the client.
projectIdbodystringLink the document to a project.
saleAgentIdbodystringStaff member credited with the sale.
discountbodyobjectWhole-document discount: {kind: "basisPoints" | "minor", value}.
adjustmentMinorbodyintegerSigned adjustment after tax, in minor units.
expiresOnbodystringExpiry 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"}]}'
Response 201
{
  "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

ParameterTypeDescription
idpathrequiredstringThe estimate id.
companyIdbodystringThe customer being billed.
linesbodyarrayLine items: description, quantityMilli, unitPriceMinor, taxRateId and optional discounts.
issuedOnbodystringIssue date, YYYY-MM-DD. Defaults to today.
referencebodystringYour reference, up to 100 characters.
notesbodystringInternal notes.
termsbodystringTerms shown on the document.
clientNotebodystringNote shown to the client.
projectIdbodystringLink the document to a project.
saleAgentIdbodystringStaff member credited with the sale.
discountbodyobjectWhole-document discount: {kind: "basisPoints" | "minor", value}.
adjustmentMinorbodyintegerSigned adjustment after tax, in minor units.
expiresOnbodystringExpiry 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"}'
Response 200
{
  "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

ParameterTypeDescription
idpathrequiredstringThe 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)"
Response 200
{
  "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

ParameterTypeDescription
qquerystringSearch text, up to 200 characters.
pagequeryintegerPage number, starting at 1.
pageSizequeryintegerRows per page. Default 25, maximum 200.
sortquerystringField to sort by. An unknown field falls back to the default.
dirquerystringasc or desc.
statusquerystringNOT_STARTED, IN_PROGRESS, ON_HOLD, CANCELLED or COMPLETED.
companyIdquerystringOnly projects for this customer.
isActivequerybooleanOnly active or archived projects.
deadlineOn_fromquerystringDeadline on or after this date (YYYY-MM-DD).
deadlineOn_toquerystringDeadline 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"
Response 200
{
  "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

ParameterTypeDescription
idpathrequiredstringThe project id.
curl -X GET "https://veilux.io/api/v1/projects/{id}" \
  -H "Authorization: Bearer $VEILUX_API_KEY"
Response 200
{
  "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

ParameterTypeDescription
companyIdbodyrequiredstringThe customer the project is for.
namebodyrequiredstringProject name, up to 200 characters.
descriptionbodystringDescription.
statusbodystringNOT_STARTED, IN_PROGRESS, ON_HOLD, CANCELLED or COMPLETED.
startOnbodystringStart date, YYYY-MM-DD.
deadlineOnbodystringDeadline, YYYY-MM-DD. Not before the start.
billingMethodbodystringFIXED_FEE, PROJECT_HOURS or TASK_HOURS.
budgetMinorbodyintegerBudget in minor units.
defaultHourlyRateMinorbodyintegerDefault hourly rate in minor units.
clientVisiblebodybooleanShow 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}'
Response 201
{
  "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

ParameterTypeDescription
idpathrequiredstringThe project id.
namebodystringNew name.
statusbodystringNew status.
deadlineOnbodystringNew deadline.
progressPercentbodyintegerProgress, 0 to 100.
isActivebodybooleanArchive or restore.
completeOpenTasksbodybooleanWith status COMPLETED, also close open tasks.
notifyMembersbodybooleanTell 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}'
Response 200
{
  "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

ParameterTypeDescription
qquerystringSearch text, up to 200 characters.
pagequeryintegerPage number, starting at 1.
pageSizequeryintegerRows per page. Default 25, maximum 200.
sortquerystringField to sort by. An unknown field falls back to the default.
dirquerystringasc or desc.
statusquerystringTODO, IN_PROGRESS, IN_REVIEW, BLOCKED, DONE or CANCELLED.
priorityquerystringLOW, MEDIUM, HIGH or URGENT.
assigneeIdquerystringOnly tasks assigned to this staff member.
projectIdquerystringOnly tasks in this project.
milestoneIdquerystringOnly tasks in this milestone.
clientVisiblequerybooleanOnly tasks shown (true) or hidden (false) in the portal.
dueOn_fromquerystringDue on or after this date (YYYY-MM-DD).
dueOn_toquerystringDue 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"
Response 200
{
  "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

ParameterTypeDescription
idpathrequiredstringThe task id.
curl -X GET "https://veilux.io/api/v1/tasks/{id}" \
  -H "Authorization: Bearer $VEILUX_API_KEY"
Response 200
{
  "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

ParameterTypeDescription
titlebodyrequiredstringTask title, up to 200 characters.
projectIdbodystringProject it belongs to. Omit for a standalone task.
descriptionbodystringDescription.
statusbodystringTODO, IN_PROGRESS, IN_REVIEW, BLOCKED, DONE or CANCELLED.
prioritybodystringLOW, MEDIUM, HIGH or URGENT.
startOnbodystringStart date, YYYY-MM-DD.
dueOnbodystringDue date, YYYY-MM-DD. Not before the start.
assigneeIdbodystringStaff member it is assigned to.
billablebodybooleanWhether logged time is billable.
hourlyRateMinorbodyintegerHourly rate in minor units: 85.00 is 8500.
clientVisiblebodybooleanShow 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}'
Response 201
{
  "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

ParameterTypeDescription
idpathrequiredstringThe task id.
titlebodystringNew title.
statusbodystringNew status.
prioritybodystringNew priority.
dueOnbodystringNew due date, or null to clear.
assigneeIdbodystringNew 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"}'
Response 200
{
  "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

ParameterTypeDescription
workedOnbodyrequiredstringDay the work was done, YYYY-MM-DD.
durationbodyrequiredstringMinutes as a number, or text such as 2:15, 1.5h or 90m.
taskIdbodystringTask the time belongs to. Give this or projectId.
projectIdbodystringProject the time belongs to. Give this or taskId.
notebodystringWhat was done, up to 2000 characters.
billablebodybooleanWhether 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}'
Response 201
{
  "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

ParameterTypeDescription
qquerystringSearch text, up to 200 characters.
pagequeryintegerPage number, starting at 1.
pageSizequeryintegerRows per page. Default 25, maximum 200.
sortquerystringField to sort by. An unknown field falls back to the default.
dirquerystringasc or desc.
statusquerystringNEW, OPEN, AWAITING_CUSTOMER, ON_HOLD, RESOLVED or CLOSED. Repeatable.
priorityquerystringLOW, MEDIUM, HIGH or URGENT. Repeatable.
departmentIdquerystringOnly tickets in this department.
assigneeIdquerystringOnly tickets assigned to this staff member.
companyIdquerystringOnly tickets for this customer.
contactIdquerystringOnly tickets from this contact.
serviceIdquerystringOnly tickets for this service.
createdAt_fromquerystringCreated on or after this date (YYYY-MM-DD).
createdAt_toquerystringCreated 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"
Response 200
{
  "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

ParameterTypeDescription
subjectbodyrequiredstringSubject, up to 200 characters.
bodybodyrequiredstringThe first message, up to 20,000 characters.
companyIdbodystringCustomer it is for.
contactIdbodystringContact it is from. Needs companyId.
requesterEmailbodystringRequester email, if not a known contact.
requesterNamebodystringRequester name.
departmentIdbodystringDepartment to file it under.
assigneeIdbodystringStaff member to assign it to.
prioritybodystringLOW, MEDIUM, HIGH or URGENT.
serviceIdbodystringService it concerns.
customFieldsbodyobjectCustom 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"}'
Response 201
{
  "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

ParameterTypeDescription
idpathrequiredstringThe ticket id.
statusbodystringNEW, OPEN, AWAITING_CUSTOMER, ON_HOLD, RESOLVED or CLOSED.
prioritybodystringLOW, MEDIUM, HIGH or URGENT.
assigneeIdbodystringNew assignee, or null to unassign.
departmentIdbodystringMove to another department.
subjectbodystringNew 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"}'
Response 200
{
  "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

ParameterTypeDescription
idpathrequiredstringThe ticket id.
bodybodyrequiredstringThe reply, up to 20,000 characters.
isInternalbodybooleanTrue for a staff-only note the customer never sees.
seenLastReplyAtbodystringISO 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"}'
Response 201
{
  "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.

HeaderContains
X-Portal-Webhook-Signaturesha256= followed by the hex HMAC-SHA256 of "<timestamp>.<raw body>", keyed with the endpoint secret.
X-Portal-Webhook-TimestampUnix time in seconds when the delivery was signed.
X-Portal-Webhook-EventThe event name, for example invoice.paid.
X-Portal-Webhook-DeliveryA unique id for this delivery. Use it to ignore repeats.
User-AgentAlways 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

invoice.created payload
{
  "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
  }
}

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_estimate

Highlighted tools change data. The same API key and scopes apply.

Client config
{
  "mcpServers": {
    "veilux": {
      "url": "https://veilux.io/api/mcp",
      "headers": {
        "Authorization": "Bearer pk_live_..."
      }
    }
  }
}
esc