Skip to main content

Billing Validation Scenarios

This document is auto-generated from packages/utils/scripts/generate_documentation.ts and is intended for manual validation of booking, cancellation, and claim settlement behavior.

Coverage

  • Simple straightforward baseline booking.
  • Cancellation before and after trip start for both guest and owner cancellation types.
  • Completion claim settlement where claim is within deposit and where claim exceeds deposit.
  • Additional edge cases: policy boundary day, cancellation with over-deposit claim, zero-deposit claim settlement, and special-pricing proration.

Quick Matrix

IDCategoryScenarioTriggerExpected Workflow StateBooking Guest ChargeFinal Guest Settlement RefundFinal Owner PayoutClaim RequestedClaim DeductedDeposit Refund After ClaimPolicy State
S01SimpleStraight Booking Settled (No Cancellation, No Claims)Reservation completed normallyclaimSettled705 USD100 USD495 USD0 USD0 USD100 USD-
S02CancellationGuest Cancels Before Trip StartGuest cancellation before check-inclaimSettled705 USD705 USD0 USD0 USD0 USD100 USDprior
S03CancellationGuest Cancels After Trip StartGuest cancellation during tripclaimSettled705 USD100 USD495 USD0 USD0 USD100 USDduring
S04CancellationOwner Cancels Before Trip StartOwner cancellation before check-inclaimSettled705 USD705 USD0 USD0 USD0 USD100 USDhostCancelled
S05CancellationOwner Cancels After Trip StartOwner cancellation during tripclaimSettled705 USD705 USD0 USD0 USD0 USD100 USDhostCancelled
S06Claim SettlementClaim Settled on Completion (Claim <= Deposit)Claim settled after completionclaimSettled705 USD60 USD535 USD40 USD40 USD60 USD-
S07Claim SettlementClaim Settled on Completion (Claim > Deposit)Claim settled after completion with over-deposit requestclaimSettled705 USD0 USD595 USD180 USD100 USD0 USD-
S08Edge CaseGuest Cancellation Exactly on Prior Boundary DayGuest cancellation on policy boundary dateclaimSettled705 USD705 USD0 USD0 USD0 USD100 USDprior
S09Edge CaseCancellation + Claim Settled (Claim > Deposit)Cancellation then claim settlement with over-deposit requestclaimSettled705 USD0 USD595 USD180 USD100 USD0 USDduring
S10Edge CaseClaim Settled with Zero Security DepositClaim settled on reservation with no security depositclaimSettled605 USD0 USD495 USD50 USD0 USD0 USD-
S11Edge CaseSpecial Pricing During-Cancellation ProrationGuest cancellation during trip with special pricingclaimSettled925 USD540 USD315 USD0 USD0 USD100 USDduring

Settlement Highlights (Transaction Focus)

IDSettlement ModeFinal Guest RefundFinal Owner PayoutDeposit Refund After ClaimClaim DeductedFinal Guest FeeFinal Host FeeFinal Total Service Fees
S01claim_only100 USD495 USD100 USD0 USD55 USD55 USD110 USD
S02cancellation_only705 USD0 USD100 USD0 USD0 USD0 USD0 USD
S03cancellation_only100 USD495 USD100 USD0 USD55 USD55 USD110 USD
S04cancellation_only705 USD0 USD100 USD0 USD0 USD0 USD0 USD
S05cancellation_only705 USD0 USD100 USD0 USD0 USD0 USD0 USD
S06claim_only60 USD535 USD60 USD40 USD55 USD55 USD110 USD
S07claim_only0 USD595 USD0 USD100 USD55 USD55 USD110 USD
S08cancellation_only705 USD0 USD100 USD0 USD0 USD0 USD0 USD
S09cancellation_with_claim0 USD595 USD0 USD100 USD55 USD55 USD110 USD
S10claim_only0 USD495 USD0 USD0 USD55 USD55 USD110 USD
S11cancellation_only540 USD315 USD100 USD0 USD35 USD35 USD70 USD

S01 - Straight Booking Settled (No Cancellation, No Claims)

Baseline settled booking scenario to validate final settlement totals when no cancellation and no claim deduction are applied.

Inputs

ParameterValue
startDate2026-08-10
endDate2026-08-15
startTime0
endTime0
basePrice100
securityDeposit100
deliveryFee50
isDeliverySelectedtrue
guestServiceFeePct10
hostServiceFeePct10
currencyUSD
weeklyDiscountPct0
monthlyDiscountPct0
specialPricing[]
reservationStatusclaimSettled
cancellation-
cancellationPolicy{"priorDays":5,"rentalPriorCheckIn":100,"rentalBeforeCheckIn":50,"rentalDuringCheckIn":0}

Expected Totals

PerspectiveBooking StateFinal Settlement State
Guest705 USD100 USD
Owner495 USD495 USD

Settlement Snapshot (Highlighted)

Final Guest RefundFinal Owner PayoutDeposit Refund After ClaimClaim DeductedFinal Guest Service FeeFinal Host Service Fee
100 USD495 USD100 USD0 USD55 USD55 USD

Service Fee Summary

MetricValue
bookingGuestServiceFee55 USD
bookingHostServiceFee55 USD
bookingTotalServiceFees110 USD
finalGuestServiceFee55 USD
finalHostServiceFee55 USD
finalTotalServiceFees110 USD

Key Claim Settlement Values

MetricValue
modeclaim_only
isClaimSettledtrue
requestedClaimAmount0 USD
claimDeductedFromDeposit0 USD
claimSecurityDepositRefund100 USD
finalGuestRefund100 USD
finalHostPayout495 USD

Line Item Delta (Booking vs Final)

CodeBooking AmountFinal AmountDelta
delivery50500
guest_service_fee55550
host_service_fee55550
rental_base5005000
security_deposit1001000

Manual Validation Checklist

  • Guest total equals subtotal + guest service fee + security deposit.
  • Owner payout equals subtotal - host service fee.
  • No cancellation or claim sections appear in itinerary UI.

UI Breakdown

guest_booking

ViewSectionItemCodeAmountFlags
guest_bookingRental Costs5 days x 110 USDrental_base_inclusive550-
guest_bookingRental CostsDelivery Feedelivery_inclusive55-
guest_bookingRental CostsSecurity Deposit (Refundable)security_deposit100-
guest_bookingTotalTotaltotal705total

guest_itinerary

ViewSectionItemCodeAmountFlags
guest_itineraryRental Costs5 days x 110 USDrental_base_inclusive550-
guest_itineraryRental CostsDelivery Feedelivery_inclusive55-
guest_itineraryRental CostsSecurity Deposit (Refundable)security_deposit100-
guest_itineraryTotalTotaltotal705total

owner_itinerary

ViewSectionItemCodeAmountFlags
owner_itineraryBooking Earnings5 days x 100 USDrental_base500-
owner_itineraryBooking EarningsDelivery Feedelivery50-
owner_itineraryDeductionsService Feehost_service_fee55deduction
owner_itineraryPayoutEstimated Payoutpayout495total

guest_receipt

ViewSectionItemCodeAmountFlags
guest_receiptRental Costs5 days x 110 USDrental_base_inclusive550-
guest_receiptRental CostsDelivery Feedelivery_inclusive55-
guest_receiptRental CostsSecurity Deposit (Refundable)security_deposit100-
guest_receiptTotalTotaltotal705total

owner_receipt

ViewSectionItemCodeAmountFlags
owner_receiptBooking Earnings5 days x 100 USDrental_base500-
owner_receiptBooking EarningsDelivery Feedelivery50-
owner_receiptDeductionsService Feehost_service_fee55deduction
owner_receiptPayoutEstimated Payoutpayout495total

S02 - Guest Cancels Before Trip Start

Guest cancels before check-in, so refund follows prior policy (100%).

Inputs

ParameterValue
startDate2026-08-10
endDate2026-08-15
startTime0
endTime0
basePrice100
securityDeposit100
deliveryFee50
isDeliverySelectedtrue
guestServiceFeePct10
hostServiceFeePct10
currencyUSD
weeklyDiscountPct0
monthlyDiscountPct0
specialPricing[]
cancellation{"date":"2026-08-01","cancelledBy":"guest"}
reservationStatusclaimSettled
cancellationPolicy{"priorDays":5,"rentalPriorCheckIn":100,"rentalBeforeCheckIn":50,"rentalDuringCheckIn":0}

Expected Totals

PerspectiveBooking StateFinal Settlement State
Guest705 USD705 USD
Owner495 USD0 USD

Settlement Snapshot (Highlighted)

Final Guest RefundFinal Owner PayoutDeposit Refund After ClaimClaim DeductedFinal Guest Service FeeFinal Host Service Fee
705 USD0 USD100 USD0 USD0 USD0 USD

Service Fee Summary

MetricValue
bookingGuestServiceFee55 USD
bookingHostServiceFee55 USD
bookingTotalServiceFees110 USD
finalGuestServiceFee0 USD
finalHostServiceFee0 USD
finalTotalServiceFees0 USD

Key Claim Settlement Values

MetricValue
modecancellation_only
isClaimSettledtrue
requestedClaimAmount0 USD
claimDeductedFromDeposit0 USD
claimSecurityDepositRefund100 USD
finalGuestRefund705 USD
finalHostPayout0 USD

Line Item Delta (Booking vs Final)

CodeBooking AmountFinal AmountDelta
delivery500-50
delivery_refund05555
guest_service_fee550-55
guest_service_fee_refund05555
host_service_fee550-55
host_service_fee_reversed05555
rental_base5000-500
rental_refund0550550
security_deposit1000-100
security_deposit_refund0100100

Manual Validation Checklist

  • Guest gets full cancellation refund including security deposit.
  • Owner cancellation payout is 0.
  • Guest cancellation UI shows rental refund, delivery refund, and deposit refund.

UI Breakdown

guest_cancellation

ViewSectionItemCodeAmountFlags
guest_cancellationRefund BreakdownRental Refundrental_refund550-
guest_cancellationRefund BreakdownDelivery Refunddelivery_refund55-
guest_cancellationRefund BreakdownSecurity Deposit Refundsecurity_deposit_refund100-
guest_cancellationTotalTotal Refundtotal_refund705total

owner_cancellation

ViewSectionItemCodeAmountFlags
owner_cancellationPayoutActual Earningspayout0total
owner_cancellationPayoutMissed Earningsmissed_earnings495total

guest_itinerary

ViewSectionItemCodeAmountFlags
guest_itineraryRefund BreakdownRental Refundrental_refund550-
guest_itineraryRefund BreakdownDelivery Refunddelivery_refund55-
guest_itineraryRefund BreakdownSecurity Deposit Refundsecurity_deposit_refund100-
guest_itineraryTotalTotal Refundtotal_refund705total

owner_itinerary

