Products
/- Mirakl Platform
- Rest Front APIs
- OR30 - Perform cancelations on 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
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
OR41 - List messages of an order
OR30 - Perform cancelatio...
Description
If the Shop partial cancelation feature is enabled by Mirakl Support Team:
- for
PAY_ON_DELIVERY,PAY_ON_DUE_DATEorPAY_ON_SHIPMENTworkflows: shop can only cancel a non-debited order. - for
NO_CUSTOMER_PAYMENT_CONFIRMATIONworkflow: shop can only cancel an unshipped order.
Call Frequency
Recommended usage: At each order (or order line) cancelation
Maximum usage: At each order (or order line) cancelation
Security
Front-Bearer-Token or OAuth-2
Please note: If the taxes are not specified, the prices with mode TAX_EXCLUDED and with mode TAX_INCLUDED will return the same amounts.
Possible values:
TAX_EXCLUDED: the price fields (price, unit price, shipping price and order total prices) do not include taxes.TAX_INCLUDED: the price fields include the tax amounts.- If not specified, the default order tax mode of the platform is used.
When the feature 'order level tax calculation' is enabled, the order_tax_mode provided must be the same as defined for the platform.
Enum: "TAX_INCLUDED", "TAX_EXCLUDED"
- URL to be replaced by your Mirakl instance URLhttps://your-instance.mirakl.net/api/orders/cancel
curl -i -X PUT \
https://your-instance.mirakl.net/api/orders/cancel \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"cancelations": [
{
"amount": 2,
"currency_iso_code": "USD",
"fees": [
{
"amount": 0.5,
"code": "CARD_FEE"
},
{
"amount": 0.25,
"code": "EU_DRS"
}
],
"order_line_id": "Order_00013-A-1",
"quantity": 0,
"reason_code": 34,
"shipping_amount": 0,
"shipping_taxes": [
{
"amount": "1",
"code": "tax1"
},
{
"amount": "1",
"code": "tax2"
}
],
"taxes": [
{
"amount": 1,
"code": "tax1"
},
{
"amount": 1,
"code": "tax2"
}
]
}
],
"order_tax_mode": "TAX_EXCLUDED"
}'OK
Please note: In case there is no tax, the prices will show the same amount in TAX_EXCLUDED and TAX_INCLUDED mode. The tax mode is only useful if taxes are specified in the cancelation.
Possible values:
TAX_EXCLUDED: the price fields (amount, shipping amount) are expressed without tax (taxes should be added to these prices in order to get the full amount including taxes).TAX_INCLUDED: the price fields include the tax amount.
Enum: "TAX_INCLUDED", "TAX_EXCLUDED"
Response
{ "cancelations": [ { … } ], "order_tax_mode": "TAX_EXCLUDED" }