Compare cancellation policies and see the estimated refund at the booking’s current cutoff.
Cancellation Refund Estimate · Preview
Loading widget…
Preparing integration examples…
Source under review
The source code and files will be available after this version passes review.
Idle
API contract
Props for integrating the React component in your app.
snapshotRefundMeterSnapshot | null (optional)
Booking, timing, amount paid and cancellation policies. Omit for the built-in example; pass null if the feed is unavailable.
Data and integration
Preview
A trip with standard and flexible cutoff schedules.
Inputs
Provide booking, currency, paidMinor, daysToDeparture and policies with id, name and tiers of days and refundPercent. Optional appliedPolicyId selects the booking’s policy initially.
Source options
Map the booking’s paid total and applicable cutoffs from the booking system. Calculate daysToDeparture using that policy’s business-day and time-zone convention.
Actions
Switch policies to compare estimates. Selection changes the displayed estimate only.
Integration requirements
Select the highest qualifying cutoff (inclusive). Below all cutoffs the estimate uses 0%. Supply null for unknown timing or payment. The estimate covers the amount paid and the configured percentage.