ViewSectionItemCodeAmountFlags
owner_itineraryPayoutActual Earningspayout0total
owner_itineraryPayoutMissed Earningsmissed_earnings495total

S03 - Guest Cancels After Trip Start

Guest cancels during trip, so rental refund follows during policy (0%).

Inputs

ParameterValue
startDate2026-08-10
endDate2026-08-15
startTime0
endTime0
basePrice100
securityDeposit100
deliveryFee50
isDeliverySelectedtrue
guestServiceFeePct10
hostServiceFeePct10
currencyUSD
weeklyDiscountPct0
monthlyDiscountPct0
specialPricing[]
cancellation{"date":"2026-08-12","cancelledBy":"guest"}
reservationStatusclaimSettled
cancellationPolicy{"priorDays":5,"rentalPriorCheckIn":100,"rentalBeforeCheckIn":50,"rentalDuringCheckIn":0}

Expected Totals

PerspectiveBooking StateFinal Settlement State
Guest705 USD100 USD
Owner495 USD495 USD

Settlement Snapshot (Highlighted)

Final Guest RefundFinal Owner PayoutDeposit Refund After ClaimClaim DeductedFinal Guest Service FeeFinal Host Service Fee
100 USD495 USD100 USD0 USD55 USD55 USD

Service Fee Summary

MetricValue
bookingGuestServiceFee55 USD
bookingHostServiceFee55 USD
bookingTotalServiceFees110 USD
finalGuestServiceFee55 USD
finalHostServiceFee55 USD
finalTotalServiceFees110 USD

Key Claim Settlement Values

MetricValue
modecancellation_only
isClaimSettledtrue
requestedClaimAmount0 USD
claimDeductedFromDeposit0 USD
claimSecurityDepositRefund100 USD
finalGuestRefund100 USD
finalHostPayout495 USD

Line Item Delta (Booking vs Final)

CodeBooking AmountFinal AmountDelta
delivery500-50
guest_service_fee550-55
host_service_fee550-55
rental_base5000-500
security_deposit1000-100
security_deposit_refund0100100

Manual Validation Checklist

  • Guest refund is security deposit only.
  • Owner keeps retained payout after host service fee.
  • No rental_refund item appears in guest cancellation UI for 0% during policy.

UI Breakdown

guest_cancellation

ViewSectionItemCodeAmountFlags
guest_cancellationRefund BreakdownSecurity Deposit Refundsecurity_deposit_refund100-
guest_cancellationTotalTotal Refundtotal_refund100total

owner_cancellation

ViewSectionItemCodeAmountFlags
owner_cancellationPayoutActual Earningspayout495total

guest_itinerary

ViewSectionItemCodeAmountFlags
guest_itineraryRefund BreakdownSecurity Deposit Refundsecurity_deposit_refund100-
guest_itineraryTotalTotal Refundtotal_refund100total

owner_itinerary

ViewSectionItemCodeAmountFlags
owner_itineraryPayoutActual Earningspayout495total

S04 - Owner Cancels Before Trip Start

Owner cancellation always triggers full guest refund.

Inputs

ParameterValue
startDate2026-08-10
endDate2026-08-15
startTime0
endTime0
basePrice100
securityDeposit100
deliveryFee50
isDeliverySelectedtrue
guestServiceFeePct10
hostServiceFeePct10
currencyUSD
weeklyDiscountPct0
monthlyDiscountPct0
specialPricing[]
cancellation{"date":"2026-08-01","cancelledBy":"host"}
reservationStatusclaimSettled
cancellationPolicy{"priorDays":5,"rentalPriorCheckIn":100,"rentalBeforeCheckIn":50,"rentalDuringCheckIn":0}

Expected Totals

PerspectiveBooking StateFinal Settlement State
Guest705 USD705 USD
Owner495 USD0 USD

Settlement Snapshot (Highlighted)

Final Guest RefundFinal Owner PayoutDeposit Refund After ClaimClaim DeductedFinal Guest Service FeeFinal Host Service Fee
705 USD0 USD100 USD0 USD0 USD0 USD

Service Fee Summary

MetricValue
bookingGuestServiceFee55 USD
bookingHostServiceFee55 USD
bookingTotalServiceFees110 USD
finalGuestServiceFee0 USD
finalHostServiceFee0 USD
finalTotalServiceFees0 USD

Key Claim Settlement Values

MetricValue
modecancellation_only
isClaimSettledtrue
requestedClaimAmount0 USD
claimDeductedFromDeposit0 USD
claimSecurityDepositRefund100 USD
finalGuestRefund705 USD
finalHostPayout0 USD

Line Item Delta (Booking vs Final)

CodeBooking AmountFinal AmountDelta
delivery500-50
delivery_refund05555
guest_service_fee550-55
guest_service_fee_refund05555
host_service_fee550-55
host_service_fee_reversed05555
rental_base5000-500
rental_refund0550550
security_deposit1000-100
security_deposit_refund0100100

Manual Validation Checklist

  • Guest receives full refund.
  • Owner payout is 0 after owner cancellation.
  • Owner cancellation UI shows full missed earnings.

UI Breakdown

guest_cancellation

ViewSectionItemCodeAmountFlags
guest_cancellationRefund BreakdownRental Refundrental_refund550-
guest_cancellationRefund BreakdownDelivery Refunddelivery_refund55-
guest_cancellationRefund BreakdownSecurity Deposit Refundsecurity_deposit_refund100-
guest_cancellationTotalTotal Refundtotal_refund705total

