Refund an escrow
Refunds the buyer on a sale your business made itself, with your key alone. Everything KetaPay still holds on the escrow goes back; milestones already released stay paid. KetaPay’s fee and its VAT are kept once the buyer has paid: what the buyer paid isn’t returned, and the share you carry (your fee setting) comes out of your balance, which can go below zero. Your next earnings pay that off, and you can’t withdraw until they have. Partial refunds aren’t supported.
Needs a key with the escrows:manage scope. Keys made in the dashboard can’t have it yet;
refund there instead, where each refund is confirmed with a code. Refused while the escrow has
an open dispute (dispute_open) or is under review (escrow_under_review). A deal between two
of your customers is never refunded here (dispute_required): only they settle it, unless one
of them raises a dispute for your platform to decide (POST /disputes/{id}/resolve). Sends
escrow.refunded.
An AI assistant connected through Sign in with KetaPay can ask for a refund only after a person
on your team approves that exact refund on a KetaPay page; without that approval it is refused
with confirmation_required and nothing moves. Your own keys are not affected.
Authorizations
Authorization: Bearer <secret key>. Secret keys belong to your organisation, are shown
once when created in the dashboard, and are scoped (see x-required-scope on each
operation). Keep them on your server. Live keys are issued after your business is
verified. Publishable keys (pk_) are only for @ketapay/checkout and don't work here.
Headers
Body
Response
Refunded. The money action is executed.
One decision a business made that moves money, and who made it. KetaPay moves the money and keeps this record for good.
scheduled is waiting for execute_after, executing is moving the money. executed
is done. cancelled was overtaken or stopped before any money moved. failed didn't
move the money, and KetaPay is looking into it.
scheduled, executing, executed, cancelled, failed