Lotus
Type to search documentation.
Statistics

Get revenue statistics

Retrieve revenue statistics for a configurable date range. Returns revenue, order counts, average order amount, and other useful statistics.

get/revenue

Security

This operation accepts the following authorization requirements.

Required credentials

One credential is required.
ApiKeyapiKey

API key for internal operations.

Request

Query parameters

startDatestring:date

Start date for the revenue calculation period (ISO 8601 datetime format). Defaults to 30 days ago if not provided.

endDatestring:date

End date for the revenue calculation period (ISO 8601 datetime format). Defaults to current time if not provided.

Response

Revenue statistics retrieved successfully.

revenuenumber:floatrequired

Total revenue in cents from completed orders.

averageOrderAmountnumber:floatrequired

Average order amount in cents (calculated from completed orders only).

totalOrdersintegerrequired

Total number of orders (all statuses) in the date range.

placedOrdersintegerrequired

Number of placed orders.

preparingOrdersintegerrequired

Number of preparing orders.

completedOrdersintegerrequired

Number of completed orders.

canceledOrdersintegerrequired

Number of canceled orders.

startDatestring:daterequired

Start date of the revenue calculation period.

endDatestring:daterequired

End date of the revenue calculation period.