owner_cancellation

ViewSectionItemCodeAmountFlags
owner_cancellationPayoutActual Earningspayout0total
owner_cancellationPayoutMissed Earningsmissed_earnings495total

guest_itinerary

ViewSectionItemCodeAmountFlags
guest_itineraryRefund BreakdownRental Refundrental_refund550-
guest_itineraryRefund BreakdownDelivery Refunddelivery_refund55-
guest_itineraryRefund BreakdownSecurity Deposit Refundsecurity_deposit_refund100-
guest_itineraryTotalTotal Refundtotal_refund705total

owner_itinerary

ViewSectionItemCodeAmountFlags
owner_itineraryPayoutActual Earningspayout0total
owner_itineraryPayoutMissed Earningsmissed_earnings495total

S05 - Owner Cancels After Trip Start

Owner cancellation during trip still follows host-cancelled full refund behavior.

Inputs

ParameterValue
startDate2026-08-10
endDate2026-08-15
startTime0
endTime0
basePrice100
securityDeposit100
deliveryFee50
isDeliverySelectedtrue
guestServiceFeePct10
hostServiceFeePct10
currencyUSD
weeklyDiscountPct0
monthlyDiscountPct0
specialPricing[]
cancellation{"date":"2026-08-12","cancelledBy":"host"}
reservationStatusclaimSettled
cancellationPolicy{"priorDays":5,"rentalPriorCheckIn":100,"rentalBeforeCheckIn":50,"rentalDuringCheckIn":0}

Expected Totals

PerspectiveBooking StateFinal Settlement State
Guest705 USD705 USD
Owner495 USD0 USD

Settlement Snapshot (Highlighted)

Final Guest RefundFinal Owner PayoutDeposit Refund After ClaimClaim DeductedFinal Guest Service FeeFinal Host Service Fee
705 USD0 USD100 USD0 USD0 USD0 USD

Service Fee Summary

MetricValue
bookingGuestServiceFee55 USD
bookingHostServiceFee55 USD
bookingTotalServiceFees110 USD
finalGuestServiceFee0 USD
finalHostServiceFee0 USD
finalTotalServiceFees0 USD

Key Claim Settlement Values

MetricValue
modecancellation_only
isClaimSettledtrue
requestedClaimAmount0 USD
claimDeductedFromDeposit0 USD
claimSecurityDepositRefund100 USD
finalGuestRefund705 USD
finalHostPayout0 USD

Line Item Delta (Booking vs Final)

CodeBooking AmountFinal AmountDelta
delivery500-50
delivery_refund05555
guest_service_fee550-55
guest_service_fee_refund05555
host_service_fee550-55
host_service_fee_reversed05555
rental_base5000-500
rental_refund0550550
security_deposit1000-100
security_deposit_refund0100100

Manual Validation Checklist

  • Guest still receives full refund under host-cancelled policy state.
  • Owner payout remains 0 under host cancellation.
  • Policy state resolves to hostCancelled.

UI Breakdown

guest_cancellation

ViewSectionItemCodeAmountFlags
guest_cancellationRefund BreakdownRental Refundrental_refund550-
guest_cancellationRefund BreakdownDelivery Refunddelivery_refund55-
guest_cancellationRefund BreakdownSecurity Deposit Refundsecurity_deposit_refund100-
guest_cancellationTotalTotal Refundtotal_refund705total

owner_cancellation

ViewSectionItemCodeAmountFlags
owner_cancellationPayoutActual Earningspayout0total
owner_cancellationPayoutMissed Earningsmissed_earnings495total

guest_itinerary

ViewSectionItemCodeAmountFlags
guest_itineraryRefund BreakdownRental Refundrental_refund550-
guest_itineraryRefund BreakdownDelivery Refunddelivery_refund55-
guest_itineraryRefund BreakdownSecurity Deposit Refundsecurity_deposit_refund100-
guest_itineraryTotalTotal Refundtotal_refund705total

owner_itinerary

ViewSectionItemCodeAmountFlags
owner_itineraryPayoutActual Earningspayout0total
owner_itineraryPayoutMissed Earningsmissed_earnings495total

S06 - Claim Settled on Completion (Claim <= Deposit)

Completed reservation with settled claim that is lower than security deposit.

Inputs

ParameterValue
startDate2026-08-10
endDate2026-08-15
startTime0
endTime0
basePrice100
securityDeposit100
deliveryFee50
isDeliverySelectedtrue
guestServiceFeePct10
hostServiceFeePct10
currencyUSD
weeklyDiscountPct0
monthlyDiscountPct0
specialPricing[]
reservationStatusclaimSettled
claimRequestedAmount40
cancellation-
cancellationPolicy{"priorDays":5,"rentalPriorCheckIn":100,"rentalBeforeCheckIn":50,"rentalDuringCheckIn":0}

Expected Totals

PerspectiveBooking StateFinal Settlement State
Guest705 USD60 USD
Owner535 USD535 USD

Settlement Snapshot (Highlighted)

Final Guest RefundFinal Owner PayoutDeposit Refund After ClaimClaim DeductedFinal Guest Service FeeFinal Host Service Fee
60 USD535 USD60 USD40 USD55 USD55 USD

Service Fee Summary

MetricValue
bookingGuestServiceFee55 USD
bookingHostServiceFee55 USD
bookingTotalServiceFees110 USD
finalGuestServiceFee55 USD
finalHostServiceFee55 USD
finalTotalServiceFees110 USD

