POST api/Order/InitiateOrder
Request Information
URI Parameters
None.
Body Parameters
OrderInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderId | globally unique identifier |
None. |
|
| ItemId | string |
None. |
|
| CategoryId | integer |
None. |
|
| Price | decimal number |
None. |
|
| DiscountPrice | decimal number |
None. |
|
| Taxes | decimal number |
None. |
|
| CouponCode | string |
None. |
|
| UserId | string |
None. |
|
| CreatedDate | date |
None. |
|
| PaymentOrderId | string |
None. |
|
| OrderItems | Collection of OrderItems |
None. |
Request Formats
application/json, text/json
Sample:
{
"OrderId": "64fc8043-6446-4aef-8f3f-849b0926c6e5",
"ItemId": "sample string 2",
"CategoryId": 3,
"Price": 4.0,
"DiscountPrice": 5.0,
"Taxes": 6.0,
"CouponCode": "sample string 7",
"UserId": "sample string 8",
"CreatedDate": "2025-12-10T12:56:00.890848-08:00",
"PaymentOrderId": "sample string 10",
"OrderItems": [
{
"Id": "8dacc7d7-336b-4702-b025-0de1ab4e8b79",
"ItemId": "f80416ff-d114-4656-aef6-a0d8a81fd2d8",
"Quantity": 3,
"Rate": 4.0,
"ItemTitle": "sample string 5",
"CartId": "320bf28a-43b3-4d0d-8aa4-6c94f104cd39"
},
{
"Id": "8dacc7d7-336b-4702-b025-0de1ab4e8b79",
"ItemId": "f80416ff-d114-4656-aef6-a0d8a81fd2d8",
"Quantity": 3,
"Rate": 4.0,
"ItemTitle": "sample string 5",
"CartId": "320bf28a-43b3-4d0d-8aa4-6c94f104cd39"
}
]
}
application/xml, text/xml
Sample:
<OrderInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.STUDY.Models.Store">
<CategoryId>3</CategoryId>
<CouponCode>sample string 7</CouponCode>
<CreatedDate>2025-12-10T12:56:00.890848-08:00</CreatedDate>
<DiscountPrice>5</DiscountPrice>
<ItemId>sample string 2</ItemId>
<OrderId>64fc8043-6446-4aef-8f3f-849b0926c6e5</OrderId>
<OrderItems>
<OrderItems>
<CartId>320bf28a-43b3-4d0d-8aa4-6c94f104cd39</CartId>
<Id>8dacc7d7-336b-4702-b025-0de1ab4e8b79</Id>
<ItemId>f80416ff-d114-4656-aef6-a0d8a81fd2d8</ItemId>
<ItemTitle>sample string 5</ItemTitle>
<Quantity>3</Quantity>
<Rate>4</Rate>
</OrderItems>
<OrderItems>
<CartId>320bf28a-43b3-4d0d-8aa4-6c94f104cd39</CartId>
<Id>8dacc7d7-336b-4702-b025-0de1ab4e8b79</Id>
<ItemId>f80416ff-d114-4656-aef6-a0d8a81fd2d8</ItemId>
<ItemTitle>sample string 5</ItemTitle>
<Quantity>3</Quantity>
<Rate>4</Rate>
</OrderItems>
</OrderItems>
<PaymentOrderId>sample string 10</PaymentOrderId>
<Price>4</Price>
<Taxes>6</Taxes>
<UserId>sample string 8</UserId>
</OrderInfo>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.