Create a credit hold
Draft scaffold — not implemented or available in the API.
Reserves amount credits in creditCurrency on the customer’s balance before the work that spends them runs. The check and reservation are atomic, so concurrent holds cannot both claim the same credits; if the spendable balance does not cover amount the call fails with insufficient_credits and nothing is reserved. A hold lasts 15 minutes by default (expiresAfter, 1 minute to 24 hours) and is settled by the usage event that names it in creditHold.
Authentication
Headers
This endpoint is in the credits=v1 beta. Send this header to use it.
Request
Hold lifetime; defaults to 15 minutes, between 1 minute and 24 hours.
String key-value pairs of your own, up to 500 characters per value. Always updatable.
Response
The type of object. Always creditHold.
An exact non-negative credit amount, up to 15 fractional places.
true for an object on a live account, false on a test account.
String key-value pairs of your own, up to 500 characters per value. Always updatable.