POST api/OrderItems

Request Information

URI Parameters

None.

Body Parameters

BillModel
NameDescriptionTypeAdditional information
Name

string

None.

Address

string

None.

OrderId

integer

None.

PhoneNumber

integer

Required

ProductVariant

Object

None.

productVariantList

Collection of ProductVariant

None.

OrderItems

Collection of BillingProducts

None.

ConsumerBillList

Collection of Consumer

None.

ProductVariantId

integer

None.

ProductVariantName

string

None.

TotalPrice

decimal number

None.

TotalSaving

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Address": "sample string 2",
  "OrderId": 3,
  "PhoneNumber": 4,
  "ProductVariant": {},
  "productVariantList": [
    {
      "ProductVariantId": 1,
      "ProductId": 1,
      "VariantName": "sample string 2",
      "UnitId": 1,
      "Price": 1.0,
      "OfferDiscount": 1.1,
      "AvailableQuantity": 1,
      "StatusTypeId": 1,
      "CreatedDate": "2025-12-06T10:00:06.59026+05:30",
      "UpdatedDate": "2025-12-06T10:00:06.59026+05:30",
      "ProductVariantImageUrl": "sample string 3",
      "AvailableQuantityInKg": 1.0,
      "ItemTypeId": 1,
      "BarCode": "sample string 4"
    },
    {
      "ProductVariantId": 1,
      "ProductId": 1,
      "VariantName": "sample string 2",
      "UnitId": 1,
      "Price": 1.0,
      "OfferDiscount": 1.1,
      "AvailableQuantity": 1,
      "StatusTypeId": 1,
      "CreatedDate": "2025-12-06T10:00:06.59026+05:30",
      "UpdatedDate": "2025-12-06T10:00:06.59026+05:30",
      "ProductVariantImageUrl": "sample string 3",
      "AvailableQuantityInKg": 1.0,
      "ItemTypeId": 1,
      "BarCode": "sample string 4"
    }
  ],
  "OrderItems": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Quantity": 3.0,
      "Price": 4.0,
      "Total": 5.0
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Quantity": 3.0,
      "Price": 4.0,
      "Total": 5.0
    }
  ],
  "ConsumerBillList": [
    {
      "ConsumerId": 1,
      "Name": "sample string 2",
      "Sex": 1,
      "Age": 1,
      "MobileNumber": "sample string 3",
      "Pin": "sample string 4",
      "Address": "sample string 5",
      "ProfileImage": "sample string 6",
      "StatusTypeId": 1,
      "CreatedBy": 1,
      "CreatedDate": "2025-12-06T10:00:06.59026+05:30",
      "UpdatedBy": 1,
      "UpdatedDate": "2025-12-06T10:00:06.59026+05:30",
      "PinCode": "sample string 7"
    },
    {
      "ConsumerId": 1,
      "Name": "sample string 2",
      "Sex": 1,
      "Age": 1,
      "MobileNumber": "sample string 3",
      "Pin": "sample string 4",
      "Address": "sample string 5",
      "ProfileImage": "sample string 6",
      "StatusTypeId": 1,
      "CreatedBy": 1,
      "CreatedDate": "2025-12-06T10:00:06.59026+05:30",
      "UpdatedBy": 1,
      "UpdatedDate": "2025-12-06T10:00:06.59026+05:30",
      "PinCode": "sample string 7"
    }
  ],
  "ProductVariantId": 1,
  "ProductVariantName": "sample string 6",
  "TotalPrice": 7.1,
  "TotalSaving": 8.1
}

application/xml, text/xml