Key Claim Settlement Values

MetricValue
modeclaim_only
isClaimSettledtrue
requestedClaimAmount40 USD
claimDeductedFromDeposit40 USD
claimSecurityDepositRefund60 USD
finalGuestRefund60 USD
finalHostPayout535 USD

Line Item Delta (Booking vs Final)

CodeBooking AmountFinal AmountDelta
claim_added_to_payout40400
claim_deducted_from_security_deposit40400
claim_security_deposit_refund60600
delivery50500
guest_service_fee55550
host_service_fee55550
rental_base5005000
security_deposit1001000

Manual Validation Checklist

  • Claim deducted amount equals requested claim.
  • Guest deposit refund after claim equals deposit - claim.
  • Owner payout increases by deducted claim amount.

UI Breakdown

guest_booking

ViewSectionItemCodeAmountFlags
guest_bookingRental Costs5 days x 110 USDrental_base_inclusive550-
guest_bookingRental CostsDelivery Feedelivery_inclusive55-
guest_bookingRental CostsSecurity Deposit (Refundable)security_deposit100-
guest_bookingClaim SettlementClaim Deducted from Security Depositclaim_deducted_from_security_deposit40deduction
guest_bookingClaim SettlementSecurity Deposit Refund (After Claim Settlement)claim_security_deposit_refund60-
guest_bookingTotalTotaltotal705total

guest_itinerary

ViewSectionItemCodeAmountFlags
guest_itineraryRental Costs5 days x 110 USDrental_base_inclusive550-
guest_itineraryRental CostsDelivery Feedelivery_inclusive55-
guest_itineraryRental CostsSecurity Deposit (Refundable)security_deposit100-
guest_itineraryClaim SettlementClaim Deducted from Security Depositclaim_deducted_from_security_deposit40deduction
guest_itineraryClaim SettlementSecurity Deposit Refund (After Claim Settlement)claim_security_deposit_refund60-
guest_itineraryTotalTotaltotal705total

owner_itinerary

ViewSectionItemCodeAmountFlags
owner_itineraryBooking Earnings5 days x 100 USDrental_base500-
owner_itineraryBooking EarningsDelivery Feedelivery50-
owner_itineraryDeductionsService Feehost_service_fee55deduction
owner_itineraryClaim SettlementClaim Added to Payoutclaim_added_to_payout40-
owner_itineraryPayoutEstimated Payoutpayout535total

guest_receipt

ViewSectionItemCodeAmountFlags
guest_receiptRental Costs5 days x 110 USDrental_base_inclusive550-
guest_receiptRental CostsDelivery Feedelivery_inclusive55-
guest_receiptRental CostsSecurity Deposit (Refundable)security_deposit100-
guest_receiptClaim SettlementClaim Deducted from Security Depositclaim_deducted_from_security_deposit40deduction
guest_receiptClaim SettlementSecurity Deposit Refund (After Claim Settlement)claim_security_deposit_refund60-
guest_receiptTotalTotaltotal705total

owner_receipt

ViewSectionItemCodeAmountFlags
owner_receiptBooking Earnings5 days x 100 USDrental_base500-
owner_receiptBooking EarningsDelivery Feedelivery50-
owner_receiptDeductionsService Feehost_service_fee55deduction
owner_receiptClaim SettlementClaim Added to Payoutclaim_added_to_payout40-
owner_receiptPayoutEstimated Payoutpayout535total

S07 - Claim Settled on Completion (Claim > Deposit)

Completed reservation with settled claim greater than security deposit.

Inputs

ParameterValue
startDate2026-08-10
endDate2026-08-15
startTime0
endTime0
basePrice100
securityDeposit100
deliveryFee50
isDeliverySelectedtrue
guestServiceFeePct10
hostServiceFeePct10
currencyUSD
weeklyDiscountPct0
monthlyDiscountPct0
specialPricing[]
reservationStatusclaimSettled
claimRequestedAmount180
cancellation-
cancellationPolicy{"priorDays":5,"rentalPriorCheckIn":100,"rentalBeforeCheckIn":50,"rentalDuringCheckIn":0}

Expected Totals

PerspectiveBooking StateFinal Settlement State
Guest705 USD0 USD
Owner595 USD595 USD

Settlement Snapshot (Highlighted)

Final Guest RefundFinal Owner PayoutDeposit Refund After ClaimClaim DeductedFinal Guest Service FeeFinal Host Service Fee
0 USD595 USD0 USD100 USD55 USD55 USD

Service Fee Summary

MetricValue
bookingGuestServiceFee55 USD
bookingHostServiceFee55 USD
bookingTotalServiceFees110 USD
finalGuestServiceFee55 USD
finalHostServiceFee55 USD
finalTotalServiceFees110 USD

Key Claim Settlement Values

MetricValue
modeclaim_only
isClaimSettledtrue
requestedClaimAmount180 USD
claimDeductedFromDeposit100 USD
claimSecurityDepositRefund0 USD
finalGuestRefund0 USD
finalHostPayout595 USD

Line Item Delta (Booking vs Final)

CodeBooking AmountFinal AmountDelta
claim_added_to_payout1001000
claim_deducted_from_security_deposit1001000
claim_security_deposit_refund000
delivery50500
guest_service_fee55550
host_service_fee55550
rental_base5005000
security_deposit1001000

Manual Validation Checklist

  • Claim deducted amount is capped at security deposit.
  • Guest deposit refund after claim is 0.
  • Owner payout increase is capped by deposit amount.

