Malaleem API

Malaleem API

Tool: refund_payment

Refund all or part of a paid session — the same refund as `POST /api/v1/checkout/:id/refund` — and return the refund object `{id, session_id, amount, currency, status, provider_ref, reason}`. Arguments: `id` (session id or token, required), `idempotency_key` (string, required), `amount` (integer minor units, optional — defaults to everything not yet refunded), `reason` (optional). A retry with the same `idempotency_key` returns the first refund instead of refunding twice.