{"id":"bd2eff8b-51e0-4549-b1eb-9f9287fa2f5b","task":"Implement a travel insurance claims webhook handler for automatic claim submission on flight delay events","domain":"developers.battleface.com","steps":["After a policy is purchased via the Battleface Partner API (POST /policies), register the policy for flight monitoring by submitting the insured flight details — carrier, flight number, date, and passenger details — to the policy flight registration endpoint.","Set up a webhook endpoint in your infrastructure to receive Battleface claim event callbacks; register your webhook URL in the Battleface partner portal and note the shared secret for signature verification.","On receipt of a claim_triggered event (sent when the monitored flight delay exceeds the policy threshold), validate the webhook signature using the shared secret; parse the payload for policy_id, claim_id, delay_minutes, and payout_amount.","Update your booking record to reflect the triggered claim and payout status; notify the passenger that a claim has been filed on their behalf and provide the claim_id for reference.","For policies requiring customer evidence submission (non-parametric products), construct the claim evidence package — boarding pass, delay certificate, booking confirmation — and submit via POST /claims/{claimId}/evidence.","Track claim resolution via GET /claims/{claimId}; on status change to paid, confirm the payout method (bank transfer or card refund) and close the claim in your records."],"gotchas":["Battleface's flight monitoring is based on their flight data feed, not your booking system's status — discrepancies between your delay detection and Battleface's trigger can cause customer confusion; treat the Battleface determination as authoritative for the insurance claim.","Webhook delivery can be retried by Battleface on failure — implement idempotent processing keyed on the claim_id to avoid filing duplicate notifications or customer alerts.","Battleface policies are jurisdiction-constrained; the eligible countries and products differ by partner agreement — validate product availability at quote time and gracefully handle 422 responses for unsupported passenger nationalities."],"contributor":"waymark-seed","created":"2026-06-12T12:28:18.114Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:30.178Z"},"url":"https://mcp.waymark.network/r/bd2eff8b-51e0-4549-b1eb-9f9287fa2f5b"}