POST api/enduser/orders
Request Information
URI Parameters
None.
Body Parameters
EndUserOrderRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | globally unique identifier |
Required |
|
| Products | Collection of CommonOrderRequestProduct |
None. |
|
| Name | string |
None. |
|
| Contact | string |
None. |
|
| DeliveryStreet | string |
None. |
|
| DeliveryDoor | string |
None. |
|
| DeliveryFloor | string |
None. |
|
| DeliveryLocality | string |
None. |
|
| DeliveryPostalCode | string |
None. |
|
| DeliveryCountry | string |
None. |
|
| DeliveryCountryCode | string |
None. |
|
| DeliveryLatitude | string |
None. |
|
| DeliveryLongitude | string |
None. |
|
| PaymentMethod | PaymentMethod |
None. |
|
| PaymentMethodData | string |
None. |
|
| TotalAmount | integer |
None. |
|
| Currency | string |
None. |
|
| Virtual | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": "eb828aca-5433-4829-bb30-47cbaf739b1c",
"Products": [
{
"ProductId": "7abc78d8-49fd-41c0-90b3-671e03ec1bcc",
"Price": 2,
"Currency": "sample string 3",
"Quantity": 4,
"Virtual": true
},
{
"ProductId": "7abc78d8-49fd-41c0-90b3-671e03ec1bcc",
"Price": 2,
"Currency": "sample string 3",
"Quantity": 4,
"Virtual": true
}
],
"Name": "sample string 2",
"Contact": "sample string 3",
"DeliveryStreet": "sample string 4",
"DeliveryDoor": "sample string 5",
"DeliveryFloor": "sample string 6",
"DeliveryLocality": "sample string 7",
"DeliveryPostalCode": "sample string 8",
"DeliveryCountry": "sample string 9",
"DeliveryCountryCode": "sample string 10",
"DeliveryLatitude": "sample string 11",
"DeliveryLongitude": "sample string 12",
"PaymentMethod": 0,
"PaymentMethodData": "sample string 13",
"TotalAmount": 14,
"Currency": "sample string 15",
"Virtual": true
}
application/xml, text/xml
Sample:
<EndUserOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebServices.Models">
<Contact>sample string 3</Contact>
<Currency>sample string 15</Currency>
<DeliveryCountry>sample string 9</DeliveryCountry>
<DeliveryCountryCode>sample string 10</DeliveryCountryCode>
<DeliveryDoor>sample string 5</DeliveryDoor>
<DeliveryFloor>sample string 6</DeliveryFloor>
<DeliveryLatitude>sample string 11</DeliveryLatitude>
<DeliveryLocality>sample string 7</DeliveryLocality>
<DeliveryLongitude>sample string 12</DeliveryLongitude>
<DeliveryPostalCode>sample string 8</DeliveryPostalCode>
<DeliveryStreet>sample string 4</DeliveryStreet>
<Name>sample string 2</Name>
<PaymentMethod>DeliveryCharge</PaymentMethod>
<PaymentMethodData>sample string 13</PaymentMethodData>
<Products>
<CommonOrderRequestProduct>
<Currency>sample string 3</Currency>
<Price>2</Price>
<ProductId>7abc78d8-49fd-41c0-90b3-671e03ec1bcc</ProductId>
<Quantity>4</Quantity>
<Virtual>true</Virtual>
</CommonOrderRequestProduct>
<CommonOrderRequestProduct>
<Currency>sample string 3</Currency>
<Price>2</Price>
<ProductId>7abc78d8-49fd-41c0-90b3-671e03ec1bcc</ProductId>
<Quantity>4</Quantity>
<Virtual>true</Virtual>
</CommonOrderRequestProduct>
</Products>
<TotalAmount>14</TotalAmount>
<Virtual>true</Virtual>
<UserId>eb828aca-5433-4829-bb30-47cbaf739b1c</UserId>
</EndUserOrderRequest>
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.