Description
Note: closed or cancelled order cannot be updated.
- URL to be replaced by your Mirakl instance URLhttps://your-instance.mirakl.net/api/mms/orders/{order_id}
curl -i -X PUT \
'https://your-instance.mirakl.net/api/mms/orders/{order_id}?shop_id=0' \
-H 'Content-Type: application/json' \
-d '{
"custom_attribute_values": [
{
"code": "EQUIPT_TO_BRING",
"type": "TEXT",
"value": "a picnic"
},
{
"code": "AGE_MIN",
"type": "INTEGER"
}
],
"price": {
"amount": 20
}
}'OK
Customer who purchased the service.
The node customer is not present when:
- the order is not yet accepted
- the order is cancelled or closed and was never accepted
Anonymized customer email usable for notifications that do not expect an answer
Order state
Enum: "WAITING_SCORING", "SCORING_OK", "SCORING_KO", "WAITING_ACCEPTANCE", "ORDER_ACCEPTED", "ORDER_REFUSED", "ORDER_PENDING", "ORDER_CONSUMED", "ORDER_EXPIRED", "ORDER_CLOSED", "ORDER_CANCELLED"
Response
{ "booking": { "type": "NO_BOOKING" }, "can_evaluate": false, "commercial_order_id": "ZWXUBOH3", "consumption": { "date_consumed": "2017-08-10T12:40:18Z", "date_expiration": "2017-08-03T00:30:18Z", "type": "VOUCHER" }, "currency_code": "CAD", "custom_attribute_values": [ { … } ], "customer": { "billing_address": { … }, "civility": "Mr.", "email": "william.matos@email.com", "first_name": "William", "id": "578-78-7497", "last_name": "Matos", "locale": "de_DE", "phone_number": "0607080910" }, "date_created": "2017-06-03T00:30:18Z", "date_updated": "2017-06-03T00:30:18Z", "has_open_incident": false, "id": "ZWXUBOH3-2", "location": { "shop_locations": [ … ], "type": "AT_SHOP_LOCATION" }, "price": { "amount": 32.95, "options": [ … ], "quantity": 1, "type": "FIXED_PRICE" }, "refunds": [ { … } ], "service": { "category": { … }, "code": "FINE_DINNER_AT_ANGELO'S", "custom_attribute_values": [ … ], "medias": [ … ], "model": { … }, "title": "Fine dinner at Angelo's" }, "state": "ORDER_PENDING", "warnings": [ "PRICE_MISMATCH" ], "workflow": { "type": "PAY_ON_ACCEPTANCE" } }