The Skeduler data model for API users
Owner, AdminLast checked 25 November 20262 min readArticle ID:
developers-data-modelOn this page
The records the API exposes, how they link to each other, and the conventions they all follow.
How the records link
| Record | Links to | Notes |
|---|---|---|
| Customer / contact | One record, two views. See Customers or contacts, which endpoint do I use?. | |
| Job | customer_id, job_status_id, contacts | A piece of work for a customer, with an address. job_number is the number people see. Its classification (lead source, trade, category, subcategory, priority, call-out fee) has ids that match GET /job-lookups. contacts lists each contact on the job with their roles. |
| Visit | job_id, technician_id | A time on a job. status is scheduled, completed or failed. dispatched_at says whether it was sent to the technician. |
| Technician | trade_id | Name, trade and active. The list has active technicians only, unless you send include_inactive=true. |
| Schedule block | technician_id | A technician's time that isn't a visit: a time block (leave, lunch, admin) or a task. |
| Estimate | job_id | Has line items and totals. |
| Invoice | job_id, estimate_id, created_by, sold_by | Has line items, totals and paid_cents. created_by and sold_by are user ids. |
| Payment | job_id, invoice_id | Money received against an invoice. Voided payments are listed with voided_at set. |
| Credit note | job_id | Its allocations show the credit still applied to invoices. Archived (voided) credit notes are listed with archived_at set and no allocations. |
Everything is reached through a job: a job's visits, estimates, invoices, payments and credit notes carry its job_id.
Conventions
- Ids are ULID strings. The numbers people see (
job_number,number) are separate fields. - Money is integer minor units (cents) plus a
currencycode, for exampletotal_centsandcurrency. - Timestamps are ISO 8601. Dates are
YYYY-MM-DD. - One business. Every call is made by an app that belongs to one business and sees only that business's data. There's no business parameter to send.
- Notes are left out unless your app has the
read:notesscope. A job's notes from its Notes tab are listed byGET /jobs/{id}/notes. See Scopes.
For every field, see the API reference.