Products
/- Mirakl Platform
- Rest Operator APIs
- OR28 - Perform refunds on order lines
OR04 - Patch update orders
OR11 - List orders with pagination
OR75 - List all the order taxes available on the platform
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
OR31 - Update the custom fields of an order and its order lines
OR32 - Adjust order line
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
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
OR28 - Perform refunds on...
Call Frequency
Recommended usage: At each refund request
Maximum usage: At each refund request
Security
Operator-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.
Enum: "TAX_INCLUDED", "TAX_EXCLUDED"
- URL to be replaced by your Mirakl instance URLhttps://your-instance.mirakl.net/api/orders/refund
curl -i -X PUT \
https://your-instance.mirakl.net/api/orders/refund \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"order_tax_mode": "TAX_EXCLUDED",
"refunds": [
{
"amount": 1.5,
"currency_iso_code": "USD",
"excluded_from_shipment": false,
"fees": [
{
"amount": 0.5,
"code": "CARD_FEE"
},
{
"amount": 0.25,
"code": "EU_DRS"
}
],
"order_line_id": "Order_00010-A-1",
"quantity": 0,
"reason_code": "15",
"shipping_amount": 2,
"shipping_taxes": [
{
"amount": "1",
"code": "tax1"
},
{
"amount": "1",
"code": "tax2"
}
],
"tax_legal_notice": "Tax legal notice",
"taxes": [
{
"amount": "1",
"code": "tax1"
},
{
"amount": "1",
"code": "tax2"
}
]
}
]
}'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 refund.
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
{ "order_tax_mode": "TAX_EXCLUDED", "refunds": [ { … } ] }