Skip to content
Console
Menu

Generated Assets

Getting Started

Authentication

KV Store

On this page

Revenue

The Revenue Summary is an org's revenue over a period, read from the daily roll-up and never from raw facts (ADR §4), converted into one…

The Revenue Summary is an org's revenue over a period, read from the daily roll-up and never from raw facts (ADR §4), converted into one reporting currency at each day's rate (§3), with the highest basis counting for each store, product and day (§1 "Which row counts"). Computed on every read; nothing writes it.

Service Sylphx Money · Resource type money.sylphx.com/RevenueSummary · Name pattern orgs/{org}/revenue · Shape singleton

#Fields

FieldTypeWhat it is
namestringorgs/{org}/revenue.
uidstringThe org's id. Output only.
metaResourceMetaResource metadata. Output only.
start_daystringThe first day of the period, YYYY-MM-DD. Output only.
end_daystringThe last day of the period, inclusive. Output only.
currency_codestringThe reporting currency every converted amount is in. Output only.
amountstringnet or gross. Output only.
group_bystringday or month. Output only.
splitstringnone, source or product. Output only.
totalstringThe period's total, in minor units of the reporting currency. Output only.
bucketsRevenueBucket[]One bucket per day or month that holds revenue, oldest first. Output only.
linesRevenueLine[]The period's total per source or product, largest first; empty when split is none. Output only.
stale_sourcesStaleRevenueSource[]Sources that report late: their missing days make the period incomplete. Output only.
unconvertedUnconvertedAmount[]Amounts with no exchange rate for their day yet, in their own currency: counted here, never in total. Output only.
unconverted_countint64Daily rows that had no rate and are in unconverted. Output only.
incompleteboolA stale source has not reported some day of the period. Output only.

#Methods

Every method of the collection, in the registry's order, with the scope it needs. The full request, response and examples are one link away.

MethodCallWhat it does
GETgetGets the org's revenue over a period: totals by day or month, split by source or product, gross or net, in one reporting currency, with the basis of each bucket, the sources that report late, and what has no rate yet. Reads only the daily roll-up, bounded by a 5 second statement timeout. For example sylphx money revenue summary --period mtd --split source.

#get

Gets the org's revenue over a period: totals by day or month, split by source or product, gross or net, in one reporting currency, with the basis of each bucket, the sources that report late, and what has no rate yet. Reads only the daily roll-up, bounded by a 5 second statement timeout. For example sylphx money revenue summary --period mtd --split source.

GET https://api.sylphx.com/v1/orgs/acme/revenue · scope revenue:read · effect read · Request, response and examples