Retrieve a journal report which reflects a per-account revenue. It is a more-granular step of a revenue waterfall report.
currency required | string (CurrencyCode) = 3 characters Revenue currency. Example: currency=USD |
recognizedAt required | string^\d{4}-\d{2}$ A year and month in which revenue was recognized. Example: recognizedAt=2022-04 |
aggregationField required | string Report aggregation field. |
bookedFrom | string^\d{4}-\d{2}$ A year and month from which revenue is booked. If omitted then booked revenue starts from the first booked amount. Example: bookedFrom=2022-01 |
bookedTo | string^\d{4}-\d{2}$ A year and month in which revenue is booked until. If omitted then booked revenue is taken until the most recently booked amount. Example: bookedTo=2022-01 |
limit | integer [ 0 .. 1000 ] The collection items limit. |
offset | integer >= 0 The collection items offset. |
filter | string The collection items filter requires a special format. Use "," for multiple allowed values. Use ";" for multiple fields. See the filter guide for more options and examples about this format. |
Report successfully retrieved.
Pagination-Total | integer Total items count. Example: 332 |
Pagination-Limit | integer Items per page limit. Example: 100 |
Pagination-Offset | integer Pagination offset. Example: 2 |
Unauthorized access, invalid credentials were 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
}
]
}