POST request/Customer/sales/report
Request Information
URI Parameters
None.
Body Parameters
SwitchReportRequestName | Description | Type | Additional information |
---|---|---|---|
NoDays | integer |
None. |
|
ReferralBranch | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "referralBranch": "sample string 1", "noDays": 2 }
application/xml, text/xml
Sample:
<SwitchReportRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Domain.Default.BindingModel"> <NoDays>2</NoDays> <ReferralBranch>sample string 1</ReferralBranch> </SwitchReportRequest>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ReferralBranch" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="NoDays" 2 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
Collection of SwitchReportDtoName | Description | Type | Additional information |
---|---|---|---|
AFFILIATE | string |
None. |
|
CHANNEL | string |
None. |
|
CUSTOMER_POSTCODE | string |
None. |
|
DATE_OF_SWITCH | date |
None. |
|
FUEL_TYPE | string |
None. |
|
LAST_NAME | string |
None. |
|
MARKETING | string |
None. |
|
MPAN | string |
None. |
|
MPRN | string |
None. |
|
PAYMENT_METHOD | string |
None. |
|
PREVIOUS_SUPPLIER_ELEC | string |
None. |
|
PREVIOUS_SUPPLIER_GAS | string |
None. |
|
PROFILING | string |
None. |
|
SUPPLIER_NAME | string |
None. |
|
SWITCH_ID | integer |
None. |
|
TARIFF_NAME | string |
None. |
|
THIRD_PARTY_DATA_SHARING | string |
None. |
|
TITLE | string |
None. |
|
TOTAL_ANNUAL_ELEC | integer |
None. |
|
TOTAL_ANNUAL_GAS | integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "channel": "sample string 1", "affiliate": "sample string 2", "switcH_ID": 1, "fueL_TYPE": "sample string 3", "tarifF_NAME": "sample string 4", "supplieR_NAME": "sample string 5", "previouS_SUPPLIER_GAS": "sample string 6", "previouS_SUPPLIER_ELEC": "sample string 7", "mpan": "sample string 8", "mprn": "sample string 9", "totaL_ANNUAL_GAS": 1, "totaL_ANNUAL_ELEC": 1, "datE_OF_SWITCH": "2025-04-04T11:03:46.6883126+00:00", "title": "sample string 10", "lasT_NAME": "sample string 11", "customeR_POSTCODE": "sample string 12", "paymenT_METHOD": "sample string 13", "marketing": "sample string 14", "profiling": "sample string 15", "thirD_PARTY_DATA_SHARING": "sample string 16" }, { "channel": "sample string 1", "affiliate": "sample string 2", "switcH_ID": 1, "fueL_TYPE": "sample string 3", "tarifF_NAME": "sample string 4", "supplieR_NAME": "sample string 5", "previouS_SUPPLIER_GAS": "sample string 6", "previouS_SUPPLIER_ELEC": "sample string 7", "mpan": "sample string 8", "mprn": "sample string 9", "totaL_ANNUAL_GAS": 1, "totaL_ANNUAL_ELEC": 1, "datE_OF_SWITCH": "2025-04-04T11:03:46.6883126+00:00", "title": "sample string 10", "lasT_NAME": "sample string 11", "customeR_POSTCODE": "sample string 12", "paymenT_METHOD": "sample string 13", "marketing": "sample string 14", "profiling": "sample string 15", "thirD_PARTY_DATA_SHARING": "sample string 16" } ]
application/xml, text/xml
Sample:
<ArrayOfSwitchReportDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Models.Dto"> <SwitchReportDto> <AFFILIATE>sample string 2</AFFILIATE> <CHANNEL>sample string 1</CHANNEL> <CUSTOMER_POSTCODE>sample string 12</CUSTOMER_POSTCODE> <DATE_OF_SWITCH>2025-04-04T11:03:46.6883126+00:00</DATE_OF_SWITCH> <FUEL_TYPE>sample string 3</FUEL_TYPE> <LAST_NAME>sample string 11</LAST_NAME> <MARKETING>sample string 14</MARKETING> <MPAN>sample string 8</MPAN> <MPRN>sample string 9</MPRN> <PAYMENT_METHOD>sample string 13</PAYMENT_METHOD> <PREVIOUS_SUPPLIER_ELEC>sample string 7</PREVIOUS_SUPPLIER_ELEC> <PREVIOUS_SUPPLIER_GAS>sample string 6</PREVIOUS_SUPPLIER_GAS> <PROFILING>sample string 15</PROFILING> <SUPPLIER_NAME>sample string 5</SUPPLIER_NAME> <SWITCH_ID>1</SWITCH_ID> <TARIFF_NAME>sample string 4</TARIFF_NAME> <THIRD_PARTY_DATA_SHARING>sample string 16</THIRD_PARTY_DATA_SHARING> <TITLE>sample string 10</TITLE> <TOTAL_ANNUAL_ELEC>1</TOTAL_ANNUAL_ELEC> <TOTAL_ANNUAL_GAS>1</TOTAL_ANNUAL_GAS> </SwitchReportDto> <SwitchReportDto> <AFFILIATE>sample string 2</AFFILIATE> <CHANNEL>sample string 1</CHANNEL> <CUSTOMER_POSTCODE>sample string 12</CUSTOMER_POSTCODE> <DATE_OF_SWITCH>2025-04-04T11:03:46.6883126+00:00</DATE_OF_SWITCH> <FUEL_TYPE>sample string 3</FUEL_TYPE> <LAST_NAME>sample string 11</LAST_NAME> <MARKETING>sample string 14</MARKETING> <MPAN>sample string 8</MPAN> <MPRN>sample string 9</MPRN> <PAYMENT_METHOD>sample string 13</PAYMENT_METHOD> <PREVIOUS_SUPPLIER_ELEC>sample string 7</PREVIOUS_SUPPLIER_ELEC> <PREVIOUS_SUPPLIER_GAS>sample string 6</PREVIOUS_SUPPLIER_GAS> <PROFILING>sample string 15</PROFILING> <SUPPLIER_NAME>sample string 5</SUPPLIER_NAME> <SWITCH_ID>1</SWITCH_ID> <TARIFF_NAME>sample string 4</TARIFF_NAME> <THIRD_PARTY_DATA_SHARING>sample string 16</THIRD_PARTY_DATA_SHARING> <TITLE>sample string 10</TITLE> <TOTAL_ANNUAL_ELEC>1</TOTAL_ANNUAL_ELEC> <TOTAL_ANNUAL_GAS>1</TOTAL_ANNUAL_GAS> </SwitchReportDto> </ArrayOfSwitchReportDto>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].CHANNEL" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].AFFILIATE" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].SWITCH_ID" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].FUEL_TYPE" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].TARIFF_NAME" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].SUPPLIER_NAME" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].PREVIOUS_SUPPLIER_GAS" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].PREVIOUS_SUPPLIER_ELEC" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].MPAN" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].MPRN" sample string 9 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].TOTAL_ANNUAL_GAS" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].TOTAL_ANNUAL_ELEC" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].DATE_OF_SWITCH" 2025-04-04T11:03:46.6883126+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].TITLE" sample string 10 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].LAST_NAME" sample string 11 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].CUSTOMER_POSTCODE" sample string 12 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].PAYMENT_METHOD" sample string 13 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].MARKETING" sample string 14 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].PROFILING" sample string 15 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].THIRD_PARTY_DATA_SHARING" sample string 16 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].CHANNEL" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].AFFILIATE" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].SWITCH_ID" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].FUEL_TYPE" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].TARIFF_NAME" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].SUPPLIER_NAME" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].PREVIOUS_SUPPLIER_GAS" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].PREVIOUS_SUPPLIER_ELEC" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].MPAN" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].MPRN" sample string 9 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].TOTAL_ANNUAL_GAS" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].TOTAL_ANNUAL_ELEC" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].DATE_OF_SWITCH" 2025-04-04T11:03:46.6883126+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].TITLE" sample string 10 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].LAST_NAME" sample string 11 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].CUSTOMER_POSTCODE" sample string 12 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].PAYMENT_METHOD" sample string 13 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].MARKETING" sample string 14 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].PROFILING" sample string 15 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].THIRD_PARTY_DATA_SHARING" sample string 16 --MultipartDataMediaFormatterBoundary1q2w3e--