POST api/Mirakl/Order/order/{order}/PostEvaluation

Post an evaluation on an order (OR52) Recommended : On each new order evaluation Maximum : On each new order evaluation.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
order

The identifier of the order

string

Required

Body Parameters

Evaluation
NameDescriptionTypeAdditional information
assessments

Collection of Assessment

None.

comment

string

None.

grade

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "assessments": [
    {
      "code": "sample string 1",
      "response": "sample string 2"
    },
    {
      "code": "sample string 1",
      "response": "sample string 2"
    }
  ],
  "comment": "sample string 1",
  "grade": 2.0
}

text/plain, application/octet-stream

Sample:
{"assessments":[{"code":"sample string 1","response":"sample string 2"},{"code":"sample string 1","response":"sample string 2"}],"comment":"sample string 1","grade":2.0}

application/xml, text/xml

Sample:
<Evaluation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mirakl.Wrapper.Models">
  <assessments>
    <Assessment>
      <code>sample string 1</code>
      <response>sample string 2</response>
    </Assessment>
    <Assessment>
      <code>sample string 1</code>
      <response>sample string 2</response>
    </Assessment>
  </assessments>
  <comment>sample string 1</comment>
  <grade>2</grade>
</Evaluation>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.