POST Order/AddToCart
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": "9713f6a6-a6ed-4576-8488-710934d196f1", "ProductId": "afa1be68-d512-4576-a645-3db6f056e783", "UserId": "2d3db1cf-48b2-4c01-b1a7-9a848044b2ab", "ProductQty": 4, "totalPrice": 5.1, "Products": [ { "Id": "f081733b-b21c-4c17-a466-174e3aa108f6", "ProductId": "4033ffa7-6e83-4062-91d1-0be67e033805", "ProductQty": 3, "totalPrice": 4.1, "PaymentMode": 5, "PlacedOn": "2024-12-23T03:46:32.7969227+05:30" }, { "Id": "f081733b-b21c-4c17-a466-174e3aa108f6", "ProductId": "4033ffa7-6e83-4062-91d1-0be67e033805", "ProductQty": 3, "totalPrice": 4.1, "PaymentMode": 5, "PlacedOn": "2024-12-23T03:46:32.7969227+05:30" } ], "PaymentMode": 6, "PlacedOn": "2024-12-23T03:46:32.7969227+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>9713f6a6-a6ed-4576-8488-710934d196f1</Id> <PaymentMode>6</PaymentMode> <PlacedOn>2024-12-23T03:46:32.7969227+05:30</PlacedOn> <ProductId>afa1be68-d512-4576-a645-3db6f056e783</ProductId> <ProductQty>4</ProductQty> <Products> <Productload> <Id>f081733b-b21c-4c17-a466-174e3aa108f6</Id> <PaymentMode>5</PaymentMode> <PlacedOn>2024-12-23T03:46:32.7969227+05:30</PlacedOn> <ProductId>4033ffa7-6e83-4062-91d1-0be67e033805</ProductId> <ProductQty>3</ProductQty> <totalPrice>4.1</totalPrice> </Productload> <Productload> <Id>f081733b-b21c-4c17-a466-174e3aa108f6</Id> <PaymentMode>5</PaymentMode> <PlacedOn>2024-12-23T03:46:32.7969227+05:30</PlacedOn> <ProductId>4033ffa7-6e83-4062-91d1-0be67e033805</ProductId> <ProductQty>3</ProductQty> <totalPrice>4.1</totalPrice> </Productload> </Products> <UserId>2d3db1cf-48b2-4c01-b1a7-9a848044b2ab</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.