GET api/OrderItem/{id}?type={type}

Gets order item list by Organization Id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Organization Id.

integer

Required

type

List Type.

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of OrderItem
NameDescriptionTypeAdditional 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-16T05:21:07.9657294+00:00",
    "UpdatedBy": "sample string 3",
    "UpdatedDate": "2025-01-16T05:21:07.9657294+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-16T05:21:07.9657294+00:00",
    "UpdatedBy": "sample string 3",
    "UpdatedDate": "2025-01-16T05:21:07.9657294+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-16T05:21:07.9657294+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-16T05:21:07.9657294+00:00</UpdatedDate>
  </OrderItem>
  <OrderItem>
    <CreatedBy>sample string 2</CreatedBy>
    <CreatedDate>2025-01-16T05:21:07.9657294+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-16T05:21:07.9657294+00:00</UpdatedDate>
  </OrderItem>
</ArrayOfOrderItem>