web
GET
https://lucidace.com /v1/projects/{project_id}/web/revenue/deferred Scope insight:readParameters
project_idstringpathrequiredfromstringpathrequiredtostringpathrequiredmonths_aheadintegerpathrequiredFuture months shown after
to (0..=36, default 12).Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/revenue/deferred"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"base_currency": "string",
"deferred_balance": 0,
"future_total": 0,
"items": [
{
"amount": 0,
"amount_base": 0,
"billed_at": "2024-01-01T00:00:00Z",
"currency": "string",
"period_end": "2024-01-01T00:00:00Z",
"period_start": "2024-01-01T00:00:00Z"
}
],
"rows": [
{
"billed": 0,
"deferred_end": 0,
"end": "2024-01-01T00:00:00Z",
"future": true,
"recognized": 0,
"start": "2024-01-01T00:00:00Z"
}
],
"unconverted_lines": 0
}Schema
base_currencystringrequireddeferred_balancenumberrequiredBilled but not yet earned at
to.future_totalnumberrequiredRecognized in the future months.
itemsRevenueItem[]requiredLines billed in the range (first 500), newest first.
Show child parameters
amountnumberrequiredamount_basenumberrequiredbilled_atstringrequiredcurrencystringrequiredperiod_endstringrequiredperiod_startstringrequiredrowsDeferredRevenueRow[]requiredShow child parameters
billednumberrequiredBilled in the month (cash).
deferred_endnumberrequiredBilled by the month end, earned later.
endstringrequiredfuturebooleanrequiredThe month starts after
to: what is already billed and will be recognized then.recognizednumberrequiredEarned in the month (accrual).
startstringrequiredunconverted_linesintegerrequired400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/web/revenue/lifetime Scope insight:readParameters
project_idstringpathrequiredbystringpathrequiredperson (default) or group.group_type_indexintegerpathrequiredGroup type index 0..=4 for
by=group.keystringpathrequiredOne key only (a person id or group key), e.g. for a person page.
limitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/revenue/lifetime"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of LifetimeRevenue, highest revenue first (empty before the first refresh)
Example
{
"data": [
{
"computed_at": "2024-01-01T00:00:00Z",
"first_day": "string",
"key": "string",
"last_day": "string",
"purchases": 0,
"revenue": 0
}
],
"next_cursor": "string"
}Schema
dataLifetimeRevenue[]requiredShow child parameters
computed_atstringWhen this refresh was computed.
first_daystringrequiredkeystringrequiredPerson id, or the group key.
last_daystringrequiredpurchasesintegerrequiredrevenuenumberrequiredAll-time revenue in the base currency.
next_cursorstring400
404
503
POST
https://lucidace.com /v1/projects/{project_id}/web/revenue/lifetime/refresh Scope insight:writeParameters
project_idstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/web/revenue/lifetime/refresh"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"computed_at": "2024-01-01T00:00:00Z",
"unconverted_purchases": 0,
"written": {}
}Schema
computed_atstringrequiredunconverted_purchasesintegerrequiredRevenue rows in a currency without a rate (left out).
writtenobjectrequiredRows written per kind (
person, group0..group4).403
404
503
GET
https://lucidace.com /v1/projects/{project_id}/web/revenue/mrr Scope insight:readParameters
project_idstringpathrequiredfromstringquerytostringqueryintervalstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/revenue/mrr"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"base_currency": "string",
"current": {
"arpu": 0,
"arr": 0,
"customers": 0,
"ltv": 0,
"mrr": 0
},
"rows": [
{
"arr": 0,
"churned_mrr": 0,
"churned_subscriptions": 0,
"closing_mrr": 0,
"closing_subscriptions": 0,
"contraction_mrr": 0,
"end": "2024-01-01T00:00:00Z",
"expansion_mrr": 0,
"new_mrr": 0,
"new_subscriptions": 0,
"opening_mrr": 0,
"opening_subscriptions": 0,
"start": "2024-01-01T00:00:00Z"
}
],
"unconverted_events": 0
}Schema
base_currencystringrequiredcurrentobjectrequiredPosition at the end of the last period.
Show child parameters
arpunumberMRR per active customer.
arrnumberrequiredcustomersintegerrequiredltvnumberARPU / churn, with churn the last period's churned share of opening subscriptions; null without churn.
mrrnumberrequiredrowsMrrRow[]requiredShow child parameters
arrnumberrequiredclosing_mrr * 12.churned_mrrnumberrequiredchurned_subscriptionsintegerrequiredclosing_mrrnumberrequiredclosing_subscriptionsintegerrequiredcontraction_mrrnumberrequiredendstringrequiredexpansion_mrrnumberrequirednew_mrrnumberrequirednew_subscriptionsintegerrequiredopening_mrrnumberrequiredopening_subscriptionsintegerrequiredstartstringrequiredunconverted_eventsintegerrequiredSubscription events dropped for lacking a rate for their currency.
400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/web/revenue/rates Scope insight:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/revenue/rates"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"rates": [
{
"currency": "string",
"rate": 0
}
]
}Schema
ratesFxRate[]required1 unit of
currency = rate units of the base currency.Show child parameters
currencystringrequiredratenumberrequired404
PUT
https://lucidace.com /v1/projects/{project_id}/web/revenue/rates Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
ratesFxRate[]required1 unit of
currency = rate units of the base currency.Show child parameters
currencystringrequiredratenumberrequired{
"rates": [
{
"currency": "string",
"rate": 0
}
]
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/web/revenue/rates" \
-H "Content-Type: application/json" \
-d '{"rates":[{"currency":"string","rate":0}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
400
403
404
GET
https://lucidace.com /v1/projects/{project_id}/web/revenue/rates/history Scope insight:readParameters
project_idstringpathrequiredcurrencystringpathrequiredOne currency; all when absent.
Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/web/revenue/rates/history"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Dated rates, oldest first
Example
{
"rates": [
{
"currency": "string",
"day": "string",
"rate": 0,
"source": "string"
}
]
}Schema
ratesDatedRate[]requiredShow child parameters
currencystringrequireddaystringrequiredratenumberrequiredsourcestring404
PUT
https://lucidace.com /v1/projects/{project_id}/web/revenue/rates/history Scope insight:writeParameters
project_idstringpathrequiredRequest body
application/json
ratesDatedRate[]requiredShow child parameters
currencystringrequireddaystringrequiredratenumberrequiredsourcestring{
"rates": [
{
"currency": "string",
"day": "string",
"rate": 0,
"source": "string"
}
]
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/web/revenue/rates/history" \
-H "Content-Type: application/json" \
-d '{"rates":[{"currency":"string","day":"string","rate":0,"source":"string"}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Upserted (same currency and day replaces)
Same as 200 · GET /v1/projects/{project_id}/web/revenue/rates/history
400
403
404
DELETE
https://lucidace.com /v1/projects/{project_id}/web/revenue/rates/history Scope insight:writeParameters
project_idstringpathrequiredcurrencystringpathrequiredOne currency; all when absent.
Code samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/web/revenue/rates/history"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
{deleted}400
403
404
Updated