Sample:
<BillModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GNGroup.Models">
  <Address>sample string 2</Address>
  <ConsumerBillList>
    <Consumer>
      <Address>sample string 5</Address>
      <Age>1</Age>
      <ConsumerId>1</ConsumerId>
      <CreatedBy>1</CreatedBy>
      <CreatedDate>2025-12-06T10:00:06.59026+05:30</CreatedDate>
      <MobileNumber>sample string 3</MobileNumber>
      <Name>sample string 2</Name>
      <Pin>sample string 4</Pin>
      <PinCode>sample string 7</PinCode>
      <ProfileImage>sample string 6</ProfileImage>
      <Sex>1</Sex>
      <StatusTypeId>1</StatusTypeId>
      <UpdatedBy>1</UpdatedBy>
      <UpdatedDate>2025-12-06T10:00:06.59026+05:30</UpdatedDate>
    </Consumer>
    <Consumer>
      <Address>sample string 5</Address>
      <Age>1</Age>
      <ConsumerId>1</ConsumerId>
      <CreatedBy>1</CreatedBy>
      <CreatedDate>2025-12-06T10:00:06.59026+05:30</CreatedDate>
      <MobileNumber>sample string 3</MobileNumber>
      <Name>sample string 2</Name>
      <Pin>sample string 4</Pin>
      <PinCode>sample string 7</PinCode>
      <ProfileImage>sample string 6</ProfileImage>
      <Sex>1</Sex>
      <StatusTypeId>1</StatusTypeId>
      <UpdatedBy>1</UpdatedBy>
      <UpdatedDate>2025-12-06T10:00:06.59026+05:30</UpdatedDate>
    </Consumer>
  </ConsumerBillList>
  <Name>sample string 1</Name>
  <OrderId>3</OrderId>
  <OrderItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/">
    <d2p1:BillingProducts>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Price>4</d2p1:Price>
      <d2p1:Quantity>3</d2p1:Quantity>
      <d2p1:Total>5</d2p1:Total>
    </d2p1:BillingProducts>
    <d2p1:BillingProducts>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Price>4</d2p1:Price>
      <d2p1:Quantity>3</d2p1:Quantity>
      <d2p1:Total>5</d2p1:Total>
    </d2p1:BillingProducts>
  </OrderItems>
  <PhoneNumber>4</PhoneNumber>
  <ProductVariant />
  <ProductVariantId>1</ProductVariantId>
  <ProductVariantName>sample string 6</ProductVariantName>
  <TotalPrice>7.1</TotalPrice>
  <TotalSaving>8.1</TotalSaving>
  <productVariantList>
    <ProductVariant>
      <AvailableQuantity>1</AvailableQuantity>
      <AvailableQuantityInKg>1</AvailableQuantityInKg>
      <BarCode>sample string 4</BarCode>
      <CreatedDate>2025-12-06T10:00:06.59026+05:30</CreatedDate>
      <ItemTypeId>1</ItemTypeId>
      <OfferDiscount>1.1</OfferDiscount>
      <Price>1</Price>
      <ProductId>1</ProductId>
      <ProductVariantId>1</ProductVariantId>
      <ProductVariantImageUrl>sample string 3</ProductVariantImageUrl>
      <StatusTypeId>1</StatusTypeId>
      <UnitId>1</UnitId>
      <UpdatedDate>2025-12-06T10:00:06.59026+05:30</UpdatedDate>
      <VariantName>sample string 2</VariantName>
    </ProductVariant>
    <ProductVariant>
      <AvailableQuantity>1</AvailableQuantity>
      <AvailableQuantityInKg>1</AvailableQuantityInKg>
      <BarCode>sample string 4</BarCode>
      <CreatedDate>2025-12-06T10:00:06.59026+05:30</CreatedDate>
      <ItemTypeId>1</ItemTypeId>
      <OfferDiscount>1.1</OfferDiscount>
      <Price>1</Price>
      <ProductId>1</ProductId>
      <ProductVariantId>1</ProductVariantId>
      <ProductVariantImageUrl>sample string 3</ProductVariantImageUrl>
      <StatusTypeId>1</StatusTypeId>
      <UnitId>1</UnitId>
      <UpdatedDate>2025-12-06T10:00:06.59026+05:30</UpdatedDate>
      <VariantName>sample string 2</VariantName>
    </ProductVariant>
  </productVariantList>
</BillModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BillModel
NameDescriptionTypeAdditional information
Name

string

None.

Address

string

None.

OrderId

integer

None.

PhoneNumber

integer

Required

ProductVariant

Object

None.

productVariantList

Collection of ProductVariant

None.

OrderItems

Collection of BillingProducts

None.

ConsumerBillList

Collection of Consumer

None.

ProductVariantId

integer

None.

ProductVariantName

string

None.

TotalPrice

decimal number

None.

TotalSaving

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Address": "sample string 2",
  "OrderId": 3,
  "PhoneNumber": 4,
  "ProductVariant": {},
  "productVariantList": [
    {
      "ProductVariantId": 1,
      "ProductId": 1,
      "VariantName": "sample string 2",
      "UnitId": 1,
      "Price": 1.0,
      "OfferDiscount": 1.1,
      "AvailableQuantity": 1,
      "StatusTypeId": 1,
      "CreatedDate": "2025-12-06T10:00:06.6058311+05:30",
      "UpdatedDate": "2025-12-06T10:00:06.6058311+05:30",
      "ProductVariantImageUrl": "sample string 3",
      "AvailableQuantityInKg": 1.0,
      "ItemTypeId": 1,
      "BarCode": "sample string 4"
    },
    {
      "ProductVariantId": 1,
      "ProductId": 1,
      "VariantName": "sample string 2",
      "UnitId": 1,
      "Price": 1.0,
      "OfferDiscount": 1.1,
      "AvailableQuantity": 1,
      "StatusTypeId": 1,
      "CreatedDate": "2025-12-06T10:00:06.6058311+05:30",
      "UpdatedDate": "2025-12-06T10:00:06.6058311+05:30",
      "ProductVariantImageUrl": "sample string 3",
      "AvailableQuantityInKg": 1.0,
      "ItemTypeId": 1,
      "BarCode": "sample string 4"
    }
  ],
  "OrderItems": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Quantity": 3.0,
      "Price": 4.0,
      "Total": 5.0
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Quantity": 3.0,
      "Price": 4.0,
      "Total": 5.0
    }
  ],
  "ConsumerBillList": [
    {
      "ConsumerId": 1,
      "Name": "sample string 2",
      "Sex": 1,
      "Age": 1,
      "MobileNumber": "sample string 3",
      "Pin": "sample string 4",
      "Address": "sample string 5",
      "ProfileImage": "sample string 6",
      "StatusTypeId": 1,
      "CreatedBy": 1,
      "CreatedDate": "2025-12-06T10:00:06.6058311+05:30",
      "UpdatedBy": 1,
      "UpdatedDate": "2025-12-06T10:00:06.6058311+05:30",
      "PinCode": "sample string 7"
    },
    {
      "ConsumerId": 1,
      "Name": "sample string 2",
      "Sex": 1,
      "Age": 1,
      "MobileNumber": "sample string 3",
      "Pin": "sample string 4",
      "Address": "sample string 5",
      "ProfileImage": "sample string 6",
      "StatusTypeId": 1,
      "CreatedBy": 1,
      "CreatedDate": "2025-12-06T10:00:06.6058311+05:30",
      "UpdatedBy": 1,
      "UpdatedDate": "2025-12-06T10:00:06.6058311+05:30",
      "PinCode": "sample string 7"
    }
  ],
  "ProductVariantId": 1,
  "ProductVariantName": "sample string 6",
  "TotalPrice": 7.1,
  "TotalSaving": 8.1
}

application/xml, text/xml

