Cumulative stage counts and cancellation reasons for 7D, 30D or 90D enquiry cohorts. Each report can carry follow-up counts, reasons broken down by stage and previous cohort counts. Omit for demo data, pass an empty record without history, or pass null when unavailable.
operatorstring (optional)
Tour operator display label.
Data and integration
Preview
Three fictional tour cohorts, with stage conversion, cases awaiting action and reported cancellation reasons.
Inputs
reports is keyed by 7D, 30D or 90D. reached and optional previousReached contain four cumulative counts: enquiries, reserved, confirmed, travelled. Each cancellation reason needs a unique id, label and count. Optionally add byStage counts using the stage last reached at cancellation. followUp uses the keys enquiries, reserved, confirmed and travelled. Each supplied stage has a pending count and optionally overdue: { count, afterHours }, where afterHours is a positive whole number.
Source options
Use the first enquiry date to select each cohort. Count each case in every stage it reached by the cutoff. Use the booking system's actual open statuses, timestamps and service thresholds for followUp. Count only confirmed cancellations in the same cohort, once per booking. Supply previousReached only for cohorts measured at the same age with the same stage definitions and comparable cutoffs.
Actions
Use Left and Right on the chart to select a stage, or Home and End for the first and last. The card shows the rate from the previous stage and, when applicable, from all enquiries. The comparison is the change in the previous-stage rate in percentage points. Details opens the cancellations sheet with reported stage breakdowns.
Integration requirements
Use safe, non-negative integer counts. Cumulative counts must not increase between stages. An overdue count may not exceed its pending count. Breakdown counts may total less than the reason count when some stages are unknown. Use cancellations: [] when nothing was reported, reports: {} without history and reports: null for an unavailable feed. Omit optional data when unavailable and send zero for a known zero. Invalid reports are omitted.