GET api/OrderItem/{id}?startdate={startdate}&enddate={enddate}
Gets a list of order item by Organization Id and Order Date Range.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Organization Id. |
integer |
Required |
startdate |
Order Start Date. |
date |
Required |
enddate |
Order End Date. |
date |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of OrderItemName | Description | Type | Additional information |
---|---|---|---|
OrderItemId | integer |
None. |
|
CreatedBy | string |
None. |
|
CreatedDate | date |
None. |
|
UpdatedBy | string |
None. |
|
UpdatedDate | date |
None. |
|
OrderId | integer |
None. |
|
ProductId | integer |
None. |
|
ProductName | string |
None. |
|
ProductCode | string |
None. |
|
ProductSku | string |
None. |
|
Quantity | integer |
None. |
|
UnitPrice | decimal number |
None. |
|
ItemDiscount | decimal number |
None. |
|
ItemNote | string |
None. |
|
ItemTotal | decimal number |
None. |
|
ItemDiscountPercentage | decimal number |
None. |
|
ItemTotalWithoutDiscount | decimal number |
None. |
|
ProductGlobalId | string |
None. |
|
NewQuantity | integer |
None. |
|
OrganizationId | integer |
None. |
|
GlobalId | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "OrderItemId": 1, "CreatedBy": "sample string 2", "CreatedDate": "2025-01-16T07:00:25.4327739+00:00", "UpdatedBy": "sample string 3", "UpdatedDate": "2025-01-16T07:00:25.4327739+00:00", "OrderId": 1, "ProductId": 1, "ProductName": "sample string 4", "ProductCode": "sample string 5", "ProductSku": "sample string 6", "Quantity": 1, "UnitPrice": 1.0, "ItemDiscount": 1.0, "ItemNote": "sample string 7", "ItemTotal": 1.0, "ItemDiscountPercentage": 1.0, "ItemTotalWithoutDiscount": 1.0, "ProductGlobalId": "sample string 8", "NewQuantity": 1, "OrganizationId": 1, "GlobalId": "sample string 9" }, { "OrderItemId": 1, "CreatedBy": "sample string 2", "CreatedDate": "2025-01-16T07:00:25.4327739+00:00", "UpdatedBy": "sample string 3", "UpdatedDate": "2025-01-16T07:00:25.4327739+00:00", "OrderId": 1, "ProductId": 1, "ProductName": "sample string 4", "ProductCode": "sample string 5", "ProductSku": "sample string 6", "Quantity": 1, "UnitPrice": 1.0, "ItemDiscount": 1.0, "ItemNote": "sample string 7", "ItemTotal": 1.0, "ItemDiscountPercentage": 1.0, "ItemTotalWithoutDiscount": 1.0, "ProductGlobalId": "sample string 8", "NewQuantity": 1, "OrganizationId": 1, "GlobalId": "sample string 9" } ]
application/xml, text/xml
Sample:
<ArrayOfOrderItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomersdbWebShared.Models"> <OrderItem> <CreatedBy>sample string 2</CreatedBy> <CreatedDate>2025-01-16T07:00:25.4327739+00:00</CreatedDate> <GlobalId>sample string 9</GlobalId> <ItemDiscount>1</ItemDiscount> <ItemDiscountPercentage>1</ItemDiscountPercentage> <ItemNote>sample string 7</ItemNote> <ItemTotal>1</ItemTotal> <ItemTotalWithoutDiscount>1</ItemTotalWithoutDiscount> <NewQuantity>1</NewQuantity> <OrderId>1</OrderId> <OrderItemId>1</OrderItemId> <OrganizationId>1</OrganizationId> <ProductCode>sample string 5</ProductCode> <ProductGlobalId>sample string 8</ProductGlobalId> <ProductId>1</ProductId> <ProductName>sample string 4</ProductName> <ProductSku>sample string 6</ProductSku> <Quantity>1</Quantity> <UnitPrice>1</UnitPrice> <UpdatedBy>sample string 3</UpdatedBy> <UpdatedDate>2025-01-16T07:00:25.4327739+00:00</UpdatedDate> </OrderItem> <OrderItem> <CreatedBy>sample string 2</CreatedBy> <CreatedDate>2025-01-16T07:00:25.4327739+00:00</CreatedDate> <GlobalId>sample string 9</GlobalId> <ItemDiscount>1</ItemDiscount> <ItemDiscountPercentage>1</ItemDiscountPercentage> <ItemNote>sample string 7</ItemNote> <ItemTotal>1</ItemTotal> <ItemTotalWithoutDiscount>1</ItemTotalWithoutDiscount> <NewQuantity>1</NewQuantity> <OrderId>1</OrderId> <OrderItemId>1</OrderItemId> <OrganizationId>1</OrganizationId> <ProductCode>sample string 5</ProductCode> <ProductGlobalId>sample string 8</ProductGlobalId> <ProductId>1</ProductId> <ProductName>sample string 4</ProductName> <ProductSku>sample string 6</ProductSku> <Quantity>1</Quantity> <UnitPrice>1</UnitPrice> <UpdatedBy>sample string 3</UpdatedBy> <UpdatedDate>2025-01-16T07:00:25.4327739+00:00</UpdatedDate> </OrderItem> </ArrayOfOrderItem>