POST Order/PlaceOrder
Request Information
URI Parameters
None.
Body Parameters
OrderModelName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
ProductId | globally unique identifier |
None. |
|
UserId | globally unique identifier |
None. |
|
ProductQty | integer |
None. |
|
totalPrice | decimal number |
None. |
|
Products | Collection of Productload |
None. |
|
PaymentMode | integer |
None. |
|
PlacedOn | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "8f831583-e79e-49f1-89e0-0d1dbcdec393", "ProductId": "aa58385d-d3d8-4ff7-bfcc-84d41c8929a8", "UserId": "3000a261-e204-4f00-a1a6-e1579e3b36b9", "ProductQty": 4, "totalPrice": 5.1, "Products": [ { "Id": "71d14db1-6437-4806-aa69-0b9b75e036bc", "ProductId": "7172a42b-1f19-4fad-a13c-f22cf80caec6", "ProductQty": 3, "totalPrice": 4.1, "PaymentMode": 5, "PlacedOn": "2024-12-23T04:16:16.245886+05:30" }, { "Id": "71d14db1-6437-4806-aa69-0b9b75e036bc", "ProductId": "7172a42b-1f19-4fad-a13c-f22cf80caec6", "ProductQty": 3, "totalPrice": 4.1, "PaymentMode": 5, "PlacedOn": "2024-12-23T04:16:16.245886+05:30" } ], "PaymentMode": 6, "PlacedOn": "2024-12-23T04:16:16.245886+05:30" }
application/xml, text/xml
Sample:
<OrderModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ONPETApi.Models"> <Id>8f831583-e79e-49f1-89e0-0d1dbcdec393</Id> <PaymentMode>6</PaymentMode> <PlacedOn>2024-12-23T04:16:16.245886+05:30</PlacedOn> <ProductId>aa58385d-d3d8-4ff7-bfcc-84d41c8929a8</ProductId> <ProductQty>4</ProductQty> <Products> <Productload> <Id>71d14db1-6437-4806-aa69-0b9b75e036bc</Id> <PaymentMode>5</PaymentMode> <PlacedOn>2024-12-23T04:16:16.245886+05:30</PlacedOn> <ProductId>7172a42b-1f19-4fad-a13c-f22cf80caec6</ProductId> <ProductQty>3</ProductQty> <totalPrice>4.1</totalPrice> </Productload> <Productload> <Id>71d14db1-6437-4806-aa69-0b9b75e036bc</Id> <PaymentMode>5</PaymentMode> <PlacedOn>2024-12-23T04:16:16.245886+05:30</PlacedOn> <ProductId>7172a42b-1f19-4fad-a13c-f22cf80caec6</ProductId> <ProductQty>3</ProductQty> <totalPrice>4.1</totalPrice> </Productload> </Products> <UserId>3000a261-e204-4f00-a1a6-e1579e3b36b9</UserId> <totalPrice>5.1</totalPrice> </OrderModel>
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.