POST api/Service/GetMonthlySalesComparison

Request Information

URI Parameters

None.

Body Parameters

MonthlySalesComparisonRequest
NameDescriptionTypeAdditional information
Input

MonthlySalesComparisonInputModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Input": {
    "UserNo": 1,
    "Metric": 2
  }
}

application/xml, text/xml

Sample:
<MonthlySalesComparisonRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BizMate.BizLayer">
  <Input>
    <Metric>2</Metric>
    <UserNo>1</UserNo>
  </Input>
</MonthlySalesComparisonRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MonthlySalesComparisonResponse
NameDescriptionTypeAdditional information
OutPut

MonthlySalesComparisonOutPutModel

None.

Response Formats

application/json, text/json

Sample:
{
  "OutPut": {
    "Success": true,
    "Message": "sample string 2",
    "MonthlySalesComparison": {
      "MonthlySalesComparisonInfo": [
        {
          "SortOrder": 1,
          "MonthNo": 2,
          "MonthLabel": "sample string 3",
          "CurrentYear": 4,
          "PreviousYear": 5,
          "CurrentYearValue": 6.1,
          "PreviousYearValue": 7.1,
          "ChangePct": 1.1
        },
        {
          "SortOrder": 1,
          "MonthNo": 2,
          "MonthLabel": "sample string 3",
          "CurrentYear": 4,
          "PreviousYear": 5,
          "CurrentYearValue": 6.1,
          "PreviousYearValue": 7.1,
          "ChangePct": 1.1
        }
      ],
      "Metric": 1,
      "YTDCurrentValue": 2.1,
      "YTDPreviousValue": 3.1,
      "YTDChangePct": 1.1
    }
  }
}

application/xml, text/xml

Sample:
<MonthlySalesComparisonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BizMate.BizLayer">
  <OutPut>
    <Message>sample string 2</Message>
    <MonthlySalesComparison>
      <Metric>1</Metric>
      <MonthlySalesComparisonInfo>
        <MonthlySalesComparisonModel>
          <ChangePct>1.1</ChangePct>
          <CurrentYear>4</CurrentYear>
          <CurrentYearValue>6.1</CurrentYearValue>
          <MonthLabel>sample string 3</MonthLabel>
          <MonthNo>2</MonthNo>
          <PreviousYear>5</PreviousYear>
          <PreviousYearValue>7.1</PreviousYearValue>
          <SortOrder>1</SortOrder>
        </MonthlySalesComparisonModel>
        <MonthlySalesComparisonModel>
          <ChangePct>1.1</ChangePct>
          <CurrentYear>4</CurrentYear>
          <CurrentYearValue>6.1</CurrentYearValue>
          <MonthLabel>sample string 3</MonthLabel>
          <MonthNo>2</MonthNo>
          <PreviousYear>5</PreviousYear>
          <PreviousYearValue>7.1</PreviousYearValue>
          <SortOrder>1</SortOrder>
        </MonthlySalesComparisonModel>
      </MonthlySalesComparisonInfo>
      <YTDChangePct>1.1</YTDChangePct>
      <YTDCurrentValue>2.1</YTDCurrentValue>
      <YTDPreviousValue>3.1</YTDPreviousValue>
    </MonthlySalesComparison>
    <Success>true</Success>
  </OutPut>
</MonthlySalesComparisonResponse>