Get revenue
get_revenueRevenue from every payment provider connected to the Lomen account (Stripe, Shopify, Lemon Squeezy, Polar, Paystack), added together the way the dashboard's income line and Money made tab show it: which providers are connected, gross, refunds, net and number of payments for the last 30 days, net earned today, net and payments for the chosen period with the change against the period before, net and payments per day, the month's goal and whether the month is on pace for it, the weekday that earns most on average, the best-earning days with that day's visitors and revenue per visitor, and whether revenue tends to move with traffic. Amounts are in the currency's main unit (dollars, not cents) and in the primary currency only; days are UTC. Revenue belongs to the account, not to one site; site matters only for a site shared through a team, whose owner's revenue is then read if the role allows it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_revenue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Which site: its domain (for example example.com) or its id from list_sites. Leave it out for the account's first site. | |
| range | No | The period for the period totals and best days. Defaults to 30 days. |