Refund an order
documentedRefund a completed order (full or partial).
POST /orders/{order_id}/refundOrdersno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://sandbox-merchant.revolut.com/api/1.0/orders/{{$order_id}}/refund" \
-X POST \
-H "Authorization: Bearer {{REVOLUT_SECRET}}" \
-H "Revolut-Api-Version: 2025-12-04" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Idempotency-Key: {{$idempotency_key}}" \
-d '{"amount": {{$amount}}, "currency": "{{$currency}}", "merchant_order_data": {"reference": "{{$merchant_order_ref}}", "metadata": {"internal_note": "{{$internal_note}}"}}, "description": "{{$description}}"}'