Reseller Quarterly Business Report

Description

Summarizes a reseller’s activity over a period of time. Providing statistics about the overall portfolio of merchants. This report is pre-calculated once a month. You may not have a pre-calculated version available to you depending on the setup of your merchant.

Report Parameters

Report Name: ResellerQuarterlyBusinessReport

Name

Type

Max. Length

Required

Description

ResellerCode

string

11

Yes

The merchant reseller code provided by CheckCommerce that uniquely identifies the reseller

Start Date

Date

10

Yes

10 digit date i.e. 2017-01-01

End Date

Date

10

Yes

10 digit date i.e. 2017-01-01

Example Request

/EpnAPI/ActiveReports/GetReport.aspx?&Token=YOURTOKEN&Action=Report&OutputType=XML&ReportPermDesc=ResellerQuarterlyBusinessReport&Parameter_start_dt=2017-11-01&Parameter_end_dt=2017-12-01&Parameter_ResellerCode=R999040

SDK Example

//Get token
string token = Token.GetToken("{MerchantNumber}", "{Password}");
Console.WriteLine(token);

//View available reports
D.ReportDefinition[] reports = Manage.ReportList(token,
D.ReportDefinition.OutputType.JSON.ToString());
foreach (D.ReportDefinition report in reports)
{
    Console.WriteLine(report.ToString());
}

//Set parameters for report
D.ReportDefinition.Parameter[] reportParams = new D.ReportDefinition.Parameter[]
{
    new D.ReportDefinition.Parameter { PermDesc = "CoNo", ParamValue = "R999040" },
    new D.ReportDefinition.Parameter { PermDesc = "start_dt", ParamValue = "2017-01-01" },
    new D.ReportDefinition.Parameter { PermDesc = "end_dt", ParamValue = "2017-04-01" }
};

//Run report
Response resp = GetReport.RunReport(token, "ResellerQuarterlyBusinessReport", reportParams,
D.ReportDefinition.OutputType.HTML);
Console.WriteLine(resp.I.SData);