POST api/orders/{orderId}/rate?customerId={customerId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| orderId | integer |
Required |
|
| customerId | integer |
Required |
Body Parameters
RateOrderRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| StoreRating | decimal number |
None. |
|
| DriverRating | decimal number |
None. |
|
| Comment | string |
None. |
|
| MediaUrl | string |
None. |
|
| MediaType | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"storeRating": 1.0,
"driverRating": 1.0,
"comment": "sample string 2",
"mediaUrl": "sample string 3",
"mediaType": "sample string 4"
}
application/xml, text/xml
Sample:
<RateOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Del.Api.Models.Dtos"> <Comment>sample string 2</Comment> <DriverRating>1</DriverRating> <MediaType>sample string 4</MediaType> <MediaUrl>sample string 3</MediaUrl> <StoreRating>1</StoreRating> </RateOrderRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.