Retrieves a journal report which displays revenue for each account.
A revenue journal is a detailed revenue waterfall report that describes revenue which is recognized at a certain month, aggregated by product ID, product accounting code, or plan ID. It contains information on booked revenue, recognized revenue for the aggregation field in the booked period, and the remaining revenue up to the selected month.
currency required | string (CurrencyCode) = 3 characters Revenue currency. Example: currency=USD |
recognizedAt required | string^\d{4}-\d{2}$ Year and month when revenue is recognized. Example: recognizedAt=2022-04 |
aggregationField required | string Report aggregation field. |
bookedFrom | string^\d{4}-\d{2}$ Year and month from which revenue is booked. If this value is omitted, booked revenue is recorded from the first booked amount. Example: bookedFrom=2022-01 |
bookedTo | string^\d{4}-\d{2}$ Year and month in which revenue is booked until. If this value is omitted, booked revenue is recorded until the most recently booked amount. Example: bookedTo=2022-01 |
limit | integer [ 0 .. 1000 ] Limits the number of collection items to be returned. |
offset | integer >= 0 Specifies the starting point within the collection of items to be returned. |
filter | string Filters the collection items. This field requires
a special format. Use For more information, see Using filter with collections. |
Report retrieved.
Unauthorized access. Invalid credentials used.
Access forbidden.
const params = { currency: 'USD', bookedFrom: '2022-01', bookedTo: '2022-06', recognizedAt: '2022-06', aggregationField: 'product.accountingCode', limit: 20, offset: 0, tz: 0 }; const report = await api.reports.getJournal(params);
{- "aggregationField": "product.accountingCode",
- "currency": "USD",
- "bookedFrom": "2022-01",
- "bookedTo": "2022-01",
- "recognizedAt": "2022-01",
- "data": [
- {
- "aggregationValue": "string",
- "bookedMonth": "2022-02",
- "bookedAmount": 25,
- "recognizedAmount": 20,
- "remainingAmount": 5
}
]
}