Skip to main content
POST
Send a new Idempotency-Key for each purchase. If the response is lost, retry with the same key and body to get the original bookings instead of buying twice. For a walkthrough of the REST and CLI purchase flows, see Buy relisted capacity.

Authorizations

Authorization
string
header
required

Create an organization API key in Account Settings > Developer. Do not send this key to the Kubernetes API server.

Headers

Idempotency-Key
string
required

Required. A unique key of 1 to 200 characters for this purchase, such as a UUID. Retrying with the same key and the same legs returns the original bookings instead of buying twice; reusing it for different legs returns 409 idempotency_conflict.

Required string length: 1 - 200

Body

application/json
legs
object[]
required

Windows to buy together. All legs succeed or none do; legs may not overlap on the same listing.

Required array length: 1 - 50 elements
expectedTotalCents
integer<int64>

Sum of the full window prices in USD cents, each rounded to the nearest cent (half a cent rounds up) before summing. Each leg must cost at least 50 cents. Required for upfront checkout and omitted for separately arranged payment. There is no $10,000 order limit.

Required range: x >= 50

Response

A retry with the same Idempotency-Key and legs. A booking that has since started shows only its bookingId and status settled; read its reservation instead.

bookings
object[]
required

Bookings, in the order of the legs when returned from a purchase.