Update order line actual measurement: it will create a refund or cancelation associated to the order line.
curl -i -X PUT \
'https://your-instance.mirakl.net/api/orders/adjust?shop_id=0' \
-H 'Content-Type: application/json' \
-d '{
"order_lines": [
{
"actual_measurement": 0,
"order_line_id": "string"
}
]
}'
{ "order_lines_adjusted": [ { … } ] }
curl -i -X GET \
'https://your-instance.mirakl.net/api/orders/{order_id}/evaluation?locale=string&shop_id=0'
{ "assessments": [ { … } ], "comment": "string", "customer_id": "string", "date": "2019-08-24T14:15:22Z", "firstname": "string", "grade": 0, "last_updated_date": "2019-08-24T14:15:22Z", "lastname": "string", "reply": { "comment": "string", "date": "2019-08-24T14:15:22Z", "type": "string" }, "visible": true }
curl -i -X GET \
'https://your-instance.mirakl.net/api/orders/documents?order_ids=string&shop_id=0'
{ "order_documents": [ { … } ] }