List gross revenue
Changed onGross revenue is the monthly sum of the totals of finalized invoices and of the amounts of the fees paid in advance that are not attached to an invoice. Invoice totals include taxes, are net of coupons, and are reduced by the amounts refunded through credit notes. Self-billed invoices and invoices with a lost payment dispute are excluded.
Request
- Base URLhttps://api.getlago.com/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Currency of revenue analytics. Format must be ISO 4217.
The customer external unique identifier (provided by your own application). Use it to filter revenue analytics at the customer level.
Restrict the analytics to a single billing entity, identified by its code. An unknown code is ignored and the analytics cover the whole organization.
Show data only for given number of months.
Response
Gross revenue
Example response
{
"gross_revenues": [
{
"month": "2023-11-01T00:00:00.000Z",
"amount_cents": 50000,
"currency": "USD",
"invoices_count": 10,
"billing_entity_id": "1a901a90-1a90-1a90-1a90-1a901a901a90"
}
]
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking