Skip to Content
Payrudder
Customers

Set credits aside for work that has started

A hold takes `credits` from what is `available` (the balance less what other holds set aside), the credits that expire first. Those credits stay the hold's until it is committed, released or expires (`ttl_seconds`, an hour when left out, at most a day), even if their lot expires or other credits are consumed meanwhile; a direct consume cannot take them. With too few available credits nothing is held and the answer is 409 `billing.credits.insufficient`. An `idempotency_key` (or the `Idempotency-Key` header) is required: a repeat returns the first hold with `replayed: true`.

Loading the operation...