Your integration keeps working. The URLs do not change, your API key does not change, and the JSON has the same shape. You do not need to do anything for the cutover.
This page lists the few fields that behave differently, so you can check them against what your integration uses. If none of them is a field you use, there is nothing for you to do.
This page covers the API whose URLs look like
api/{locale}/public_access/{company_id}/….
Authorization: Bearer header. Nothing to reissue, and
nothing you need to do to make that work — we carry the credential across with your company.
In Settings → API keys it is the key marked Runs your existing integration. Rotating or
revoking that key stops your existing integration (a rotation after 24 hours), so only do it
when you mean to, or straight away if you think the key has been exposed.1234 and you get the site you have always called 1234.address string, and the same paginator behaviour including where total appears and where it
does not.2022-11-10T18:14:25.000000Z, and the few fields that
were plain 2022-11-10 18:14:25 (the visit list's started_at and ended_at) still are.history/site/index returns your visits from before the cutover as well as the new ones, in one
list, newest first, with the ids they always had. You do not need to call anything else.
What is different:
history/site/show for a visit made before the cutover returns {} — the same answer as for
an id that does not exist. The list row is there; the detail view of an old visit is not yet.order is accepted and not applied.503 rather than
quietly leaving them out. Retry it.Visits made after the cutover have ids starting at 10,000,000, so an old id and a new one can never be the same number.
On history/site/show, the tree underneath an operator — operators[].service_performances, and
below it the service, the filled-in form, the equipment and the consumables — is still there. What
changed is how much is in it.
A visit record is now one service at one site. Where a visit used to list several services, each
service is now its own record, with its own id in history/site/index. So service_performances
always has exactly one entry: the service that record is for.
Inside it:
equipment_category_performances are in seconds, as before. -1 still
means the equipment ran for the whole visit.duration is null. A service is no longer timed apart from its visit; the
visit's duration is the time.form_performance.answers is the same structure it always was.consumable_category_performances[].category is the consumable that was used — see
Consumable categories are now your consumables below. Its id is the consumable's id.work_order_number is always null.Only one operator is listed on a visit, and the service is listed under them.
null nowThey are still present in the response — your code will not break on a missing key — but there is nothing behind them.
| field | where | why |
|---|---|---|
ground_condition_id, weather_condition_id, weather_condition, ground_condition |
visit detail | Conditions are recorded as values now, not as entries in a list |
requirement, payment_date, billing_id, billing_status, no_editable_by |
visit list and detail | No equivalent |
on_site_time, off_site_time, in_geofence_time (and their _decimal forms) |
employee timesheets | Not derived yet |
shift_id |
visit list and detail | A visit can now span more than one shift, so there is no single one to name |
requirement, photos_limit, timezone_id, timezone, serviced_at, next_service_at, created_by, updated_by, address_notes |
sites | No equivalent. province_id and country_id are filled in |
uid, uid_provider |
sites, contractors | The external identifier field is not carried over |
the company's own settings — currency_id, the unit ids, photos_limit, approve_records_after, the colours, the deprecated_* and quickbooks_* fields |
contractor list, and the company under a route | These are settings of the company, kept elsewhere now |
role_type, role_type_id |
contacts | Contact roles are a different list now and do not map |
notes, template_route_id, event_id, available_after, notify_at |
routes | No equivalent |
device, devices |
users | A phone's push-notification token identifies that phone; the apps register again with the new system, and it is not something to hand out through an API |
hours_per_day, daily_cost, hourly_cost, quickbooks_item_id |
equipment | Not carried over |
cost, company_consumable_category |
consumable_category/index |
A consumable's cost is not carried over, and your rates are on the row itself (contractor_rate, sub_contractor_rate) |
off_season_mode |
companies, wherever one is nested | Off-season is part of billing now and is not published here |
They are null rather than 0 on purpose: a zero would say "the crew spent no time on site",
which would not be true.
These are filled in: first_site_started_at and last_site_ended_at on a timesheet,
phone_code on a contact, and first_geofence_triggered_at / last_geofence_triggered_at on a
visit.
| field | value | why |
|---|---|---|
map_icon |
"pin" |
Per-site icons are not carried over |
weather_on |
false |
Per-site weather is a different feature now |
images_exists |
false |
Photos moved to a separate service; answering this per row would make the list slow enough to time out. If you depend on it, tell us |
photo_performances |
[] |
Same reason. The array is present, so iterating it is safe |
favorite_count |
0 |
On the contractor list. This counted you having pinned a client company, which is not something the new system has |
walkthrough |
false |
On users. It recorded whether someone had seen the old app's tour |
show_in_app |
true |
On services and on consumable_category/index. Hiding one from the app is not a switch any more; one that exists is shown |
is_main |
false |
On companies. Company groups are not carried over |
user_company_count on the contractor list still works: it is 1 when your own user is also a
member of that client company, and 0 otherwise, as before.
avatar_url and
avatar_original_url in place of avatar and avatar_original, and a company with a logo comes
with logo_url beside logo. The addresses themselves point at the new storage, so a URL you
saved earlier will not match the one you are sent now.started_at and ended_at are dates. They used to carry the moment of midnight
where they were entered (2024-01-17T05:00:00.000000Z for Toronto); they now read as midnight UTC
(2024-01-17T00:00:00.000000Z). The day is the same.filter[search] on site/index looks in the same places — the site's name, name for
operators, references, address and city, its contacts, the routes it is on and its tags — and
matches the text you send. Results can come back in a different order from before.scheduled_for is now emptyA route used to be a thing with a date. It is now a standing definition that gets run — possibly
many times, on many dates — so there is no single date to put in scheduled_for, and it comes back
as null.
If you read it to find out when a route is next going out, read the new next_scheduled_for
field beside it instead. We added a new name rather than putting a different meaning behind the old
one, because a date that means something slightly different is worse than no date at all.
scheduled_for does not dispatch itPOST /route/store and PUT /route/update still accept scheduled_for, and do not act on it.
The route is saved; nothing is scheduled; reading it back shows scheduled_for: null. You get a
success response and no crew is sent.
This used to be how a route was sent out through the API. A route is now a standing definition, and sending it out is a separate step, done from Dispatch in the application.
If your integration schedules routes this way, tell us before the cutover.
A route now carries work — a service at a site — rather than a bare list of sites. When you send
sites[], the route gets the active work at each of those sites, in the order you sent them; send
services[] as well and it is narrowed to those services.
Two things follow:
sites list of the response. Check the response rather than assuming your list was taken whole.A route created without contractors[] is unassigned and cannot be sent out until somebody is put
on it. Assigning another company requires an accepted agreement with it; otherwise the request is
refused with Invalid Assigned Company.
rate and amount on an employee timesheet used to be stored on the row when the timesheet was
generated, so they never moved afterwards. They are now calculated from the employee's current pay
rate.
So changing someone's pay rate changes what their past timesheets report. If you reconcile one month against another, or keep your own copy of what a timesheet said at the time, that is the difference to know about. If you read a timesheet once and store the figures yourself, nothing changes for you.
status has two values now, not threeIt was approved, rejected or N/A. The new system has no way to record a reviewer rejected
these hours, so rejected never appears. A case 'rejected': branch in your code still
compiles and stops being entered; unreviewed hours are N/A as before.
A tag used to be stored once per thing it was on, so the same tag on three sites had three ids; it is now one tag with one id. The names are unchanged. If you store tag ids, rebuild that mapping once from the tags on each record.
Everything else keeps its original id — sites, routes, services, companies, contractors, contracts,
timesheets, and people: a user, an operator on a timesheet or a visit, and a route's crew all carry
the id you already have, and the operators[] filters accept it. Somebody added after the move
gets a new id from 10,000,000 up.
Somebody on your team with no email address signs in with their phone number, and is a user like
anyone else. The exception is a number that is shared with another account or is incomplete: that
person comes across as crew. They can still be put to work, but they are not a user — they are not
in user/index, user/show with their id answers as it does for an unknown user, and they are not
on a route's crew. Give them an email or a number of their own and they can be added as a user.
A subcontractor you work with that never had anybody signed up comes across as a company of its
own, with the same id, so it is in sub_contractor/index and sub_contractor/show as before. To
have them accept work in the application, invite someone from that company from the office.
Work used to be handed to a subcontractor site by site, as a list of services at each site. It is now handed over by route: a subcontractor works, and its integration sees, the sites on the routes it has been put on. Nearly every site moved across that way, because it was already on a route given to the same subcontractor. A site that was handed over without one no longer shows up for the subcontractor until it is put on one of its routes.
role_type is nullA contact's role used to be a job title from a fixed list (CEO, Property Manager…). Contacts now
record what they are for instead, which does not map onto those titles, so role_type_id and
role_type are null. phone_type, and an address's province, country and type, keep their
ids and their full objects.
This is the one place where we deliberately changed what the API does, because the old behaviour removed data without saying so.
POST /contractor/store used to delete every contact and address of a client on any call that
did not include them. So this request —
{ "id": 4417, "name": "Northgate Mall Ltd" }
— renamed the client and silently removed all of its contacts, with a 200 and no mention of it.
From the cutover:
| what you send | what happens |
|---|---|
no contacts key |
contacts are left exactly as they are |
"contacts": [ … ] |
your list replaces what is there — anything not in it is removed, as before |
"contacts": [] |
all contacts are removed, because you asked explicitly |
addresses follows the same rule. If your integration was relying on a bare save to clear
contacts, send "contacts": [] instead and you will get the old result.
The per-site services on the contract work the same way: a call with no contract.sites leaves the
priced work alone, rather than removing it.
The rules a write is checked against, the wording of a 422, and what each call answers with are
the same as before — including the ones that are easy to trip on:
name_for_operators is required on POST /site/store and on PUT /site/update.name is required on every POST /contractor/store, including one that updates a client.null is cleared.client_id on a site write is accepted and not used, as before. A site is linked to a client
through POST /contractor/store.id, not with the whole record.POST /contractor/store still needs a name on the service entry and on
its site entry, and a rate when the charge is per visit or monthly.Two things did change on writes:
422.POST /sub_contract/store creates the contract as
before, and sub_contractor_accepted_at stays null until the company you hired accepts it in
the application. The sites[] list on that call is accepted and not used: a subcontractor sees
a site when work there is assigned to it.POST /site/store and PUT /site/update still accept everything they always did — nothing you
send will be rejected for being a field we no longer have. But these are stored nowhere and
reading the site back will not show them: map_icon, weather_on, uid, uid_provider,
requirement.*, images[], measurements[], files[], tags[] and services[].
On POST /contractor/store, the per-contract equipment and consumable category rates are
accepted and not stored. Those rates are now a property of your catalogue rather than of each
client's contract, so there is nowhere to put a per-client one — and writing it to the catalogue
would change the rate for every client.
users[] on the same endpoint is accepted and not acted on. It used to create a login for
each person listed, on your client's company, and email them. No users are
created and nobody is emailed; add a client's people from the application instead. If you depend
on this, tell us.
On POST /route/store and PUT /route/update, notes, tags[], template_route_id,
all_sites_required and sites[].skipped are accepted and not stored.
Three address fields need a mention because the behaviour is subtler:
country_id works — the same numeric ids you send today.province_id works for provinces in Canada, the United States and the United Kingdom — the
same numeric ids you send today. If you send province as a name as well, the name is used.timezone_id is dropped. We store the timezone as text rather than as a reference, so there
is nothing for a numeric id to point at. Send timezone as a name (America/Edmonton) and
it is kept.contractor/dataprovider, equipment_category/index, consumable_category/index, consumable/dataproviderThese return the lists a form is built from. Most of what is in them is unchanged:
charge_types, phone_types, role_types and address_types are the same rows with the same
ids.countries and provinces are the same rows with the same ids, but only for Canada, the
United States and the United Kingdom. Those are the countries an address can be saved in, so
the others are no longer offered.contract_id is still a 422.What changed:
contractors in contractor/dataprovider has the same fields as a row of
contractor/index, rather than every column of the company.equipment_category_id is the id you already have; id on a row is a new number.contract_equipment_category and contract_consumable_category (returned when you pass
contract_id) are always null. Rates per client contract no longer exist; use the rate on the
category itself.role_type_id,
phone_type_id and an address type from these lists. They are accepted; a contact you read
back shows role_type.name as primary with a null id.There used to be a fixed, system-wide list of consumable categories, and usage was recorded
against a category. That list is gone. Usage is now recorded against your own consumables —
the ones in consumable/index.
So wherever this API says "consumable category" — consumable_category/index,
consumable/dataprovider, consumable_categories in contractor/dataprovider, and category
under a visit's consumable_category_performances — the rows are your consumables, with their
name, their group (snow, landscaping or misc) and their rates.
The ids are the ones you know. Each of your consumables carries the id of the category it was before the cutover, so a category id you stored still finds the same row. A consumable added after the cutover gets a new number.
consumable/index now has rows. It used to answer an empty list, because nothing was ever
recorded in it. It now lists the same consumables, under their other name, so a client that read
it expecting nothing will find your consumables there.
irrigation is misc. There are three groups now, so the consumables that were in
irrigation are in misc.
Equipment with no category of its own is under "Uncategorised". Equipment in a category you
had never set rates for used to be left out of equipment/index. It is listed now, in one
"Uncategorised" category, with no rates, rather than under the category name it had before.
uid no longer worksIf you address sites by the numeric id, nothing changes. If you use the string uid — most often a
Zapier setup — that lookup returns the same "not found" response it returns for any unknown id,
because the field is not carried over. Switch to the numeric id, which you already receive in every
response.
These are the responses you get today, and the responses you will go on getting:
| you call | with an unknown id, or one that is not yours | you get |
|---|---|---|
site/show |
400 {"message": "Sorry, something went wrong. Contact us!"} |
|
history/site/show |
200 with a body of {} |
|
report/employee_timesheet/show |
422 with errors.id |
|
contractor/show/{id} |
400 {"message": "Invalid Company"} |
We have deliberately not changed these into a consistent 404, because your error handling was written against them.
The 200 {} is the one to be aware of if you are writing new code against this API: it means you
cannot tell "no such visit" from "a visit with no data". That was true before the cutover too.
Two URLs in our logs have never once succeeded, and the reason is the same for both: they are not endpoints. They were not endpoints before the cutover either.
PUT /contractor/update — there is no such route, and there never has been. If you are
calling it, you have been getting a 404 and may not have noticed. Use
POST /contractor/store, which creates and updates: pass the contractor's id (or uid) in
the body and it updates that record instead of creating one.GET /site/show/{id} — the id goes in the query string: GET /site/show?id=1234. The same
is true of history/site/show and report/employee_timesheet/show. (contractor/show/{id} is
the exception — there the id really is part of the path.)Both still answer 404, as they did before. If you would like either of them to exist, tell us.
history/shift/index rejects most calls, as it did beforeGET /history/shift/index rejects about nine of every ten calls it receives, and has done so
for months. Its parameter rules are unchanged after the cutover, so calls it rejected before are
still rejected.
The rules it enforces, in case one of them is yours:
| parameter | rule |
|---|---|
filter.routes[].id |
must be an existing route id |
filter.operators[].id |
must be an existing user id |
filter.ended_at |
must not be before filter.started_at |
filter.search |
100 characters or fewer |
order |
must be an object, not a string — order[column]=name, not order=name |
A stored id that has since been deleted is the most likely cause. If this endpoint matters to you, tell us and we will help you find which rule your calls are failing.
Tell us, with the URL you called and the response you got. A difference that is not on this page is not intended, and we will look into it.