CRM
List Activities
List the CRM activities you can see: visits, calls, meetings, emails, notes and tasks. Newest first by default (by the activity's when: its start time, else its due date, else when it was created).
Create Activity
Log an activity that happened, or plan one. Optionally creates a follow-up task, records the visit's check-in and check-out, or repeats a planned visit every few weeks.
Get Activity
Get one activity with its customer, contact, owner, check-in, trip, recurrence, linked quotes and sales orders, and follow-up task.
Update Activity
Edit an activity. Only the fields you send change. Accepts the same fields as Create Activity, plus `scope`.
Delete Activity
Delete an activity. For a repeating visit, scope=following also deletes every later planned occurrence of the series.
Check In to Activity
Check in to a visit, call or meeting now. Location is optional: without it (for example when the device denied location) the check-in time is still recorded. When the accuracy is 250 m or better and the customer's shipping address is geocoded, the distance from it is stored; `checkin.away_from_address` is true when it exceeds the account's check-in distance warning. A visit on a call trip marks the trip in progress.
Check Out of Activity
Check out of a visit you are checked in to, now. The activity stays planned until you complete it (Complete Activity also checks out). An open check-in is reminded after `checkout_reminder_hours` and closed automatically after `auto_checkout_hours` (CRM settings).
Complete Activity
Complete a planned activity. A visit, call or meeting records its outcome; a still-open check-in is closed now; a visit, call or meeting with no start time gets its check-in time (or now). A task just completes.
Reopen Task
Re-open a completed task: it goes back to planned and its completion time is cleared. Only tasks can be re-opened.
Bulk Update Activities
Reassign, complete or delete many activities at once. Activities you cannot see or change are skipped; `updated` is the number actually changed. complete only changes planned activities (and closes an open check-in).
Export Activities
Download the activities you can see as CSV. Accepts the same filters, search, filter_groups and sort as List Activities (no pagination: every matching row is exported).
Import Activities
Import past or planned activities from a CSV file (for example history from another CRM). The import runs immediately; valid rows are saved and invalid rows are reported without stopping the rest.
Download Activity Import Template
Download an example CSV for Import Activities: the heading row and three sample rows.
Download Activity Import Error File
Download the failed rows of an import as CSV: the original columns plus an `error` column. Use the `error_file_url` returned by Import Activities. The file is kept for 24 hours; after that it returns 404.
Get Customer CRM Summary
Get a customer's CRM header figures: last visit (with owner and outcome), days since that visit, next planned activity (with its trip), open and overdue task counts, the last sales order with its top lines, and whether the customer has an active buyer portal account.
List Customer Timeline
List a customer's CRM history newest first, merged from: activities you can see, the customer's quotes and sales orders, and system entries (orders placed on the dealer's behalf through the buyer portal, statement and payment request emails).
List Planned Customer Visits
List the planned visits and meetings on a customer for one day, by any owner, earliest first. Use it to warn a rep that a colleague already plans to see the same customer that day ('Also planned by Robin Sample at 10:00'). It never blocks planning.
Get Customer Visit Coverage
Get a customer's visit coverage: grade, visit frequency, 'Do not schedule visits', the interval that applies, last visit, next visit due date and coverage status.
Update Customer Visit Coverage
Set a customer's grade, visit frequency or 'Do not schedule visits'. Only the fields you send change. The next visit due date and coverage status are recalculated straight away.
Get Customer Buying Matrix
Every category (or brand) with this customer's status over the period, bought first, for the customer page.
Get My Day
Get a sales rep's day in the account timezone: today's activities in time order (including tasks due today), open tasks that are overdue, the visit they are checked in to right now (any day), their customers due for a visit, upcoming call trips, and the day's figures.
Get CRM Calendar
Get the activities (not cancelled) and call trips of one or more users between two dates, inclusive, in the account timezone. Activities are those owned by the users that start in the range, plus tasks without a start time due in it, ordered by time.
Suggest Free Slots
Suggest up to 5 free slots of the given length in your diary, one per day at most, between the account's day start time (CRM settings) and 18:00 in the account timezone. Slots avoid your planned activities, never start in the past, and start on a quarter hour.
List Trips
List the call trips you can see, newest first.
Create Trip
Create a call trip for a sales rep with its stops. Planning for a rep other than yourself needs the CRM assign permission.
Get Trip Suggestions
List a sales rep's customers due for a visit in a trip window: active customers whose default rep is that rep and who have no planned visit between from and to, leaving out customers set to 'Do not schedule visits'. Order: graded customers never visited first, then customers due for a visit by the last trip day (by due date, then grade), then customers with no visit interval (never visited first, then visited longest ago), then customers on track. At most 50. Each row has `coverage` (grade, next visit due date and coverage status, as Get Customer Visit Coverage).
Get Trip
Get a trip with its stops grouped by day, Google Maps directions links per day (split into parts of at most 9 waypoints; a geocoded stop is sent as lat,lng, otherwise as its address) and a summary of quotes and orders raised from its visits and their outcomes.
Update Trip
Rename, re-date or re-assign a trip. Omitted fields stay as they are. Shrinking the dates while stops fall outside them returns 422 listing those stops. Changing the sales rep moves its planned stops to the new rep.
Delete Trip
Delete a trip. Its planned visits are cancelled unless keep_visits=1, which keeps them as ordinary planned visits off the trip. Completed visits always stay in the customer's history.
Replace Trip Stops
Replace the trip's ordered stop list. Stops are matched by id: unchanged stops are left as they are, changed ones are updated, stops without an id become new planned visits, and planned stops left out are cancelled with the reason 'Removed from trip'. Completed visits cannot be removed (422), and only their order changes. Skipped stops left out stay on the trip summary. A completed trip's stops cannot change.
Optimise Trip Day
Propose a stop order for one day of the trip: nearest neighbour from the trip's start location (or the first geocoded stop), using the customers' geocoded shipping addresses. Stops without coordinates keep their position and are listed in skipped_ungeocoded. Nothing is saved; send the order back with Replace Trip Stops.
Complete Trip
Mark a trip completed. A trip also reads as completed once its end date has passed.
Geocode Customer Addresses
Queue a background job that geocodes every active customer's default shipping address that has no coordinates yet (one lookup per second, OpenStreetMap Nominatim). Coordinates power check-in distance and trip routing. New and changed shipping addresses are geocoded automatically. Returns the tracked job id (null when nothing needs geocoding) and how many addresses are queued.
Preview Grade Suggestions
Suggest a grade for each customer from the last 12 months' sales (ABC split). Nothing is saved: apply the suggestions with Apply Grade Suggestions.
Apply Grade Suggestions
Apply the suggested grades to the selected customers, or to every customer the suggestion covers. The grades are recalculated when you call this (as Preview Grade Suggestions), never taken from the request. Only customers whose grade changes are updated: their `grade_set_on` becomes today and their next visit due date is recalculated.
Get Customer Segment Summary
Customers and revenue per RFM segment, with totals, over the customers you can see.
List Customers by Segment
Paginated list of the customers you can see with their segment, scores and order stats.
Recalculate Customer Segments
Queue a recalculation of every customer's scores and segment now, instead of waiting for the nightly run. If one is already queued or running, its id is returned instead of starting another.
List Customers Missing Orders
Paginated list of the customers you can see who are late to reorder against their own usual interval.
Get Missing Orders Summary
Counts and value at stake for the customers you can see, by status.
Get Buying Matrix
Customers (rows) against product categories or brands (columns) over a period: which each customer bought, quoted, used to buy or never bought, with each column's coverage.
Get Buying Matrix Cell
One customer and column of the buying matrix: the customer's products in it in the period (quantity, revenue, orders, last order), their sent quotes for it, when they last bought it before the period, and suggestions: the products in that column bought by the most of your visible customers in the same segment in the period, leaving out what this customer bought.
Get Team Summary
Get the sales manager's KPI cards and rep leaderboard for a period.
List Team Activity Feed
List the team's activities, latest first, as activity cards with their comment count.
Get Team Coverage
Get the team's customers counted by grade and visit coverage status, plus the graded customers never visited.
Export Team Coverage CSV
Download the team's customers with grade and coverage status as CSV, optionally one cell of the coverage matrix.
Get Team Calendar
Get the team calendar: one lane per rep with their activities and call-trip banners for a period (at most 31 days; default the current week).
List Team Trips
List the team's upcoming and in-progress call trips, earliest first, with planned and completed stop counts (up to 100).
List Activity Comments
List the coaching comments on an activity, oldest first.
Add Activity Comment
Add a coaching comment to an activity (a manager's note to the rep, or the rep's reply).
Get CRM Settings
Get the account's CRM settings, including the outcome keys accepted by `outcome` on activities.
Update CRM Settings
Change the account's CRM settings. Only the fields you send change.