POST Order/PlaceCartOrder
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": "44c8dfc6-014e-4fec-bb71-90dc87bd77de", "ProductId": "f5054fb1-e8ef-40cc-a9db-cbf88fa38bb1", "UserId": "f4293f0b-ed65-4445-bb5a-6648f3ef3aaf", "ProductQty": 4, "totalPrice": 5.1, "Products": [ { "Id": "2560f529-c89a-4878-8742-365f3d63a238", "ProductId": "590fe399-5312-434a-a929-93c068f40fdb", "ProductQty": 3, "totalPrice": 4.1, "PaymentMode": 5, "PlacedOn": "2024-12-23T03:49:31.5045072+05:30" }, { "Id": "2560f529-c89a-4878-8742-365f3d63a238", "ProductId": "590fe399-5312-434a-a929-93c068f40fdb", "ProductQty": 3, "totalPrice": 4.1, "PaymentMode": 5, "PlacedOn": "2024-12-23T03:49:31.5045072+05:30" } ], "PaymentMode": 6, "PlacedOn": "2024-12-23T03:49:31.5045072+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>44c8dfc6-014e-4fec-bb71-90dc87bd77de</Id> <PaymentMode>6</PaymentMode> <PlacedOn>2024-12-23T03:49:31.5045072+05:30</PlacedOn> <ProductId>f5054fb1-e8ef-40cc-a9db-cbf88fa38bb1</ProductId> <ProductQty>4</ProductQty> <Products> <Productload> <Id>2560f529-c89a-4878-8742-365f3d63a238</Id> <PaymentMode>5</PaymentMode> <PlacedOn>2024-12-23T03:49:31.5045072+05:30</PlacedOn> <ProductId>590fe399-5312-434a-a929-93c068f40fdb</ProductId> <ProductQty>3</ProductQty> <totalPrice>4.1</totalPrice> </Productload> <Productload> <Id>2560f529-c89a-4878-8742-365f3d63a238</Id> <PaymentMode>5</PaymentMode> <PlacedOn>2024-12-23T03:49:31.5045072+05:30</PlacedOn> <ProductId>590fe399-5312-434a-a929-93c068f40fdb</ProductId> <ProductQty>3</ProductQty> <totalPrice>4.1</totalPrice> </Productload> </Products> <UserId>f4293f0b-ed65-4445-bb5a-6648f3ef3aaf</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.