UI Breakdown

guest_booking

ViewSectionItemCodeAmountFlags
guest_bookingRental Costs5 days x 110 USDrental_base_inclusive550-
guest_bookingRental CostsDelivery Feedelivery_inclusive55-
guest_bookingRental CostsSecurity Deposit (Refundable)security_deposit100-
guest_bookingClaim SettlementClaim Deducted from Security Depositclaim_deducted_from_security_deposit100deduction
guest_bookingClaim SettlementSecurity Deposit Refund (After Claim Settlement)claim_security_deposit_refund0-
guest_bookingTotalTotaltotal705total

guest_itinerary

ViewSectionItemCodeAmountFlags
guest_itineraryRental Costs5 days x 110 USDrental_base_inclusive550-
guest_itineraryRental CostsDelivery Feedelivery_inclusive55-
guest_itineraryRental CostsSecurity Deposit (Refundable)security_deposit100-
guest_itineraryClaim SettlementClaim Deducted from Security Depositclaim_deducted_from_security_deposit100deduction
guest_itineraryClaim SettlementSecurity Deposit Refund (After Claim Settlement)claim_security_deposit_refund0-
guest_itineraryTotalTotaltotal705total

owner_itinerary

ViewSectionItemCodeAmountFlags
owner_itineraryBooking Earnings5 days x 100 USDrental_base500-
owner_itineraryBooking EarningsDelivery Feedelivery50-
owner_itineraryDeductionsService Feehost_service_fee55deduction
owner_itineraryClaim SettlementClaim Added to Payoutclaim_added_to_payout100-
owner_itineraryPayoutEstimated Payoutpayout595total

guest_receipt

ViewSectionItemCodeAmountFlags
guest_receiptRental Costs5 days x 110 USDrental_base_inclusive550-
guest_receiptRental CostsDelivery Feedelivery_inclusive55-
guest_receiptRental CostsSecurity Deposit (Refundable)security_deposit100-
guest_receiptClaim SettlementClaim Deducted from Security Depositclaim_deducted_from_security_deposit100deduction
guest_receiptClaim SettlementSecurity Deposit Refund (After Claim Settlement)claim_security_deposit_refund0-
guest_receiptTotalTotaltotal705total

owner_receipt

ViewSectionItemCodeAmountFlags
owner_receiptBooking Earnings5 days x 100 USDrental_base500-
owner_receiptBooking EarningsDelivery Feedelivery50-
owner_receiptDeductionsService Feehost_service_fee55deduction
owner_receiptClaim SettlementClaim Added to Payoutclaim_added_to_payout100-
owner_receiptPayoutEstimated Payoutpayout595total

S08 - Guest Cancellation Exactly on Prior Boundary Day

Cancellation date is exactly startDate - priorDays and must be treated as prior policy.

Inputs

ParameterValue
startDate2026-08-10
endDate2026-08-15
startTime0
endTime0
basePrice100
securityDeposit100
deliveryFee50
isDeliverySelectedtrue
guestServiceFeePct10
hostServiceFeePct10
currencyUSD
weeklyDiscountPct0
monthlyDiscountPct0
specialPricing[]
cancellation{"date":"2026-08-05","cancelledBy":"guest"}
reservationStatusclaimSettled
cancellationPolicy{"priorDays":5,"rentalPriorCheckIn":100,"rentalBeforeCheckIn":50,"rentalDuringCheckIn":0}

Expected Totals

PerspectiveBooking StateFinal Settlement State
Guest705 USD705 USD
Owner495 USD0 USD

Settlement Snapshot (Highlighted)

Final Guest RefundFinal Owner PayoutDeposit Refund After ClaimClaim DeductedFinal Guest Service FeeFinal Host Service Fee
705 USD0 USD100 USD0 USD0 USD0 USD

Service Fee Summary

MetricValue
bookingGuestServiceFee55 USD
bookingHostServiceFee55 USD
bookingTotalServiceFees110 USD
finalGuestServiceFee0 USD
finalHostServiceFee0 USD
finalTotalServiceFees0 USD

Key Claim Settlement Values

MetricValue
modecancellation_only
isClaimSettledtrue
requestedClaimAmount0 USD
claimDeductedFromDeposit0 USD
claimSecurityDepositRefund100 USD
finalGuestRefund705 USD
finalHostPayout0 USD

Line Item Delta (Booking vs Final)

CodeBooking AmountFinal AmountDelta
delivery500-50
delivery_refund05555
guest_service_fee550-55
guest_service_fee_refund05555
host_service_fee550-55
host_service_fee_reversed05555
rental_base5000-500
rental_refund0550550
security_deposit1000-100
security_deposit_refund0100100

Manual Validation Checklist

  • Policy state resolves to prior (not before).
  • Guest receives full cancellation refund.
  • Owner payout is 0.

UI Breakdown

guest_cancellation

ViewSectionItemCodeAmountFlags
guest_cancellationRefund BreakdownRental Refundrental_refund550-
guest_cancellationRefund BreakdownDelivery Refunddelivery_refund55-
guest_cancellationRefund BreakdownSecurity Deposit Refundsecurity_deposit_refund100-
guest_cancellationTotalTotal Refundtotal_refund705total

owner_cancellation

ViewSectionItemCodeAmountFlags
owner_cancellationPayoutActual Earningspayout0total
owner_cancellationPayoutMissed Earningsmissed_earnings495total

guest_itinerary

