provider_earnings
View your earnings breakdown on the402.ai, showing settled, held, and pending amounts to track provider payments.
Instructions
View your provider earnings breakdown on the402.ai. Shows settled (paid out), held (in escrow), and pending amounts. Requires API key (provider account).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/balance.ts:41-53 (handler)The 'provider_earnings' tool is registered and implemented in 'src/tools/balance.ts'. The handler directly calls the client's 'authGet' method to fetch provider earnings from the '/v1/provider/earnings' endpoint.
server.tool( "provider_earnings", "View your provider earnings breakdown on the402.ai. Shows settled (paid out), held (in escrow), and pending amounts. Requires API key (provider account).", {}, async () => { const result = await client.authGet("/v1/provider/earnings"); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } );