The customers endpoints let you read and write every aspect of a customer record in your Daylit company. You can list customers with rich filtering and cursor-based pagination, create or update records, manage nested contacts, and retrieve per-customer AR aging history — all scoped to a singleDocumentation Index
Fetch the complete documentation index at: https://help.daylit.com/llms.txt
Use this file to discover all available pages before exploring further.
company_id.
List customers
cursor), the response includes a count of total matching records and a next_cursor you pass on subsequent requests to fetch the next page.
Path parameters
UUID of the company whose customers you want to list.
Query parameters
Filter by customer status. Accepted values:
active, inactive, suspended, prospect. Pass any or omit to return all statuses.Filter by industry (case-insensitive exact match).
Case-insensitive partial match against
customer_company_name.Filter by AR aging risk level derived from the latest AR aging detail snapshot.
UUID of the team member assigned as AR owner. Returns only customers assigned to that owner.
UUID of the team member assigned as sales owner.
Pass
true to return individual person contacts only. Pass false to return company accounts (and records where is_person is null).Comma-separated list of label UUIDs. Returns customers matching any of the given labels (OR semantics).
Pass
true to exclude customers with a zero open balance.Pass
positive to return only customers with a positive open balance when no other balance filter is active.Sort order. Accepted values:
total_balance_desc, total_balance_asc, customer_name_asc, customer_name_desc.Maximum number of customers to return per page. Capped at
500.Opaque cursor returned as
next_cursor from a previous response. Omit on the first request.Pass
true (or 1 / yes) to embed the customer’s contacts array in each list item.Response fields
Total number of customers matching the applied filters. Only present on the first page (when no
cursor is supplied).The page size used for this response.
true when additional pages are available.Pass this value as
cursor on your next request to fetch the following page. null when you have reached the last page.Echo of all filters that were active for this request, useful for debugging.
Array of customer objects for the current page.
Example
Create a customer
HTTP 201.
Path parameters
UUID of the company to create the customer under.
Request body
Display name of the customer (company or individual).
Set to
true when the customer is an individual rather than a company.Initial status of the customer. Common values:
active, inactive, prospect.Industry classification for filtering.
Free-text description of the customer.
Default net payment terms in days (e.g.,
30 for Net 30).Credit limit for this customer in your base currency.
URL to the customer’s payment portal or pay link.
Preferred outreach channel for this customer (e.g.,
email, phone).UUID of the team member to assign as AR owner.
UUID of the team member to assign as sales owner.
Internal notes visible only to your team.
Primary address line.
City.
State or province.
Postal code.
Country code or name.
Example
Get a customer
Path parameters
UUID of the company.
UUID of the customer to retrieve.
Response fields
The detail response extends the list item fields with the following additional fields:Free-text description of the customer.
Industry classification.
Current status of the customer.
Default net payment terms in days.
Pay link URL for this customer.
Preferred outreach channel.
Team-only internal notes.
All saved locations for this customer. Each object includes
id, location_name, address_line1, address_city, address_state, address_zipcode, address_country, is_primary, is_billing_address, and is_active.All active contacts (
is_active=true) for this customer. See the contacts fields below.Up to 20 open AR invoices for this customer. Each entry includes
id, invoice_number, due_date, balance, total_amount, status, and days_outstanding.Total count of open AR invoices (not capped at 20).
Count of open invoices whose
due_date is in the past.Sum of all open invoice balances.
Weighted-average age of open AR in days, sourced from the latest AR aging snapshot.
Weighted-average days past the agreed payment terms, sourced from the latest AR aging snapshot.
Average days from invoice issue to payment across historical paid invoices.
Month-by-month payment history for trend analysis. Each entry has
month (YYYY-MM), days (weighted-average days to pay), and optionally days_beyond (weighted-average days beyond terms).Total open AR balance across the entire company (not just this customer).
Example
Update a customer
PATCH to update individual fields without supplying the full object. Use PUT to replace the entire record. Both methods trigger a customer metrics sync.
You can also update label assignments atomically by including label_ids in the PATCH body — this replaces the customer’s full set of labels.
Path parameters
UUID of the company.
UUID of the customer to update.
Request body (PATCH)
Supply any subset of the writable customer fields. All fields from the Create a customer request body are accepted, plus:
Array of label UUIDs to assign to this customer. Replaces the customer’s current label set entirely.
Example
Customer AR summary
Path parameters
UUID of the company.
Example
List contacts
Path parameters
UUID of the company.
UUID of the customer.
Query parameters
Filter to active (
true) or inactive (false) contacts only. Omit to return all.Filter by contact type (e.g.,
AP Manager, Controller, CFO, Primary Contact).Response fields
Total number of contacts matching the filter.
Array of contact objects.
Example
Add a contact
HTTP 201 with the created contact object. Email addresses must be unique per customer.
Path parameters
UUID of the company.
UUID of the customer to add the contact to.
Request body
Contact’s first name.
Contact’s last name.
Contact’s email address. Must be unique per customer.
Contact’s phone number.
Contact’s job title.
Contact’s department.
Role classification for AR purposes.
Set to
true to mark this contact as the primary AR contact for the account.Whether the contact is active.
Example
Customer activity log
Path parameters
UUID of the company.
UUID of the customer.
Example
Customer AR aging history
Path parameters
UUID of the company.
UUID of the customer.
Response fields
Array of historical AR aging snapshots, sorted by report date descending.