ViewSectionItemCodeAmountFlags
guest_itineraryRefund BreakdownRental Refundrental_refund550-
guest_itineraryRefund BreakdownDelivery Refunddelivery_refund55-
guest_itineraryRefund BreakdownSecurity Deposit Refundsecurity_deposit_refund100-
guest_itineraryTotalTotal Refundtotal_refund705total

owner_itinerary

ViewSectionItemCodeAmountFlags
owner_itineraryPayoutActual Earningspayout0total
owner_itineraryPayoutMissed Earningsmissed_earnings495total

S09 - Cancellation + Claim Settled (Claim > Deposit)

Cancellation settlement with claim settled and requested amount above deposit.

Inputs

ParameterValue
startDate2026-08-10
endDate2026-08-15
startTime0
endTime0
basePrice100
securityDeposit100
deliveryFee50
isDeliverySelectedtrue
guestServiceFeePct10
hostServiceFeePct10
currencyUSD
weeklyDiscountPct0
monthlyDiscountPct0
specialPricing[]
cancellation{"date":"2026-08-12","cancelledBy":"guest"}
reservationStatusclaimSettled
claimRequestedAmount180
cancellationPolicy{"priorDays":5,"rentalPriorCheckIn":100,"rentalBeforeCheckIn":50,"rentalDuringCheckIn":0}

Expected Totals

PerspectiveBooking StateFinal Settlement State
Guest705 USD0 USD
Owner595 USD595 USD

Settlement Snapshot (Highlighted)

Final Guest RefundFinal Owner PayoutDeposit Refund After ClaimClaim DeductedFinal Guest Service FeeFinal Host Service Fee
0 USD595 USD0 USD100 USD55 USD55 USD

Service Fee Summary

MetricValue
bookingGuestServiceFee55 USD
bookingHostServiceFee55 USD
bookingTotalServiceFees110 USD
finalGuestServiceFee55 USD
finalHostServiceFee55 USD
finalTotalServiceFees110 USD

Key Claim Settlement Values

MetricValue
modecancellation_with_claim
isClaimSettledtrue
requestedClaimAmount180 USD
claimDeductedFromDeposit100 USD
claimSecurityDepositRefund0 USD
finalGuestRefund0 USD
finalHostPayout595 USD

Line Item Delta (Booking vs Final)

CodeBooking AmountFinal AmountDelta
claim_added_to_payout1001000
claim_deducted_from_security_deposit1001000
claim_security_deposit_refund000
delivery500-50
guest_service_fee550-55
host_service_fee550-55
rental_base5000-500
security_deposit1000-100
security_deposit_refund0100100

Manual Validation Checklist

  • Cancellation refund is reduced by claim deduction.
  • Guest final refund excludes deposit when claim consumes full deposit.
  • Owner cancellation payout includes only capped claim amount if rental refund is 0%.

UI Breakdown

guest_cancellation

ViewSectionItemCodeAmountFlags
guest_cancellationRefund BreakdownSecurity Deposit Refundsecurity_deposit_refund100-
guest_cancellationClaim SettlementClaim Deducted from Security Depositclaim_deducted_from_security_deposit100deduction
guest_cancellationClaim SettlementSecurity Deposit Refund (After Claim Settlement)claim_security_deposit_refund0-
guest_cancellationTotalTotal Refundtotal_refund0total

owner_cancellation

ViewSectionItemCodeAmountFlags
owner_cancellationClaim SettlementClaim Added to Payoutclaim_added_to_payout100-
owner_cancellationPayoutActual Earningspayout595total

guest_itinerary

ViewSectionItemCodeAmountFlags
guest_itineraryRefund BreakdownSecurity Deposit Refundsecurity_deposit_refund100-
guest_itineraryClaim SettlementClaim Deducted from Security Depositclaim_deducted_from_security_deposit100deduction
guest_itineraryClaim SettlementSecurity Deposit Refund (After Claim Settlement)claim_security_deposit_refund0-
guest_itineraryTotalTotal Refundtotal_refund0total

owner_itinerary

ViewSectionItemCodeAmountFlags
owner_itineraryClaim SettlementClaim Added to Payoutclaim_added_to_payout100-
owner_itineraryPayoutActual Earningspayout595total

S10 - Claim Settled with Zero Security Deposit

Claim settlement should have no effect when security deposit is zero.

Inputs

ParameterValue
startDate2026-08-10
endDate2026-08-15
startTime0
endTime0
basePrice100
securityDeposit0
deliveryFee50
isDeliverySelectedtrue
guestServiceFeePct10
hostServiceFeePct10
currencyUSD
weeklyDiscountPct0
monthlyDiscountPct0
specialPricing[]
reservationStatusclaimSettled
claimRequestedAmount50
cancellation-
cancellationPolicy{"priorDays":5,"rentalPriorCheckIn":100,"rentalBeforeCheckIn":50,"rentalDuringCheckIn":0}

Expected Totals

PerspectiveBooking StateFinal Settlement State
Guest605 USD0 USD
Owner495 USD495 USD

Settlement Snapshot (Highlighted)

Final Guest RefundFinal Owner PayoutDeposit Refund After ClaimClaim DeductedFinal Guest Service FeeFinal Host Service Fee
0 USD495 USD0 USD0 USD55 USD55 USD

Service Fee Summary

MetricValue
bookingGuestServiceFee55 USD
bookingHostServiceFee55 USD
bookingTotalServiceFees110 USD
finalGuestServiceFee55 USD
finalHostServiceFee55 USD
finalTotalServiceFees110 USD

