Products
/- Mirakl Platform
- Rest Seller APIs
- OR32 - Adjust order line
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
OR28 - Perform refunds on order lines
OR29 - Perform a full cancelation of an order
OR30 - Perform cancelations on order lines
OR31 - Update the custom fields of an order and its 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
OR26 - Perform a refund of order lines of an order
OR41 - List messages of an order
OR32 - Adjust order line
Description
Update order line actual measurement either upwards or downwards, within the limit defined at the platform level.
Error Codes
| Code | Description |
|---|---|
ORDER_ADJUSTMENT_FEATURE_DISABLED | The order adjustment feature is not enabled |
ORDER_LINE_ADJUSTMENT_EQUAL_TO_ORDERED | The actual measurement equals the ordered measurement |
ORDER_LINE_ADJUSTMENT_EXCEEDS_DOWNWARD_LIMIT | The downward adjustment exceeds the allowed limit |
ORDER_LINE_ADJUSTMENT_EXCEEDS_UPWARD_LIMIT | The upward adjustment exceeds the allowed limit |
ORDER_LINE_ALREADY_ADJUSTED | The order line has already been adjusted |
ORDER_LINE_ALREADY_REFUNDED | The order line has already been refunded |
ORDER_LINE_DUPLICATE_ID | The order lines list contains duplicate order line IDs |
ORDER_LINE_INVALID_STATE | Order lines are not in the expected state for this operation |
ORDER_LINE_MISSING_MEASUREMENT | The order line does not have a measurement unit |
ORDER_LINE_NOT_FOUND | The requested order line does not exist or is not associated with the order |
ORDER_LINE_PAY_PER_SHIPMENT_NOT_ADJUSTABLE | The order line cannot be adjusted with the current pay-per-shipment state |
ORDER_LINE_PAY_PER_SHIPMENT_WAITING_DEBIT | The order line is part of a shipment waiting for debit |
ORDER_LINE_ZERO_AMOUNT | The order line amount is zero |
VALIDATION_ERROR | Input validation failed |
Call Frequency
Recommended usage: At each adjustment of one or multiple order lines
Maximum usage: Once per minute, 100 order lines per call
Security
Shop-API-Key(Required scopes: ROLE_SHOP_ADMINROLE_PARTNER_ORDER_ADJUST)
- URL to be replaced by your Mirakl instance URLhttps://your-instance.mirakl.net/api/orders/adjust
curl -i -X PUT \
'https://your-instance.mirakl.net/api/orders/adjust?shop_id=0' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"order_lines": [
{
"actual_measurement": 0.85,
"order_line_id": "ORDER_0014-A-1"
},
{
"actual_measurement": 1,
"order_line_id": "ORDER_9999-A-1"
}
]
}'