Agent Wallet Operations
agent-walletManage the wallet for the authenticated user.
Actions: balance (view wallet balance), fund (add funds via Stripe payment),
confirm-checkout (confirm a Stripe checkout session), payment-status (check payment intent status),
auto-funding (configure auto-recharge), disable-auto-funding, withdraw (reseller only),
validate-coupon, redeem-coupon.
Fund with payment_method_id charges immediately; without it creates a Stripe checkout session.
All actions require authentication.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The wallet action: balance, fund, confirm-checkout, payment-status, auto-funding, disable-auto-funding, withdraw, validate-coupon, redeem-coupon | |
| amount | No | Amount in USD, minimum $15 for fund (required for fund, withdraw) | |
| session_id | No | Stripe checkout session ID (required for confirm-checkout) | |
| coupon_code | No | Coupon code (required for validate-coupon, redeem-coupon) | |
| idempotency_key | No | Idempotency key for mutation actions (optional — auto-generated if omitted for fund, auto-funding, redeem-coupon) | |
| purchase_amount | No | Purchase amount for bonus coupons (optional for validate-coupon, required for bonus coupon redeem) | |
| charge_threshold | No | Balance threshold to trigger auto charge, min $1 (required for auto-funding) | |
| payment_intent_id | No | Stripe payment intent ID (required for payment-status) | |
| payment_method_id | No | Stripe payment method ID (optional for fund — charges immediately if provided, otherwise creates checkout session; required for bonus coupon redeem) | |
| auto_charge_amount | No | Auto charge amount, min $5 (required for auto-funding) | |
| auto_recharge_amount | No | Auto recharge amount (optional for fund) | |
| auto_recharge_threshold | No | Auto recharge threshold (optional for fund) |