Retrieves transaction histogram report data.
periodStart required | string <date-time> Date and time when the report starts. |
periodEnd required | string <date-time> Date and time when the report ends. |
aggregationPeriod required | string Aggregation period of the report. |
metric required | string Metric on which the report is based. |
filter | string Filters the collection items. This field requires
a special format. Use For more information, see Using filter with collections. |
const params = { periodStart: '2017-09-21T00:00:00Z', // seven day period periodEnd: '2017-09-28T23:59:59Z', aggregationField: 'website', aggregationPeriod: 'day', metric: 'approval' }; const report = await api.histograms.getTransactionHistogramReport(params); console.log(report.fields.data);
{- "data": [
- {
- "date": "string",
- "value": 0
}
]
}