Retrieve a renewal sales report

Retrieve a renewal sales report.

SecuritySecretApiKey or JWT
Request
query Parameters
periodStart
required
string

Report start date.

periodEnd
required
string

Report end date.

limit
integer [ 0 .. 1000 ]

The collection items limit.

offset
integer >= 0

The collection items offset.

Responses
200

Report was retrieved successfully.

Response Headers
Pagination-Total
integer

Total items count.

Example: 332
Pagination-Limit
integer

Items per page limit.

Example: 100
Pagination-Offset
integer

Pagination offset.

Example: 2
Response Schema: application/json
Array of objects
Array
aggregationValue
string

Date in format YYYY-MM.

newSales
number <double>

Amount of new sales.

newRefunds
number <double>

Amount of new refunds.

renewalSales
number <double>

Amount of renewal sales.

renewalRefunds
number <double>

Amount of renewal refunds.

401

Unauthorized access, invalid credentials were used.

403

Access forbidden.

get/reports/renewal-sales
Request samples
const params = {
    periodStart: '2017-09',
    periodEnd: '2017-09',
    limit: 20,
    offset: 0,
    tz: 0
};
const report = await api.reports.getRenewalSales(params);
Response samples
application/json
{
  • "data": [
    ]
}