web

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-web"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/c98607d6-613a-4769-ba8d-1fd655470740/social-card.svg?v=3e7ae33eec8b" alt="web" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/web/revenue/deferredScope insight:read

Parameters

project_idstringpathrequired
fromstringpathrequired
tostringpathrequired
months_aheadintegerpathrequired
Future 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_currencystringrequired
deferred_balancenumberrequired
Billed but not yet earned at to.
future_totalnumberrequired
Recognized in the future months.
itemsRevenueItem[]required
Lines billed in the range (first 500), newest first.
Show child parameters
amountnumberrequired
amount_basenumberrequired
billed_atstringrequired
currencystringrequired
period_endstringrequired
period_startstringrequired
rowsDeferredRevenueRow[]required
Show child parameters
billednumberrequired
Billed in the month (cash).
deferred_endnumberrequired
Billed by the month end, earned later.
endstringrequired
futurebooleanrequired
The month starts after to: what is already billed and will be recognized then.
recognizednumberrequired
Earned in the month (accrual).
startstringrequired
unconverted_linesintegerrequired
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/revenue/lifetimeScope insight:read

Parameters

project_idstringpathrequired
bystringpathrequired
person (default) or group.
group_type_indexintegerpathrequired
Group type index 0..=4 for by=group.
keystringpathrequired
One key only (a person id or group key), e.g. for a person page.
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
computed_atstring
When this refresh was computed.
first_daystringrequired
keystringrequired
Person id, or the group key.
last_daystringrequired
purchasesintegerrequired
revenuenumberrequired
All-time revenue in the base currency.
next_cursorstring
400
404
503
POSThttps://lucidace.com/v1/projects/{project_id}/web/revenue/lifetime/refreshScope insight:write

Parameters

project_idstringpathrequired

Code 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_atstringrequired
unconverted_purchasesintegerrequired
Revenue rows in a currency without a rate (left out).
writtenobjectrequired
Rows written per kind (person, group0..group4).
403
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/revenue/mrrScope insight:read

Parameters

project_idstringpathrequired
fromstringquery
tostringquery
intervalstringquery

Code 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_currencystringrequired
currentobjectrequired
Position at the end of the last period.
Show child parameters
arpunumber
MRR per active customer.
arrnumberrequired
customersintegerrequired
ltvnumber
ARPU / churn, with churn the last period's churned share of opening subscriptions; null without churn.
mrrnumberrequired
rowsMrrRow[]required
Show child parameters
arrnumberrequired
closing_mrr * 12.
churned_mrrnumberrequired
churned_subscriptionsintegerrequired
closing_mrrnumberrequired
closing_subscriptionsintegerrequired
contraction_mrrnumberrequired
endstringrequired
expansion_mrrnumberrequired
new_mrrnumberrequired
new_subscriptionsintegerrequired
opening_mrrnumberrequired
opening_subscriptionsintegerrequired
startstringrequired
unconverted_eventsintegerrequired
Subscription events dropped for lacking a rate for their currency.
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/web/revenue/ratesScope insight:read

Parameters

project_idstringpathrequired

Code 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[]required
1 unit of currency = rate units of the base currency.
Show child parameters
currencystringrequired
ratenumberrequired
404
PUThttps://lucidace.com/v1/projects/{project_id}/web/revenue/ratesScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json
ratesFxRate[]required
1 unit of currency = rate units of the base currency.
Show child parameters
currencystringrequired
ratenumberrequired
{
  "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

200 Replaces the whole table

Same as 200 · GET /v1/projects/{project_id}/web/revenue/rates

400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/web/revenue/rates/historyScope insight:read

Parameters

project_idstringpathrequired
currencystringpathrequired
One 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[]required
Show child parameters
currencystringrequired
daystringrequired
ratenumberrequired
sourcestring
404
PUThttps://lucidace.com/v1/projects/{project_id}/web/revenue/rates/historyScope insight:write

Parameters

project_idstringpathrequired

Request body

application/json
ratesDatedRate[]required
Show child parameters
currencystringrequired
daystringrequired
ratenumberrequired
sourcestring
{
  "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
DELETEhttps://lucidace.com/v1/projects/{project_id}/web/revenue/rates/historyScope insight:write

Parameters

project_idstringpathrequired
currencystringpathrequired
One 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