settle
<tool_description> Settle pending payments for media buys. Supports manual CSV export, Stripe invoice (Phase 2 stub), and x402 micropayments (Phase 2 stub). </tool_description>
<when_to_use> When a publisher wants to collect earned revenue or an advertiser needs to settle outstanding charges. Use method='manual' for CSV export. Stripe and x402 are stubs (Phase 2). </when_to_use>
<combination_hints> get_campaign_report → settle (after verifying amounts). Filter by media_buy_id, publisher_id, or period. </combination_hints>
<output_format> Settlement totals (gross, platform fee, net), entry count, and method-specific data (CSV for manual). </output_format>
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | Settlement method | |
| period_end | No | Period end (ISO 8601) | |
| media_buy_id | No | Settle specific media buy | |
| period_start | No | Period start (ISO 8601) | |
| publisher_id | No | Settle all for a publisher |