Skip to main content
POST
cURL
Ends a held reservation without charging it, for work that failed or was cancelled. Its credits are available again at once. Releasing a released or expired reservation changes nothing and returns it with idempotent: true. One a track already settled returns 409 reservation_already_settled, and a track with a released reservation’s request_id returns 409 reservation_released. Needs the Credits permission at Track.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

requestId
string
required

The request_id you sent with the check that reserved.

Required string length: 1 - 255

Query Parameters

customerId
string
required

Your ID for the customer, such as your user ID.

Required string length: 1 - 255

Response

Released, or already released or expired

requestId
string
required
customerId
string
required
entityId
string | null
required

The entity the reservation holds for. Null: the customer's shared credits.

featureId
string
required
status
enum<string>
required

held: reserving credits. settled: a track charged it. released: let go without charging. expired: the hold lapsed before a track settled it.

Available options:
held,
settled,
released,
expired
credits
integer
required

Credits the reservation holds (or held); a metered feature's units for a metered one.

settledCredits
integer | null
required

What the settling track charged, from grants and overage. Null until settled.

Required range: x >= 0
uncoveredCredits
integer | null
required

Settled credits that couldn't be charged because the grants under the hold ended while it was held (a cancellation, for example). Null until settled.

Required range: x >= 0
expiresAt
string<date-time>
required
createdAt
string<date-time>
required
availableCredits
integer
required

The customer's prepaid credits after this request, less what active reservations hold.

Required range: x >= 0
idempotent
boolean
required

True when the request repeated one already applied and changed nothing.