Sample:
<BillModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GNGroup.Models">
  <Address>sample string 2</Address>
  <ConsumerBillList>
    <Consumer>
      <Address>sample string 5</Address>
      <Age>1</Age>
      <ConsumerId>1</ConsumerId>
      <CreatedBy>1</CreatedBy>
      <CreatedDate>2025-12-06T10:00:06.6058311+05:30</CreatedDate>
      <MobileNumber>sample string 3</MobileNumber>
      <Name>sample string 2</Name>
      <Pin>sample string 4</Pin>
      <PinCode>sample string 7</PinCode>
      <ProfileImage>sample string 6</ProfileImage>
      <Sex>1</Sex>
      <StatusTypeId>1</StatusTypeId>
      <UpdatedBy>1</UpdatedBy>
      <UpdatedDate>2025-12-06T10:00:06.6058311+05:30</UpdatedDate>
    </Consumer>
    <Consumer>
      <Address>sample string 5</Address>
      <Age>1</Age>
      <ConsumerId>1</ConsumerId>
      <CreatedBy>1</CreatedBy>
      <CreatedDate>2025-12-06T10:00:06.6058311+05:30</CreatedDate>
      <MobileNumber>sample string 3</MobileNumber>
      <Name>sample string 2</Name>
      <Pin>sample string 4</Pin>
      <PinCode>sample string 7</PinCode>
      <ProfileImage>sample string 6</ProfileImage>
      <Sex>1</Sex>
      <StatusTypeId>1</StatusTypeId>
      <UpdatedBy>1</UpdatedBy>
      <UpdatedDate>2025-12-06T10:00:06.6058311+05:30</UpdatedDate>
    </Consumer>
  </ConsumerBillList>
  <Name>sample string 1</Name>
  <OrderId>3</OrderId>
  <OrderItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/">
    <d2p1:BillingProducts>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Price>4</d2p1:Price>
      <d2p1:Quantity>3</d2p1:Quantity>
      <d2p1:Total>5</d2p1:Total>
    </d2p1:BillingProducts>
    <d2p1:BillingProducts>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Price>4</d2p1:Price>
      <d2p1:Quantity>3</d2p1:Quantity>
      <d2p1:Total>5</d2p1:Total>
    </d2p1:BillingProducts>
  </OrderItems>
  <PhoneNumber>4</PhoneNumber>
  <ProductVariant />
  <ProductVariantId>1</ProductVariantId>
  <ProductVariantName>sample string 6</ProductVariantName>
  <TotalPrice>7.1</TotalPrice>
  <TotalSaving>8.1</TotalSaving>
  <productVariantList>
    <ProductVariant>
      <AvailableQuantity>1</AvailableQuantity>
      <AvailableQuantityInKg>1</AvailableQuantityInKg>
      <BarCode>sample string 4</BarCode>
      <CreatedDate>2025-12-06T10:00:06.6058311+05:30</CreatedDate>
      <ItemTypeId>1</ItemTypeId>
      <OfferDiscount>1.1</OfferDiscount>
      <Price>1</Price>
      <ProductId>1</ProductId>
      <ProductVariantId>1</ProductVariantId>
      <ProductVariantImageUrl>sample string 3</ProductVariantImageUrl>
      <StatusTypeId>1</StatusTypeId>
      <UnitId>1</UnitId>
      <UpdatedDate>2025-12-06T10:00:06.6058311+05:30</UpdatedDate>
      <VariantName>sample string 2</VariantName>
    </ProductVariant>
    <ProductVariant>
      <AvailableQuantity>1</AvailableQuantity>
      <AvailableQuantityInKg>1</AvailableQuantityInKg>
      <BarCode>sample string 4</BarCode>
      <CreatedDate>2025-12-06T10:00:06.6058311+05:30</CreatedDate>
      <ItemTypeId>1</ItemTypeId>
      <OfferDiscount>1.1</OfferDiscount>
      <Price>1</Price>
      <ProductId>1</ProductId>
      <ProductVariantId>1</ProductVariantId>
      <ProductVariantImageUrl>sample string 3</ProductVariantImageUrl>
      <StatusTypeId>1</StatusTypeId>
      <UnitId>1</UnitId>
      <UpdatedDate>2025-12-06T10:00:06.6058311+05:30</UpdatedDate>
      <VariantName>sample string 2</VariantName>
    </ProductVariant>
  </productVariantList>
</BillModel>