Note: closed or cancelled order cannot be updated.
Order custom attribute values to update.
Only specified custom attribute values will be updated. In order to delete a custom attribute value, set it to null
.
curl -i -X PUT \
'https://your-instance.mirakl.net/api/mms/orders/{order_id}' \
-H 'Content-Type: application/json' \
-d '{
"booking": {
"type": "string"
},
"custom_attribute_values": [
{
"code": "string",
"type": "string",
"value": {}
}
],
"price": {
"options": [
{
"code": "string",
"type": "string"
}
]
}
}'
{ "booking": { "type": "string" }, "can_evaluate": true, "commercial_order_id": "string", "commission": { "amount_excluding_taxes": 0, "amount_including_taxes": 0, "commission_taxes": [ … ] }, "consumption": { "type": "string" }, "currency_code": "string", "custom_attribute_values": [ { … } ], "customer": { "billing_address": { … }, "civility": "string", "email": "string", "first_name": "string", "id": "string", "last_name": "string", "locale": "string", "phone_number": "string" }, "date_accepted": "2019-08-24T14:15:22Z", "date_created": "2019-08-24T14:15:22Z", "date_updated": "2019-08-24T14:15:22Z", "has_open_incident": true, "id": "string", "imprint_number": "string", "location": { "type": "string" }, "payment_type": "string", "price": { "options": [ … ], "type": "string" }, "refunds": [ { … } ], "service": { "category": { … }, "code": "string", "custom_attribute_values": [ … ], "description": "string", "medias": [ … ], "model": { … }, "title": "string" }, "shop": { "id": 0, "name": "string" }, "state": "string", "warnings": [ "string" ], "workflow": { "type": "string" } }
curl -i -X PUT \
'https://your-instance.mirakl.net/api/mms/orders/{order_id}/accept'
curl -i -X PUT \
'https://your-instance.mirakl.net/api/mms/orders/{order_id}/refuse'
Service consumption date. Required only when the Order consumption must be confirmed by Shop
curl -i -X PUT \
'https://your-instance.mirakl.net/api/mms/orders/{order_id}/consume' \
-H 'Content-Type: application/json' \
-d '{
"date_consumed": "2019-08-24T14:15:22Z",
"voucher_code": "string"
}'
curl -i -X GET \
'https://your-instance.mirakl.net/api/mms/orders/{order_id}/evaluation?locale=string'
{ "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 }