What problem does it solve? Integrating customer lifecycle operations with Dodo Payments requires handling many distinct APIs—customer CRUD, hosted portal sessions, saved payment methods, wallet ledgers, and entitlements—while avoiding pitfalls like duplicate customers, non-idempotent wallet mutations, and rebuilt billing UIs. ## Core Features & Use Cases - Customer CRUD and Linking: Create, list, retrieve, and update customer records, and link them to your app's user records via stored IDs or metadata. - Hosted Customer Portal: Generate time-bound portal sessions so customers can view invoices, cancel subscriptions, change plans, and update payment methods without building custom UI. - Wallets and Entitlements: Manage real-money wallet balances with idempotent ledger entries, and read credit balances, feature entitlements, and grant revocation status. - Use Case: When a user requests a refund, create an idempotent wallet ledger entry crediting their USD balance, then send them a portal session link to review their invoices and subscriptions. ## Quick Start Ask your agent to create a Dodo Payments customer, generate a customer portal session link, and add an idempotent credit to the customer's wallet.