GET api/CustomerSalesReport/{id}?type={type}&startdatetime={startdatetime}&enddatetime={enddatetime}

Gets a list Customer sales report item.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Organization Id.

integer

Required

type

List Type.

string

Required

startdatetime

Start DateTime.

date

Required

enddatetime

End DatTime.

date

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CustomerSalesReport
NameDescriptionTypeAdditional information
CustomerId

integer

None.

CustomerCode

string

None.

CustomerName

string

None.

DisplayName

string

None.

OrderCount

integer

None.

OrderAmount

decimal number

None.

CustomerNameWithPhone

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CustomerId": 1,
    "CustomerCode": "sample string 2",
    "CustomerName": "sample string 3",
    "DisplayName": "sample string 4",
    "OrderCount": 1,
    "OrderAmount": 1.0,
    "CustomerNameWithPhone": "sample string 5"
  },
  {
    "CustomerId": 1,
    "CustomerCode": "sample string 2",
    "CustomerName": "sample string 3",
    "DisplayName": "sample string 4",
    "OrderCount": 1,
    "OrderAmount": 1.0,
    "CustomerNameWithPhone": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomerSalesReport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomersdbWebShared.Models">
  <CustomerSalesReport>
    <CustomerCode>sample string 2</CustomerCode>
    <CustomerId>1</CustomerId>
    <CustomerName>sample string 3</CustomerName>
    <CustomerNameWithPhone>sample string 5</CustomerNameWithPhone>
    <DisplayName>sample string 4</DisplayName>
    <OrderAmount>1</OrderAmount>
    <OrderCount>1</OrderCount>
  </CustomerSalesReport>
  <CustomerSalesReport>
    <CustomerCode>sample string 2</CustomerCode>
    <CustomerId>1</CustomerId>
    <CustomerName>sample string 3</CustomerName>
    <CustomerNameWithPhone>sample string 5</CustomerNameWithPhone>
    <DisplayName>sample string 4</DisplayName>
    <OrderAmount>1</OrderAmount>
    <OrderCount>1</OrderCount>
  </CustomerSalesReport>
</ArrayOfCustomerSalesReport>