Skip to content

Cancel a refund request

POST/v1/refund-requests/{id}/cancelesims:write

Withdraws a request that eSIMfo has not reviewed yet. Use it when the customer changed their mind or the request was opened by mistake. A request that was already approved or rejected cannot be cancelled.

Name Notes
id The request id returned by Request a refund
Terminal window
curl -X POST https://partner-api.esimfo.com/v1/refund-requests/rfr_5e7a12c3/cancel \
-H 'Authorization: Bearer esf_live_at_...'

The request, with status now CANCELLED. No webhook is sent — you made the change yourself.

{
"id": "rfr_5e7a12c3",
"esim_id": "esm_9a3f1c",
"iccid": "89852350326100409575",
"status": "CANCELLED",
"reason": "WRONG_PURCHASE",
"notes": "Customer bought a Turkey package but is travelling to Greece",
"review_note": null,
"refunded_amount": null,
"currency": "EUR",
"created_at": "2026-08-22T10:12:44.000Z",
"reviewed_at": null
}

After cancelling you can open a new request for the same eSIM.

Status Code Cause
404 not_found No such request, or it belongs to another account
409 conflict The request was already approved or rejected
403 insufficient_scope Key lacks esims:write