Skip to content

OR26 - Perform a refund of order lines of an order
⚠️ No Integration Allowed ⚠️
deprecated

Request

Deprecated endpoint

This API is going to be removed in a future update, please use OR28 instead.

Call Frequency
Maximum usage: On each new refund demand
Security
Shop-API-Key(Required scopes: ROLE_SHOP_ADMINROLE_PARTNER_ORDER_REFUND)
Path
order_idstringrequired

Order's identifier

Query
shop_idinteger, (int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

Bodyapplication/json
order_linesArray of objectsrequired

List of order line's representations

curl -i -X PUT \
  'https://your-instance.mirakl.net/api/orders/{order_id}/refund?shop_id=0' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "order_lines": [
      {
        "id": "MIR-VOE5RDAE-A-1",
        "reason_code": 15
      }
    ]
  }'

Responses

No Content