GET api/SalesReport/{id}?type={type}&startdatetime={startdatetime}&enddatetime={enddatetime}
Gets a list sales report item.
Request Information
URI Parameters
Name | Description | Type | Additional 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 SalesReportName | Description | Type | Additional information |
---|---|---|---|
OrderId | integer |
None. |
|
OpenRegisterId | integer |
None. |
|
OrderStatusId | integer |
None. |
|
OrderStatus | string |
None. |
|
CustomerId | integer |
None. |
|
OrderTotal | decimal number |
None. |
|
OrderTax | decimal number |
None. |
|
RegisterId | integer |
None. |
|
RegisterName | string |
None. |
|
OutletId | integer |
None. |
|
OutletName | string |
None. |
|
CustomerName | string |
None. |
|
OrderProcessedDate | date |
None. |
|
ItemCount | integer |
None. |
|
OrderNumber | integer |
None. |
|
AssignedToEmployeeId | integer |
None. |
|
AssignedToEmployeeName | string |
None. |
|
PaymentMethod | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "OrderId": 1, "OpenRegisterId": 1, "OrderStatusId": 1, "OrderStatus": "sample string 2", "CustomerId": 1, "OrderTotal": 1.0, "OrderTax": 1.0, "RegisterId": 1, "RegisterName": "sample string 3", "OutletId": 1, "OutletName": "sample string 4", "CustomerName": "sample string 5", "OrderProcessedDate": "2025-01-16T10:57:50.1523505+00:00", "ItemCount": 1, "OrderNumber": 1, "AssignedToEmployeeId": 1, "AssignedToEmployeeName": "sample string 6", "PaymentMethod": "sample string 7" }, { "OrderId": 1, "OpenRegisterId": 1, "OrderStatusId": 1, "OrderStatus": "sample string 2", "CustomerId": 1, "OrderTotal": 1.0, "OrderTax": 1.0, "RegisterId": 1, "RegisterName": "sample string 3", "OutletId": 1, "OutletName": "sample string 4", "CustomerName": "sample string 5", "OrderProcessedDate": "2025-01-16T10:57:50.1523505+00:00", "ItemCount": 1, "OrderNumber": 1, "AssignedToEmployeeId": 1, "AssignedToEmployeeName": "sample string 6", "PaymentMethod": "sample string 7" } ]
application/xml, text/xml
Sample:
<ArrayOfSalesReport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomersdbWebShared.Models"> <SalesReport> <AssignedToEmployeeId>1</AssignedToEmployeeId> <AssignedToEmployeeName>sample string 6</AssignedToEmployeeName> <CustomerId>1</CustomerId> <CustomerName>sample string 5</CustomerName> <ItemCount>1</ItemCount> <OpenRegisterId>1</OpenRegisterId> <OrderId>1</OrderId> <OrderNumber>1</OrderNumber> <OrderProcessedDate>2025-01-16T10:57:50.1523505+00:00</OrderProcessedDate> <OrderStatus>sample string 2</OrderStatus> <OrderStatusId>1</OrderStatusId> <OrderTax>1</OrderTax> <OrderTotal>1</OrderTotal> <OutletId>1</OutletId> <OutletName>sample string 4</OutletName> <PaymentMethod>sample string 7</PaymentMethod> <RegisterId>1</RegisterId> <RegisterName>sample string 3</RegisterName> </SalesReport> <SalesReport> <AssignedToEmployeeId>1</AssignedToEmployeeId> <AssignedToEmployeeName>sample string 6</AssignedToEmployeeName> <CustomerId>1</CustomerId> <CustomerName>sample string 5</CustomerName> <ItemCount>1</ItemCount> <OpenRegisterId>1</OpenRegisterId> <OrderId>1</OrderId> <OrderNumber>1</OrderNumber> <OrderProcessedDate>2025-01-16T10:57:50.1523505+00:00</OrderProcessedDate> <OrderStatus>sample string 2</OrderStatus> <OrderStatusId>1</OrderStatusId> <OrderTax>1</OrderTax> <OrderTotal>1</OrderTotal> <OutletId>1</OutletId> <OutletName>sample string 4</OutletName> <PaymentMethod>sample string 7</PaymentMethod> <RegisterId>1</RegisterId> <RegisterName>sample string 3</RegisterName> </SalesReport> </ArrayOfSalesReport>