Late cancels and no-shows
late_cancel_countCounts late cancels in one site's past classes, by class type and by client, and no-shows where the studio records them. Mindbody keeps late cancels only on class rosters (get_class_visits), and its class totals leave late-cancelled bookings out, so every class that ran is read, empty-looking ones included; canceled classes are skipped. The default mode "estimate" reads no roster: only the class list, returning the classes to read, the credits a count would cost and a plan of date ranges. mode "count" with maxClasses (at most 300 per call) reads the rosters, in whole days, and says what was counted and where to continue (nextStartDate). skipEmptyClasses skips classes with no bookings and no sign-ins to save credits; the counts are then a lower bound and say so. To compare with an earlier period, estimate and count that period separately. For attendance and fill rates use class_attendance_summary. For revenue per visit use attendance_with_revenue; for sales use sales_summary. A roster read in the last 47 hours is reused while the class totals are unchanged. Each roster read, class-list page and name lookup costs 1 credit. Mindbody calls: 1 per 200 classes (up to 25), 1 per class roster read (up to maxClasses) and up to 2 for client names (at most 327).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Rows in byClass and topClients, 1-25 (default 10). | |
| mode | No | estimate (default): the class list only, with the plan and its credits. count: read the rosters (needs maxClasses). | |
| range | No | Date range ending today (default last_30_days). Only classes on days before today are counted. | |
| siteId | No | Site to call (SiteId header). Default -99. | |
| endDate | No | Last day, inclusive (default today). At most 92 days after startDate. | |
| startDate | No | First day, e.g. 2026-09-01 (business-local): a plan entry, or nextStartDate to continue. Default: 30 days ending endDate. | |
| maxClasses | No | count: the most rosters this call reads, 1-300 (required). Each roster read costs 1 credit. estimate: the size of the planned date ranges (default 300). | |
| skipEmptyClasses | No | Skip classes with no bookings and no sign-ins (default false). A class whose every booking was late-cancelled looks empty, so the counts are then a lower bound. |