Orders
v2-refundOrderLines - Refund order lines
Changed onUse this API to refund order lines (all or part) of an order.
<div class="api-description-extension"> <div class="extension-title">Call Frequency</div> <div class="recommended-call-frequency">Recommended usage: At each refund request</div> <div class="max-call-frequency">Maximum usage: At each refund request</div> </div>post/v2/orders/{order_id}/refund
Request
- Base URLhttps://miraklconnect.com/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
order_idstring required
Order identifier in Mirakl Connect
Request body
Example request
{
"refunds": [
{
"order_line_id": "01JYGX3F6A2P8QW4KZRD9TBEH5",
"price": {
"currency": "EUR"
},
"product_id": "SELLER_ID_1",
"quantity": 10,
"shipping_price": {
"currency": "EUR"
},
"shipping_taxes": [
{
"amount": {
"currency": "EUR"
}
}
],
"taxes": [
{
"amount": {
"currency": "EUR"
}
}
]
}
]
}Response
Accepted. The refund request will be processed asynchronously.
Example response
{
"action_id": "1ba5fc4b-c4fd-4251-880b-3052e301bbd4",
"tracking_id": "1ba5fc4b-c4fd-4251-880b-3052e301bbd4"
}Changes
- breaking
request property
//was restricted to a list of enum values - info
added the new
AGREEMENTenum value to the request property// - info
added the new
CUSTOMER_CANCELATIONenum value to the request property// - info
added the new
DEFECTenum value to the request property// - info
added the new
ITEM_NOT_RECEIVEDenum value to the request property// - info
added the new
OUT_OF_STOCKenum value to the request property// - info
added the new
RETURNenum value to the request property// - info
added the new
UNABLE_TO_DELIVERenum value to the request property//
- breaking