Retrieves a transactions report.
periodStart required | string <date-time> Date and time when the report starts. |
periodEnd required | string <date-time> Date and time when the report ends. |
aggregationField required | string Report aggregation field. |
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 = { aggregationField: 'website', periodStart: '2017-09-22T00:00:00Z', periodEnd: '2017-09-29T23:59:59Z', limit: 20, offset: 0, tz: 0 }; const report = await api.reports.getTransactions(params);
{- "data": [
- {
- "aggregationFieldValue": "string",
- "authApprovedThroughput": 0,
- "approvedThroughput": 0,
- "authApprovalCount": 0,
- "disputesRate": 0,
- "disputesCount": 0,
- "salesCount": 0,
- "salesValue": 0,
- "salesAverage": 0,
- "refundsCount": 0,
- "refundsValue": 0,
- "amount": 0,
- "count": 0,
- "unapprovedCount": 0
}
]
}