POST api/Order/CreateOrder
Request Information
URI Parameters
None.
Body Parameters
OrderAndShipping| Name | Description | Type | Additional information |
|---|---|---|---|
| Order | Order |
None. |
|
| Ship | ShippingDetails |
None. |
Request Formats
application/json, text/json
Sample:
{
"Order": {
"Id": 1,
"OrderNumber": "sample string 2",
"CustomerId": 1,
"CartId": 1,
"ItemCount": 1,
"TotalCount": 1,
"OrderDate": "2026-10-06T22:45:11.6278727+05:30",
"OrderStatus": "sample string 3",
"PaymentId": 1,
"PaidAmount": 1.0,
"DueAmount": 1.0,
"BasePrice": 1.0,
"SalePrice": 1.0,
"DiscountPrice": 1.0,
"Currency": "sample string 4",
"CouponCode": "sample string 5",
"PaymentStatus": "sample string 6",
"PaymentMode": "sample string 7",
"PaymentDate": "2026-10-06T22:45:11.6295776+05:30",
"RequiredDate": "2026-10-06T22:45:11.6295776+05:30",
"ShipDate": "2026-10-06T22:45:11.6295776+05:30",
"ShipperId": 1,
"ShippingCharge": 1.0,
"ShippingAddress": "sample string 8",
"ShippingMessage": "sample string 9",
"ErrorMessage": "sample string 10",
"IsActive": true,
"CreatedBy": "sample string 11",
"CreatedDate": "2026-10-06T22:45:11.6305299+05:30",
"LastPaymentTriedDate": "2026-10-06T22:45:11.6305299+05:30",
"UpdatedBy": "sample string 12",
"UpdatedDate": "2026-10-06T22:45:11.6305299+05:30",
"PayTranscationID": "sample string 13",
"PGReferenceNo": "sample string 14",
"PaymentRetryEnable": 1,
"OrderDetailList": [
{
"Id": 1,
"OrderId": 1,
"OrderNumber": "sample string 2",
"OrderLineNumber": 3,
"ProductId": 1,
"ProductImage": "sample string 4",
"ProductName": "sample string 5",
"ProductCode": "sample string 6",
"ProductDescription": "sample string 7",
"OrderQuantity": 1,
"Status": "sample string 8",
"ReturnQuantity": 1,
"ActualQuantity": 1,
"Size": "sample string 9",
"UnitofSize": "sample string 10",
"Weight": "sample string 11",
"UnitOfWeight": "sample string 12",
"Dimension": "sample string 13",
"Color": "sample string 14",
"PromotionCode": "sample string 15",
"CurrencyCode": "sample string 16",
"PerUnitPrice": 1.0,
"OriginalPrice": 1.0,
"DiscountPercent": 1.0,
"DiscountPrice": 1.0,
"FinalPrice": 1.0,
"RefundPrice": 1.0,
"PaidPrice": 1.0,
"OrderDate": "2026-10-06T22:45:11.6337441+05:30",
"TrackingNumber": "sample string 17",
"CreatedBy": "sample string 18",
"CreatedDate": "2026-10-06T22:45:11.6342786+05:30",
"UpdatedBy": "sample string 19",
"MaxReturnDay": 1,
"UpdatedDate": "2026-10-06T22:45:11.6342786+05:30",
"PaymentMode": "sample string 20",
"invoiceid": "sample string 21"
},
{
"Id": 1,
"OrderId": 1,
"OrderNumber": "sample string 2",
"OrderLineNumber": 3,
"ProductId": 1,
"ProductImage": "sample string 4",
"ProductName": "sample string 5",
"ProductCode": "sample string 6",
"ProductDescription": "sample string 7",
"OrderQuantity": 1,
"Status": "sample string 8",
"ReturnQuantity": 1,
"ActualQuantity": 1,
"Size": "sample string 9",
"UnitofSize": "sample string 10",
"Weight": "sample string 11",
"UnitOfWeight": "sample string 12",
"Dimension": "sample string 13",
"Color": "sample string 14",
"PromotionCode": "sample string 15",
"CurrencyCode": "sample string 16",
"PerUnitPrice": 1.0,
"OriginalPrice": 1.0,
"DiscountPercent": 1.0,
"DiscountPrice": 1.0,
"FinalPrice": 1.0,
"RefundPrice": 1.0,
"PaidPrice": 1.0,
"OrderDate": "2026-10-06T22:45:11.6337441+05:30",
"TrackingNumber": "sample string 17",
"CreatedBy": "sample string 18",
"CreatedDate": "2026-10-06T22:45:11.6342786+05:30",
"UpdatedBy": "sample string 19",
"MaxReturnDay": 1,
"UpdatedDate": "2026-10-06T22:45:11.6342786+05:30",
"PaymentMode": "sample string 20",
"invoiceid": "sample string 21"
}
]
},
"Ship": {
"Id": 1,
"OrderId": 1,
"OrderDetailId": 1,
"CustomerId": 1,
"ShipperId": 1,
"TrackingNumber": "sample string 2",
"ShipToType": "sample string 3",
"IsPickup": true,
"AddressId": 1,
"ShippingAddress": "sample string 4",
"ShippingMessage": "sample string 5",
"ShippingCharge": 1.0,
"Currency": "sample string 6",
"ItemCount": 1,
"PackageCount": 1,
"OrderDate": "2026-10-06T22:45:11.6358974+05:30",
"RequiredDate": "2026-10-06T22:45:11.6358974+05:30",
"ShipDate": "2026-10-06T22:45:11.6358974+05:30",
"ErrorMessage": "sample string 7",
"ShippingStatus": "sample string 8",
"CreatedBy": "sample string 9",
"CreatedDate": "2026-10-06T22:45:11.6364281+05:30",
"UpdatedBy": "sample string 10",
"UpdatedDate": "2026-10-06T22:45:11.6364281+05:30",
"PaymentMode": "sample string 11"
}
}
application/xml, text/xml
Sample:
<OrderAndShipping xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models.DbEntities">
<Order>
<BasePrice>1</BasePrice>
<CartId>1</CartId>
<CouponCode>sample string 5</CouponCode>
<CreatedBy>sample string 11</CreatedBy>
<CreatedDate>2026-10-06T22:45:11.6305299+05:30</CreatedDate>
<Currency>sample string 4</Currency>
<CustomerId>1</CustomerId>
<DiscountPrice>1</DiscountPrice>
<DueAmount>1</DueAmount>
<ErrorMessage>sample string 10</ErrorMessage>
<Id>1</Id>
<IsActive>true</IsActive>
<ItemCount>1</ItemCount>
<LastPaymentTriedDate>2026-10-06T22:45:11.6305299+05:30</LastPaymentTriedDate>
<OrderDate>2026-10-06T22:45:11.6278727+05:30</OrderDate>
<OrderDetailList>
<OrderDetails>
<ActualQuantity>1</ActualQuantity>
<Color>sample string 14</Color>
<CreatedBy>sample string 18</CreatedBy>
<CreatedDate>2026-10-06T22:45:11.6342786+05:30</CreatedDate>
<CurrencyCode>sample string 16</CurrencyCode>
<Dimension>sample string 13</Dimension>
<DiscountPercent>1</DiscountPercent>
<DiscountPrice>1</DiscountPrice>
<FinalPrice>1</FinalPrice>
<Id>1</Id>
<MaxReturnDay>1</MaxReturnDay>
<OrderDate>2026-10-06T22:45:11.6337441+05:30</OrderDate>
<OrderId>1</OrderId>
<OrderLineNumber>3</OrderLineNumber>
<OrderNumber>sample string 2</OrderNumber>
<OrderQuantity>1</OrderQuantity>
<OriginalPrice>1</OriginalPrice>
<PaidPrice>1</PaidPrice>
<PaymentMode>sample string 20</PaymentMode>
<PerUnitPrice>1</PerUnitPrice>
<ProductCode>sample string 6</ProductCode>
<ProductDescription>sample string 7</ProductDescription>
<ProductId>1</ProductId>
<ProductImage>sample string 4</ProductImage>
<ProductName>sample string 5</ProductName>
<PromotionCode>sample string 15</PromotionCode>
<RefundPrice>1</RefundPrice>
<ReturnQuantity>1</ReturnQuantity>
<Size>sample string 9</Size>
<Status>sample string 8</Status>
<TrackingNumber>sample string 17</TrackingNumber>
<UnitOfWeight>sample string 12</UnitOfWeight>
<UnitofSize>sample string 10</UnitofSize>
<UpdatedBy>sample string 19</UpdatedBy>
<UpdatedDate>2026-10-06T22:45:11.6342786+05:30</UpdatedDate>
<Weight>sample string 11</Weight>
<invoiceid>sample string 21</invoiceid>
</OrderDetails>
<OrderDetails>
<ActualQuantity>1</ActualQuantity>
<Color>sample string 14</Color>
<CreatedBy>sample string 18</CreatedBy>
<CreatedDate>2026-10-06T22:45:11.6342786+05:30</CreatedDate>
<CurrencyCode>sample string 16</CurrencyCode>
<Dimension>sample string 13</Dimension>
<DiscountPercent>1</DiscountPercent>
<DiscountPrice>1</DiscountPrice>
<FinalPrice>1</FinalPrice>
<Id>1</Id>
<MaxReturnDay>1</MaxReturnDay>
<OrderDate>2026-10-06T22:45:11.6337441+05:30</OrderDate>
<OrderId>1</OrderId>
<OrderLineNumber>3</OrderLineNumber>
<OrderNumber>sample string 2</OrderNumber>
<OrderQuantity>1</OrderQuantity>
<OriginalPrice>1</OriginalPrice>
<PaidPrice>1</PaidPrice>
<PaymentMode>sample string 20</PaymentMode>
<PerUnitPrice>1</PerUnitPrice>
<ProductCode>sample string 6</ProductCode>
<ProductDescription>sample string 7</ProductDescription>
<ProductId>1</ProductId>
<ProductImage>sample string 4</ProductImage>
<ProductName>sample string 5</ProductName>
<PromotionCode>sample string 15</PromotionCode>
<RefundPrice>1</RefundPrice>
<ReturnQuantity>1</ReturnQuantity>
<Size>sample string 9</Size>
<Status>sample string 8</Status>
<TrackingNumber>sample string 17</TrackingNumber>
<UnitOfWeight>sample string 12</UnitOfWeight>
<UnitofSize>sample string 10</UnitofSize>
<UpdatedBy>sample string 19</UpdatedBy>
<UpdatedDate>2026-10-06T22:45:11.6342786+05:30</UpdatedDate>
<Weight>sample string 11</Weight>
<invoiceid>sample string 21</invoiceid>
</OrderDetails>
</OrderDetailList>
<OrderNumber>sample string 2</OrderNumber>
<OrderStatus>sample string 3</OrderStatus>
<PGReferenceNo>sample string 14</PGReferenceNo>
<PaidAmount>1</PaidAmount>
<PayTranscationID>sample string 13</PayTranscationID>
<PaymentDate>2026-10-06T22:45:11.6295776+05:30</PaymentDate>
<PaymentId>1</PaymentId>
<PaymentMode>sample string 7</PaymentMode>
<PaymentRetryEnable>1</PaymentRetryEnable>
<PaymentStatus>sample string 6</PaymentStatus>
<RequiredDate>2026-10-06T22:45:11.6295776+05:30</RequiredDate>
<SalePrice>1</SalePrice>
<ShipDate>2026-10-06T22:45:11.6295776+05:30</ShipDate>
<ShipperId>1</ShipperId>
<ShippingAddress>sample string 8</ShippingAddress>
<ShippingCharge>1</ShippingCharge>
<ShippingMessage>sample string 9</ShippingMessage>
<TotalCount>1</TotalCount>
<UpdatedBy>sample string 12</UpdatedBy>
<UpdatedDate>2026-10-06T22:45:11.6305299+05:30</UpdatedDate>
</Order>
<Ship>
<AddressId>1</AddressId>
<CreatedBy>sample string 9</CreatedBy>
<CreatedDate>2026-10-06T22:45:11.6364281+05:30</CreatedDate>
<Currency>sample string 6</Currency>
<CustomerId>1</CustomerId>
<ErrorMessage>sample string 7</ErrorMessage>
<Id>1</Id>
<IsPickup>true</IsPickup>
<ItemCount>1</ItemCount>
<OrderDate>2026-10-06T22:45:11.6358974+05:30</OrderDate>
<OrderDetailId>1</OrderDetailId>
<OrderId>1</OrderId>
<PackageCount>1</PackageCount>
<PaymentMode>sample string 11</PaymentMode>
<RequiredDate>2026-10-06T22:45:11.6358974+05:30</RequiredDate>
<ShipDate>2026-10-06T22:45:11.6358974+05:30</ShipDate>
<ShipToType>sample string 3</ShipToType>
<ShipperId>1</ShipperId>
<ShippingAddress>sample string 4</ShippingAddress>
<ShippingCharge>1</ShippingCharge>
<ShippingMessage>sample string 5</ShippingMessage>
<ShippingStatus>sample string 8</ShippingStatus>
<TrackingNumber>sample string 2</TrackingNumber>
<UpdatedBy>sample string 10</UpdatedBy>
<UpdatedDate>2026-10-06T22:45:11.6364281+05:30</UpdatedDate>
</Ship>
</OrderAndShipping>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |