Retrieves a Dynamic Currency Conversion (DCC) markup report.
aggregationField required | string Report aggregation field. |
periodStart required | string <date-time> Date and time when the report starts. |
periodEnd required | string <date-time> Date and time when the report ends. |
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: 'day', periodStart: '2017-09-21T00:00:00Z', periodEnd: '2017-09-28T23:59:59Z', limit: 20, offset: 0, filter: `gatewayAccounts:f9b4fa10-df1d-48a3-85b3-ff6bd7ce0ed2; \ transactionResult:approved,canceled,declined,unknown`, tz: 0 }; const report = await api.reports.getDccMarkup(params);
{- "data": [
- {
- "aggregationValue": "string",
- "selectedCount": 0,
- "selectedSum": 0,
- "rejectedCount": 0,
- "rejectedSum": 0,
- "unknownCount": 0,
- "unknownSum": 0
}
]
}