Key Claim Settlement Values

MetricValue
modeclaim_only
isClaimSettledtrue
requestedClaimAmount50 USD
claimDeductedFromDeposit0 USD
claimSecurityDepositRefund0 USD
finalGuestRefund0 USD
finalHostPayout495 USD

Line Item Delta (Booking vs Final)

CodeBooking AmountFinal AmountDelta
delivery50500
guest_service_fee55550
host_service_fee55550
rental_base5005000

Manual Validation Checklist

  • No claim deduction is applied when deposit is zero.
  • Owner payout stays equal to base payout.
  • Guest claim settlement section is empty.

UI Breakdown

guest_booking

ViewSectionItemCodeAmountFlags
guest_bookingRental Costs5 days x 110 USDrental_base_inclusive550-
guest_bookingRental CostsDelivery Feedelivery_inclusive55-
guest_bookingTotalTotaltotal605total

guest_itinerary

ViewSectionItemCodeAmountFlags
guest_itineraryRental Costs5 days x 110 USDrental_base_inclusive550-
guest_itineraryRental CostsDelivery Feedelivery_inclusive55-
guest_itineraryTotalTotaltotal605total

owner_itinerary

ViewSectionItemCodeAmountFlags
owner_itineraryBooking Earnings5 days x 100 USDrental_base500-
owner_itineraryBooking EarningsDelivery Feedelivery50-
owner_itineraryDeductionsService Feehost_service_fee55deduction
owner_itineraryPayoutEstimated Payoutpayout495total

guest_receipt

ViewSectionItemCodeAmountFlags
guest_receiptRental Costs5 days x 110 USDrental_base_inclusive550-
guest_receiptRental CostsDelivery Feedelivery_inclusive55-
guest_receiptTotalTotaltotal605total

owner_receipt

ViewSectionItemCodeAmountFlags
owner_receiptBooking Earnings5 days x 100 USDrental_base500-
owner_receiptBooking EarningsDelivery Feedelivery50-
owner_receiptDeductionsService Feehost_service_fee55deduction
owner_receiptPayoutEstimated Payoutpayout495total

S11 - Special Pricing During-Cancellation Proration

During-trip cancellation with special prices and 100% during policy should refund remaining special nights.

Inputs

ParameterValue
startDate2026-09-01
endDate2026-09-06
startTime0
endTime0
basePrice100
securityDeposit100
deliveryFee50
isDeliverySelectedtrue
guestServiceFeePct10
hostServiceFeePct10
currencyUSD
weeklyDiscountPct0
monthlyDiscountPct0
specialPricing[{"blockedDates":"2026-09-04","isSpecialPrice":200},{"blockedDates":"2026-09-05","isSpecialPrice":200}]
cancellation{"date":"2026-09-04","cancelledBy":"guest"}
reservationStatusclaimSettled
cancellationPolicy{"priorDays":5,"rentalPriorCheckIn":100,"rentalBeforeCheckIn":50,"rentalDuringCheckIn":100}

Expected Totals

PerspectiveBooking StateFinal Settlement State
Guest925 USD540 USD
Owner675 USD315 USD

Settlement Snapshot (Highlighted)

Final Guest RefundFinal Owner PayoutDeposit Refund After ClaimClaim DeductedFinal Guest Service FeeFinal Host Service Fee
540 USD315 USD100 USD0 USD35 USD35 USD

Service Fee Summary

MetricValue
bookingGuestServiceFee75 USD
bookingHostServiceFee75 USD
bookingTotalServiceFees150 USD
finalGuestServiceFee35 USD
finalHostServiceFee35 USD
finalTotalServiceFees70 USD

Key Claim Settlement Values

MetricValue
modecancellation_only
isClaimSettledtrue
requestedClaimAmount0 USD
claimDeductedFromDeposit0 USD
claimSecurityDepositRefund100 USD
finalGuestRefund540 USD
finalHostPayout315 USD

Line Item Delta (Booking vs Final)

CodeBooking AmountFinal AmountDelta
delivery500-50
guest_service_fee750-75
guest_service_fee_refund04040
host_service_fee750-75
host_service_fee_reversed04040
rental_base7000-700
rental_refund0440440
security_deposit1000-100
security_deposit_refund0100100

Manual Validation Checklist

  • Remaining nights use actual nightly prices (including special pricing).
  • Refunded rental amount equals sum of remaining nightly rates.
  • Owner retained payout reflects only consumed nights after host fee.

UI Breakdown

guest_cancellation

ViewSectionItemCodeAmountFlags
guest_cancellationRefund BreakdownRental Refundrental_refund440-
guest_cancellationRefund BreakdownSecurity Deposit Refundsecurity_deposit_refund100-
guest_cancellationTotalTotal Refundtotal_refund540total

owner_cancellation

ViewSectionItemCodeAmountFlags
owner_cancellationPayoutActual Earningspayout315total
owner_cancellationPayoutMissed Earningsmissed_earnings360total

guest_itinerary

ViewSectionItemCodeAmountFlags
guest_itineraryRefund BreakdownRental Refundrental_refund440-
guest_itineraryRefund BreakdownSecurity Deposit Refundsecurity_deposit_refund100-
guest_itineraryTotalTotal Refundtotal_refund540total

owner_itinerary

ViewSectionItemCodeAmountFlags
owner_itineraryPayoutActual Earningspayout315total
owner_itineraryPayoutMissed Earningsmissed_earnings360total