Products
/- Mirakl Platform
- Rest Front APIs
- OR31 - Update the custom fields of an order and its order lines
OR04 - Patch update orders
OR11 - List orders with pagination
OR07 - Update order line shipping origin
OR13 - Export orders asynchronously
OR14 - Get the status of an asynchronous order export.
OR15 - Retrieve order export files once asynchronous export is complete (OR13).
OR21 - Accept or refuse order lines
OR23 - Update carrier tracking information for a specific order
OR24 - Validate the shipment of an order
OR29 - Perform a full cancelation of an order
OR30 - Perform cancelations on order lines
OR33 - Fully cancel a list of order lines of an order
OR51 - Get the evaluation of an order
OR72 - Lists order's documents
OR73 - Download one or multiple documents attached to one or multiple orders
OR74 - Upload documents to attach to an order
OR75 - List all the order taxes available on the platform
OR76 - Delete an order document
OR12 - Get information about an order
OR41 - List messages of an order
OR31 - Update the custom...
Description
Only specified custom field values will be updated.
In order to delete an custom field's value, set it to null or an empty string. Note that you may not delete the value of a required custom field value.
Output will return information on the status of the update attempt by giving:
- either all of the order and its order lines custom field values after the update
- or in case of errors, the list of errors and the body of the initial call
Call Frequency
Recommended usage: Each time a custom field is updated on an order or on an order line
Maximum usage: 5 calls per second
Security
Front-Bearer-Token or OAuth-2
- URL to be replaced by your Mirakl instance URLhttps://your-instance.mirakl.net/api/orders/{order_id}/additional_fields
curl -i -X PUT \
'https://your-instance.mirakl.net/api/orders/{order_id}/additional_fields' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"order_additional_fields": [
{
"code": "ecotax",
"value": [
"15"
]
}
],
"order_lines": [
{
"order_line_additional_fields": [
{
"code": "delivery-countries",
"value": [
"Canada"
]
}
],
"order_line_id": "Order_00014-A-1"
}
]
}'Response
{ "order_update_result": { "order_additional_fields": [ … ], "order_lines": [ … ] } }