Skip to content
Paykit
Esc
↑↓navigate↵open⌘Jpreview
On this page

ReleaseHold

Return a hold without billing it: the work failed, was cancelled, or never ran.

Source: packages/paykit/src/Billing/ReleaseHold.binding.ts Kind: Binding · Product: Usage · Provides: Paykit.ReleaseHold

Return a hold without billing it: the work failed, was cancelled, or never ran. Releasing after expiresAt still returns the units, because a late release is a cleanup and not a charge.

Returning capacity

const releaseHold = yield* Paykit.ReleaseHold(account);
yield* releaseHold({ holdId, dedupeKey: `${turnId}:release` });

Was this page helpful?