What problem does it solve? Handling refunds and chargebacks correctly is error-prone: developers must track refund statuses, respond to a seven-event dispute lifecycle, and reconcile customer access after payment reversals, all while Dodo Payments acts as Merchant of Record. ## Core Features & Use Cases - Refund Management: Create full or item-level partial refunds, list and retrieve refunds, and interpret the four refund statuses (pending, succeeded, review, failed). - Dispute Lifecycle Handling: Process all seven dispute webhook events (opened, challenged, accepted, cancelled, expired, won, lost) with correct access-control actions for each. - Entitlement Reconciliation: Revoke or restore customer access based on refund success and dispute outcomes, including per-item tracking for partial refunds. - Use Case: A customer opens a chargeback on a subscription payment. Your webhook handler receives dispute.opened, resolves the customer via an extra disputes.retrieve() call, revokes their access, and you submit evidence through the Dodo dashboard within the dispute window. ## Quick Start Ask your agent to implement a Dodo Payments webhook handler that processes refund and dispute events and revokes customer access when a dispute opens.