{
"detail": {
"code": "idempotency_key_required",
"message": "Send an Idempotency-Key header with this request."
}
}
{
"code": "<string>",
"detail": "<string>"
}
{
"detail": {
"code": "not_approved",
"message": "Your organization must be approved to purchase fixed-term reservations. Request access to get started."
}
}
{
"detail": {
"code": "listing_not_found",
"message": "Ornn could not find that listing."
}
}
{
"detail": {
"code": "capacity_unavailable",
"message": "Not enough capacity is free for that window. Choose a smaller quantity or another time."
}
}
{
"detail": {
"code": "invalid_listing_term",
"message": "Choose an available listing term."
}
}
{
"code": "<string>",
"detail": "<string>"
}
Buy Market windows
Books one or more windows of relisted (Market) capacity at the listed price. There is no offer and no seller approval: every leg is booked together or none are. Each leg becomes its own booking, and the GPUs it books are held for you until it ends.
Read the listing’s terms (GET /commerce/v2/listings//terms) and free capacity (GET /v1/markets/listings//availability) first. Choose a reserved term and send its listingTermsId as listingTermId and its pricePerGpuHourMicroUsd unchanged. Send gpus or nodes for each leg, not both. gpus takes that many GPUs free for the whole window, across nodes if needed; nodes takes that many nodes with GPUs free for the whole window, and every free GPU on each. Sending neither books every node on the listing. Use whole-second times; a window lasts at least an hour and can start up to five minutes in the past.
For upfront checkout, send expectedTotalCents. The response holds capacity with status payment_pending until every card payment succeeds. Interactive bank verification is available in the console for purchases started there. For separately arranged payment, omit expectedTotalCents. When the window starts, the booking becomes the reservation with the same ID. Cancel a confirmed booking before it starts with DELETE /v1/markets/bookings/.
Requires Idempotency-Key. A retry with the same key and legs returns the original bookings, even if the price has changed since. Available to members of approved organizations. Missing or revoked approval returns 403 not_approved, including on retries. You cannot buy your own organization’s listings.
{
"detail": {
"code": "idempotency_key_required",
"message": "Send an Idempotency-Key header with this request."
}
}
{
"code": "<string>",
"detail": "<string>"
}
{
"detail": {
"code": "not_approved",
"message": "Your organization must be approved to purchase fixed-term reservations. Request access to get started."
}
}
{
"detail": {
"code": "listing_not_found",
"message": "Ornn could not find that listing."
}
}
{
"detail": {
"code": "capacity_unavailable",
"message": "Not enough capacity is free for that window. Choose a smaller quantity or another time."
}
}
{
"detail": {
"code": "invalid_listing_term",
"message": "Choose an available listing term."
}
}
{
"code": "<string>",
"detail": "<string>"
}
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.
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.
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, in the order of the legs when returned from a purchase.
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ornn","description":"Ornn: The Omnicloud for AI Workloads\nOrnn is an omnicloud for high-performance GPU compute. Reserve capacity, manage your reservations, and connect via VM, Bare Metal, Kubernetes, or Slurm.","colors":{"primary":"#000000","light":"#F3F3F3","dark":"#0B0B0C"},"logo":{"light":"https://mintcdn.com/ornn/kJ0iqH_E0L2Jw6j6/images/ornn-docs-logo-light.svg?fit=max\u0026auto=format\u0026n=kJ0iqH_E0L2Jw6j6\u0026q=85\u0026s=6f5b0c872f8bb7b4b5b6b8ab492dc2a6","dark":"https://mintcdn.com/ornn/kJ0iqH_E0L2Jw6j6/images/ornn-docs-logo-dark.svg?fit=max\u0026auto=format\u0026n=kJ0iqH_E0L2Jw6j6\u0026q=85\u0026s=518cd92bb74cb6eb82ac33e462421918","href":"https://ornn.com"},"favicon":"https://mintcdn.com/ornn/fNQRwmmR9H-yzza5/favicon.png?fit=max\u0026auto=format\u0026n=fNQRwmmR9H-yzza5\u0026q=85\u0026s=ae08364c28579651525833a71bd8ec7c","api":{"examples":{"languages":["curl","python","javascript","php","go","java","ruby"]}},"appearance":{"default":"dark","strict":true},"background":{"color":{"light":"#FFFFFF","dark":"#0B0B0C"}},"navbar":{"links":[{"href":"/changelog","label":"Changelog"}],"primary":{"type":"button","label":"Visit Ornn","href":"https://ornn.com"}},"footer":{"socials":{"x":"https://x.com/OrnnExchange","linkedin":"https://www.linkedin.com/company/ornn"}},"fonts":{"family":"PP Neue Montreal Regular","weight":400,"source":"fonts/PPNeueMontreal-Regular.woff2","format":"woff2"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","latex":true},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity","grok","aistudio","devin","windsurf","mcp","add-mcp","cursor","vscode","devin-mcp","download-spec"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ornn","hasAudioNarration":false,"actualSubdomain":"ornn","customDomains":["docs.ornn.com"],"gitSource":{"type":"github","owner":"ornn-ai","repo":"fabric","deployBranch":"main","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af2355529557c32355bc07b","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API reference","count":122},{"language":"default","tag":"Guides","count":30},{"language":"default","tag":"Storage","count":17},{"language":"default","tag":"VM and Bare Metal","count":13},{"language":"default","tag":"Private networks","count":12},{"language":"default","tag":"Order books","count":11},{"language":"default","tag":"Billing","count":10},{"language":"default","tag":"Disks","count":10},{"language":"default","tag":"Accessing Compute","count":9},{"language":"default","tag":"Monitoring","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@ornn.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","href":"/_mintlify/custom/ornn/0f3bb7ade51d2cb7/style.css"}],"page":{"pagePath":"api-reference/market/buy","slug":"/api-reference/market/buy","pageMetadata":{"title":"Buy Market windows","openapi":"openapi.yaml POST /v1/markets/bookings","description":"Books one or more windows of relisted (Market) capacity at the listed price. There is no offer and no seller approval: every leg is booked together or none are. Each leg becomes its own booking, and the GPUs it books are held for you until it ends.\n\nRead the listing's terms (GET /commerce/v2/listings/{listingId}/terms) and free capacity (GET /v1/markets/listings/{listingId}/availability) first. Choose a reserved term and send its listingTermsId as listingTermId and its pricePerGpuHourMicroUsd unchanged. Send gpus or nodes for each leg, not both. gpus takes that many GPUs free for the whole window, across nodes if needed; nodes takes that many nodes with GPUs free for the whole window, and every free GPU on each. Sending neither books every node on the listing. Use whole-second times; a window lasts at least an hour and can start up to five minutes in the past.\n\nFor upfront checkout, send expectedTotalCents. The response holds capacity with status payment_pending until every card payment succeeds. Interactive bank verification is available in the console for purchases started there. For separately arranged payment, omit expectedTotalCents. When the window starts, the booking becomes the reservation with the same ID. Cancel a confirmed booking before it starts with DELETE /v1/markets/bookings/{bookingId}.\n\nRequires Idempotency-Key. A retry with the same key and legs returns the original bookings, even if the price has changed since. Available to members of approved organizations. Missing or revoked approval returns 403 not_approved, including on retries. You cannot buy your own organization's listings.","href":"/api-reference/market/buy"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Books one or more windows of relisted (Market) capacity at the listed price. There is no offer and no seller approval: every leg is booked together or none are. Each leg becomes its own booking, and the GPUs it books are held for you until it ends.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Read the listing’s terms (GET /commerce/v2/listings/\", \"/terms) and free capacity (GET /v1/markets/listings/\", \"/availability) first. Choose a reserved term and send its listingTermsId as listingTermId and its pricePerGpuHourMicroUsd unchanged. Send gpus or nodes for each leg, not both. gpus takes that many GPUs free for the whole window, across nodes if needed; nodes takes that many nodes with GPUs free for the whole window, and every free GPU on each. Sending neither books every node on the listing. Use whole-second times; a window lasts at least an hour and can start up to five minutes in the past.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"For upfront checkout, send expectedTotalCents. The response holds capacity with status payment_pending until every card payment succeeds. Interactive bank verification is available in the console for purchases started there. For separately arranged payment, omit expectedTotalCents. When the window starts, the booking becomes the reservation with the same ID. Cancel a confirmed booking before it starts with DELETE /v1/markets/bookings/\", \".\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Requires Idempotency-Key. A retry with the same key and legs returns the original bookings, even if the price has changed since. Available to members of approved organizations. Missing or revoked approval returns 403 not_approved, including on retries. You cannot buy your own organization’s listings.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components};return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Send a new `,_jsx(_components.code,{children:`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.`]}),`\n`,_jsxs(_components.p,{children:[`For a walkthrough of the REST and CLI purchase flows, see `,_jsx(_components.a,{href:`/guides/secondary-market#use-the-api`,children:`Buy relisted capacity`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Buy Market windows","openapi":"openapi.yaml POST /v1/markets/bookings","description":"Books one or more windows of relisted (Market) capacity at the listed price. There is no offer and no seller approval: every leg is booked together or none are. Each leg becomes its own booking, and the GPUs it books are held for you until it ends.\n\nRead the listing's terms (GET /commerce/v2/listings/{listingId}/terms) and free capacity (GET /v1/markets/listings/{listingId}/availability) first. Choose a reserved term and send its listingTermsId as listingTermId and its pricePerGpuHourMicroUsd unchanged. Send gpus or nodes for each leg, not both. gpus takes that many GPUs free for the whole window, across nodes if needed; nodes takes that many nodes with GPUs free for the whole window, and every free GPU on each. Sending neither books every node on the listing. Use whole-second times; a window lasts at least an hour and can start up to five minutes in the past.\n\nFor upfront checkout, send expectedTotalCents. The response holds capacity with status payment_pending until every card payment succeeds. Interactive bank verification is available in the console for purchases started there. For separately arranged payment, omit expectedTotalCents. When the window starts, the booking becomes the reservation with the same ID. Cancel a confirmed booking before it starts with DELETE /v1/markets/bookings/{bookingId}.\n\nRequires Idempotency-Key. A retry with the same key and legs returns the original bookings, even if the price has changed since. Available to members of approved organizations. Missing or revoked approval returns 403 not_approved, including on retries. You cannot buy your own organization's listings.","href":"/api-reference/market/buy"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/ornn/51d5a96cc0778150/region-picker.js","/_mintlify/custom/ornn/0f843ad695dae46a/toc-hatch.js","/_mintlify/custom/ornn/38a1cac05e624580/copy-page-label.js"],"openApiReferenceData":{"operation":{"operationId":"capacityBuyWindows","summary":"Buy Market windows","tags":["Market"],"description":"Books one or more windows of relisted (Market) capacity at the listed price. There is no offer and no seller approval: every leg is booked together or none are. Each leg becomes its own booking, and the GPUs it books are held for you until it ends.\n\nRead the listing's terms (GET /commerce/v2/listings/{listingId}/terms) and free capacity (GET /v1/markets/listings/{listingId}/availability) first. Choose a reserved term and send its listingTermsId as listingTermId and its pricePerGpuHourMicroUsd unchanged. Send gpus or nodes for each leg, not both. gpus takes that many GPUs free for the whole window, across nodes if needed; nodes takes that many nodes with GPUs free for the whole window, and every free GPU on each. Sending neither books every node on the listing. Use whole-second times; a window lasts at least an hour and can start up to five minutes in the past.\n\nFor upfront checkout, send expectedTotalCents. The response holds capacity with status payment_pending until every card payment succeeds. Interactive bank verification is available in the console for purchases started there. For separately arranged payment, omit expectedTotalCents. When the window starts, the booking becomes the reservation with the same ID. Cancel a confirmed booking before it starts with DELETE /v1/markets/bookings/{bookingId}.\n\nRequires Idempotency-Key. A retry with the same key and legs returns the original bookings, even if the price has changed since. Available to members of approved organizations. Missing or revoked approval returns 403 not_approved, including on retries. You cannot buy your own organization's listings.","parameters":["364dbf62-e438-4d37-9fa7-5103b55dcc6b"],"requestBody":"deadbe9c-ef31-4666-a75e-b006cc637127","responses":{"200":"2ca4636c-62ed-41b2-9d12-81170cca6e31","201":"4db0cf0f-9c4e-425d-b7ae-ef524ae0d2b4","400":"cd92fb08-98b5-44ca-a3de-ca1cfe1ce823","401":"ef44724e-bfc2-49aa-b049-37b8487fb069","403":"dac045f5-de19-4178-9625-1d62275725ad","404":"95738025-2768-439f-99b1-1573bd451fa1","409":"e4dafa62-58e8-4b0a-bec1-f9e51373c179","422":"77afbf18-baff-4866-b46d-a8a2dc217a41","default":"4e7e6076-d359-464f-99f8-18f707c243cb"},"method":"post","type":"path","servers":["3c08617b-63e7-4c89-ad08-d8d626e04a13"],"security":["15878b9b-69e1-423b-b8c6-3e03368b5af5"],"path":"/v1/markets/bookings","baseUrlOptions":["https://api.ornn.com"],"title":"Buy Market windows","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","php","go","java","ruby"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"364dbf62-e438-4d37-9fa7-5103b55dcc6b":{"name":"Idempotency-Key","in":"header","required":true,"description":"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.","schema":{"type":"string","minLength":1,"maxLength":200,"isRequired":true,"description":"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.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["legs"],"additionalProperties":false,"properties":{"legs":{"type":"array","minItems":1,"maxItems":50,"description":"Windows to buy together. All legs succeed or none do; legs may not overlap on the same listing.","items":{"type":"object","description":"Send gpus or nodes, not both; sending neither books every node on the listing.","required":["listingId","listingTermId","startsAt","endsAt","pricePerGpuHourMicroUsd"],"additionalProperties":false,"properties":{"listingId":{"type":"string","format":"uuid","description":"A Market (secondary) listing.","isRequired":true,"uniqueKey":"legs.items.[INDEX].listingId","typeLabel":"string\u003cuuid>"},"listingTermId":{"type":"string","format":"uuid","description":"A reserved term of that listing.","isRequired":true,"uniqueKey":"legs.items.[INDEX].listingTermId","typeLabel":"string\u003cuuid>"},"startsAt":{"type":"string","format":"date-time","description":"Whole-second RFC 3339 start inside the listing, now or later.","isRequired":true,"uniqueKey":"legs.items.[INDEX].startsAt","typeLabel":"string\u003cdate-time>"},"endsAt":{"type":"string","format":"date-time","description":"Whole-second RFC 3339 end inside the listing, at least one hour after the start.","isRequired":true,"uniqueKey":"legs.items.[INDEX].endsAt","typeLabel":"string\u003cdate-time>"},"pricePerGpuHourMicroUsd":{"type":"integer","format":"int64","description":"The price you were shown: the term's pricePerGpuHourMicroUsd from GET /commerce/v2/listings/{listingId}/terms. A changed price refuses the purchase with ask_changed.","isRequired":true,"uniqueKey":"legs.items.[INDEX].pricePerGpuHourMicroUsd","typeLabel":"integer\u003cint64>"},"gpus":{"type":"integer","minimum":1,"description":"GPUs to book, free for the whole window, across nodes if needed. On a CPU listing, vCPUs.","uniqueKey":"legs.items.[INDEX].gpus","typeLabel":"integer"},"nodes":{"type":"integer","minimum":1,"description":"Nodes to book; each gives every GPU free on it for the whole window.","uniqueKey":"legs.items.[INDEX].nodes","typeLabel":"integer"},"diskId":{"type":"string","format":"uuid","description":"Optional VM boot disk available to your organization. Saved with the booking and used when it starts. If omitted, the reservation uses your organization's default disk.","uniqueKey":"legs.items.[INDEX].diskId","typeLabel":"string\u003cuuid>"}},"uniqueKey":"legs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"legs","typeLabel":"object[]"},"expectedTotalCents":{"type":"integer","format":"int64","minimum":50,"description":"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.","uniqueKey":"expectedTotalCents","typeLabel":"integer\u003cint64>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"separatelyArrangedPayment":{"title":"separatelyArrangedPayment","value":{"legs":[{"listingId":"eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee","listingTermId":"88888888-8888-4888-8888-888888888888","nodes":1,"startsAt":"2026-10-24T00:00:00Z","endsAt":"2026-10-27T00:00:00Z","pricePerGpuHourMicroUsd":4200000}]}},"upfrontPayment":{"title":"upfrontPayment","value":{"expectedTotalCents":241920,"legs":[{"listingId":"eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee","listingTermId":"88888888-8888-4888-8888-888888888888","nodes":1,"startsAt":"2026-10-24T00:00:00Z","endsAt":"2026-10-27T00:00:00Z","pricePerGpuHourMicroUsd":4200000}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"2ca4636c-62ed-41b2-9d12-81170cca6e31":{"description":"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.","content":{"application/json":{"schema":{"type":"object","required":["bookings"],"properties":{"bookings":{"type":"array","description":"Bookings, in the order of the legs when returned from a purchase.","items":{"type":"object","description":"A booked window waiting to start. When it starts it becomes the reservation with the same ID.","required":["bookingId","status"],"properties":{"bookingId":{"type":"string","format":"uuid","description":"Booking ID; also the ID of the reservation it becomes.","isRequired":true,"uniqueKey":"bookings.items.[INDEX].bookingId","typeLabel":"string\u003cuuid>"},"status":{"type":"string","description":"payment_pending (temporary hold), held (confirmed), cancelled, or settled (started; read its reservation). Handle unrecognized values.","isRequired":true,"uniqueKey":"bookings.items.[INDEX].status","typeLabel":"string"},"listingId":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"bookings.items.[INDEX].listingId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"bookings.items.[INDEX].listingId.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].listingId","typeLabel":"string\u003cuuid> | null"},"listingTermId":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"bookings.items.[INDEX].listingTermId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"bookings.items.[INDEX].listingTermId.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].listingTermId","typeLabel":"string\u003cuuid> | null"},"diskId":{"oneOf":[{"type":"string","format":"uuid","description":"The VM boot disk chosen for this booking, if supplied.","uniqueKey":"bookings.items.[INDEX].diskId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The VM boot disk chosen for this booking, if supplied.","uniqueKey":"bookings.items.[INDEX].diskId.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].diskId","typeLabel":"string\u003cuuid> | null"},"startsAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"bookings.items.[INDEX].startsAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"bookings.items.[INDEX].startsAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].startsAt","typeLabel":"string\u003cdate-time> | null"},"endsAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"bookings.items.[INDEX].endsAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"bookings.items.[INDEX].endsAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].endsAt","typeLabel":"string\u003cdate-time> | null"},"pricePerGpuHourMicroUsd":{"oneOf":[{"type":"integer","format":"int64","uniqueKey":"bookings.items.[INDEX].pricePerGpuHourMicroUsd.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","uniqueKey":"bookings.items.[INDEX].pricePerGpuHourMicroUsd.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].pricePerGpuHourMicroUsd","typeLabel":"integer\u003cint64> | null"},"downPaymentCents":{"oneOf":[{"type":"integer","format":"int64","description":"The term's down payment for separately arranged bookings. Upfront card checkout has no down payment.","uniqueKey":"bookings.items.[INDEX].downPaymentCents.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"The term's down payment for separately arranged bookings. Upfront card checkout has no down payment.","uniqueKey":"bookings.items.[INDEX].downPaymentCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].downPaymentCents","typeLabel":"integer\u003cint64> | null"},"gpus":{"oneOf":[{"type":"integer","description":"GPUs booked.","uniqueKey":"bookings.items.[INDEX].gpus.oneOf.0","typeLabel":"integer"},{"type":"null","description":"GPUs booked.","uniqueKey":"bookings.items.[INDEX].gpus.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].gpus","typeLabel":"integer | null"},"nodes":{"oneOf":[{"type":"integer","description":"The nodes those GPUs are on.","uniqueKey":"bookings.items.[INDEX].nodes.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The nodes those GPUs are on.","uniqueKey":"bookings.items.[INDEX].nodes.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].nodes","typeLabel":"integer | null"},"paymentActionRequired":{"type":"boolean","description":"Bank verification is required for the original card payment.","uniqueKey":"bookings.items.[INDEX].paymentActionRequired","typeLabel":"boolean"},"paymentError":{"oneOf":[{"type":"string","description":"The reason checkout could not be completed, when available.","uniqueKey":"bookings.items.[INDEX].paymentError.oneOf.0","typeLabel":"string"},{"type":"null","description":"The reason checkout could not be completed, when available.","uniqueKey":"bookings.items.[INDEX].paymentError.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].paymentError","typeLabel":"string | null"},"cancelReason":{"oneOf":[{"type":"string","description":"For example cancelled_by_owner or cancelled_by_admin.","uniqueKey":"bookings.items.[INDEX].cancelReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"For example cancelled_by_owner or cancelled_by_admin.","uniqueKey":"bookings.items.[INDEX].cancelReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].cancelReason","typeLabel":"string | null"},"createdAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"bookings.items.[INDEX].createdAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"bookings.items.[INDEX].createdAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time> | null"},"isMine":{"type":"boolean","description":"True when your organization made the booking.","uniqueKey":"bookings.items.[INDEX].isMine","typeLabel":"boolean"}},"uniqueKey":"bookings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"bookings","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"bookings":[{"bookingId":"dddddddd-dddd-4ddd-8ddd-dddddddddddd","listingId":"eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee","listingTermId":"88888888-8888-4888-8888-888888888888","startsAt":"2026-10-24T00:00:00Z","endsAt":"2026-10-27T00:00:00Z","pricePerGpuHourMicroUsd":4200000,"downPaymentCents":0,"gpus":8,"nodes":1,"status":"held","cancelReason":null,"createdAt":"2026-10-20T15:00:00Z","isMine":true}]},"examples":{"Example":{"title":"Example","value":{"bookings":[{"bookingId":"dddddddd-dddd-4ddd-8ddd-dddddddddddd","listingId":"eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee","listingTermId":"88888888-8888-4888-8888-888888888888","startsAt":"2026-10-24T00:00:00Z","endsAt":"2026-10-27T00:00:00Z","pricePerGpuHourMicroUsd":4200000,"downPaymentCents":0,"gpus":8,"nodes":1,"status":"held","cancelReason":null,"createdAt":"2026-10-20T15:00:00Z","isMine":true}]}}},"exampleType":"examples"}},"exampleType":"examples"},"4db0cf0f-9c4e-425d-b7ae-ef524ae0d2b4":{"description":"Windows held, with status payment_pending during upfront checkout.","content":{"application/json":{"schema":{"type":"object","required":["bookings"],"properties":{"bookings":{"type":"array","description":"Bookings, in the order of the legs when returned from a purchase.","items":{"type":"object","description":"A booked window waiting to start. When it starts it becomes the reservation with the same ID.","required":["bookingId","status"],"properties":{"bookingId":{"type":"string","format":"uuid","description":"Booking ID; also the ID of the reservation it becomes.","isRequired":true,"uniqueKey":"bookings.items.[INDEX].bookingId","typeLabel":"string\u003cuuid>"},"status":{"type":"string","description":"payment_pending (temporary hold), held (confirmed), cancelled, or settled (started; read its reservation). Handle unrecognized values.","isRequired":true,"uniqueKey":"bookings.items.[INDEX].status","typeLabel":"string"},"listingId":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"bookings.items.[INDEX].listingId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"bookings.items.[INDEX].listingId.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].listingId","typeLabel":"string\u003cuuid> | null"},"listingTermId":{"oneOf":[{"type":"string","format":"uuid","uniqueKey":"bookings.items.[INDEX].listingTermId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","uniqueKey":"bookings.items.[INDEX].listingTermId.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].listingTermId","typeLabel":"string\u003cuuid> | null"},"diskId":{"oneOf":[{"type":"string","format":"uuid","description":"The VM boot disk chosen for this booking, if supplied.","uniqueKey":"bookings.items.[INDEX].diskId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"The VM boot disk chosen for this booking, if supplied.","uniqueKey":"bookings.items.[INDEX].diskId.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].diskId","typeLabel":"string\u003cuuid> | null"},"startsAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"bookings.items.[INDEX].startsAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"bookings.items.[INDEX].startsAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].startsAt","typeLabel":"string\u003cdate-time> | null"},"endsAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"bookings.items.[INDEX].endsAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"bookings.items.[INDEX].endsAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].endsAt","typeLabel":"string\u003cdate-time> | null"},"pricePerGpuHourMicroUsd":{"oneOf":[{"type":"integer","format":"int64","uniqueKey":"bookings.items.[INDEX].pricePerGpuHourMicroUsd.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","uniqueKey":"bookings.items.[INDEX].pricePerGpuHourMicroUsd.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].pricePerGpuHourMicroUsd","typeLabel":"integer\u003cint64> | null"},"downPaymentCents":{"oneOf":[{"type":"integer","format":"int64","description":"The term's down payment for separately arranged bookings. Upfront card checkout has no down payment.","uniqueKey":"bookings.items.[INDEX].downPaymentCents.oneOf.0","typeLabel":"integer\u003cint64>"},{"type":"null","format":"int64","description":"The term's down payment for separately arranged bookings. Upfront card checkout has no down payment.","uniqueKey":"bookings.items.[INDEX].downPaymentCents.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].downPaymentCents","typeLabel":"integer\u003cint64> | null"},"gpus":{"oneOf":[{"type":"integer","description":"GPUs booked.","uniqueKey":"bookings.items.[INDEX].gpus.oneOf.0","typeLabel":"integer"},{"type":"null","description":"GPUs booked.","uniqueKey":"bookings.items.[INDEX].gpus.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].gpus","typeLabel":"integer | null"},"nodes":{"oneOf":[{"type":"integer","description":"The nodes those GPUs are on.","uniqueKey":"bookings.items.[INDEX].nodes.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The nodes those GPUs are on.","uniqueKey":"bookings.items.[INDEX].nodes.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].nodes","typeLabel":"integer | null"},"paymentActionRequired":{"type":"boolean","description":"Bank verification is required for the original card payment.","uniqueKey":"bookings.items.[INDEX].paymentActionRequired","typeLabel":"boolean"},"paymentError":{"oneOf":[{"type":"string","description":"The reason checkout could not be completed, when available.","uniqueKey":"bookings.items.[INDEX].paymentError.oneOf.0","typeLabel":"string"},{"type":"null","description":"The reason checkout could not be completed, when available.","uniqueKey":"bookings.items.[INDEX].paymentError.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].paymentError","typeLabel":"string | null"},"cancelReason":{"oneOf":[{"type":"string","description":"For example cancelled_by_owner or cancelled_by_admin.","uniqueKey":"bookings.items.[INDEX].cancelReason.oneOf.0","typeLabel":"string"},{"type":"null","description":"For example cancelled_by_owner or cancelled_by_admin.","uniqueKey":"bookings.items.[INDEX].cancelReason.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].cancelReason","typeLabel":"string | null"},"createdAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"bookings.items.[INDEX].createdAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"bookings.items.[INDEX].createdAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"bookings.items.[INDEX].createdAt","typeLabel":"string\u003cdate-time> | null"},"isMine":{"type":"boolean","description":"True when your organization made the booking.","uniqueKey":"bookings.items.[INDEX].isMine","typeLabel":"boolean"}},"uniqueKey":"bookings.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"bookings","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"bookings":[{"bookingId":"dddddddd-dddd-4ddd-8ddd-dddddddddddd","listingId":"eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee","listingTermId":"88888888-8888-4888-8888-888888888888","startsAt":"2026-10-24T00:00:00Z","endsAt":"2026-10-27T00:00:00Z","pricePerGpuHourMicroUsd":4200000,"downPaymentCents":0,"gpus":8,"nodes":1,"status":"held","cancelReason":null,"createdAt":"2026-10-20T15:00:00Z","isMine":true}]},"examples":{"Example":{"title":"Example","value":{"bookings":[{"bookingId":"dddddddd-dddd-4ddd-8ddd-dddddddddddd","listingId":"eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee","listingTermId":"88888888-8888-4888-8888-888888888888","startsAt":"2026-10-24T00:00:00Z","endsAt":"2026-10-27T00:00:00Z","pricePerGpuHourMicroUsd":4200000,"downPaymentCents":0,"gpus":8,"nodes":1,"status":"held","cancelReason":null,"createdAt":"2026-10-20T15:00:00Z","isMine":true}]}}},"exampleType":"examples"}},"exampleType":"examples"},"cd92fb08-98b5-44ca-a3de-ca1cfe1ce823":{"description":"The Idempotency-Key is missing, or the body is invalid.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"detail":{"oneOf":[{"type":"string","uniqueKey":"detail.oneOf.0","typeLabel":"string"},{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"detail.oneOf.1.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"detail.oneOf.1.message","typeLabel":"string"}},"uniqueKey":"detail.oneOf.1","typeLabel":"object"}],"uniqueKey":"detail","typeLabel":"string | object"}},"uniqueKey":"","typeLabel":"object"},"example":{"detail":{"code":"idempotency_key_required","message":"Send an Idempotency-Key header with this request."}},"examples":{"Example":{"title":"Example","value":{"detail":{"code":"idempotency_key_required","message":"Send an Idempotency-Key header with this request."}}}},"exampleType":"examples"}},"exampleType":"examples"},"ef44724e-bfc2-49aa-b049-37b8487fb069":{"description":"The credential is missing, invalid, or revoked. Check the HTTP status before parsing the body.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"detail":{"oneOf":[{"type":"string","uniqueKey":"detail.oneOf.0","typeLabel":"string"},{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"detail.oneOf.1.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"detail.oneOf.1.message","typeLabel":"string"}},"uniqueKey":"detail.oneOf.1","typeLabel":"object"}],"uniqueKey":"detail","typeLabel":"string | object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","detail":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"dac045f5-de19-4178-9625-1d62275725ad":{"description":"Your organization is not approved (not_approved), or the listing belongs to your organization (cannot_buy_own_listing).","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"detail":{"oneOf":[{"type":"string","uniqueKey":"detail.oneOf.0","typeLabel":"string"},{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"detail.oneOf.1.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"detail.oneOf.1.message","typeLabel":"string"}},"uniqueKey":"detail.oneOf.1","typeLabel":"object"}],"uniqueKey":"detail","typeLabel":"string | object"}},"uniqueKey":"","typeLabel":"object"},"example":{"detail":{"code":"not_approved","message":"Your organization must be approved to purchase fixed-term reservations. Request access to get started."}},"examples":{"Example":{"title":"Example","value":{"detail":{"code":"not_approved","message":"Your organization must be approved to purchase fixed-term reservations. Request access to get started."}}}},"exampleType":"examples"}},"exampleType":"examples"},"95738025-2768-439f-99b1-1573bd451fa1":{"description":"The listing does not exist or is not visible to your organization.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"detail":{"oneOf":[{"type":"string","uniqueKey":"detail.oneOf.0","typeLabel":"string"},{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"detail.oneOf.1.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"detail.oneOf.1.message","typeLabel":"string"}},"uniqueKey":"detail.oneOf.1","typeLabel":"object"}],"uniqueKey":"detail","typeLabel":"string | object"}},"uniqueKey":"","typeLabel":"object"},"example":{"detail":{"code":"listing_not_found","message":"Ornn could not find that listing."}},"examples":{"Example":{"title":"Example","value":{"detail":{"code":"listing_not_found","message":"Ornn could not find that listing."}}}},"exampleType":"examples"}},"exampleType":"examples"},"e4dafa62-58e8-4b0a-bec1-f9e51373c179":{"description":"The price changed (ask_changed), not enough GPUs are free for a window (capacity_unavailable), the listing closed (listing_not_open) or has no delivered nodes yet (listing_delivery_pending), the payment flow and the presence of expectedTotalCents do not agree (booking_checkout_mode_changed), the amount does not match the order (booking_total_changed), or the key was reused for different legs (idempotency_conflict). This request created no new bookings. Review checkout and the latest terms before a revised request; do not automatically switch payment flows. For idempotency_conflict, resolve the original request before starting another purchase.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"detail":{"oneOf":[{"type":"string","uniqueKey":"detail.oneOf.0","typeLabel":"string"},{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"detail.oneOf.1.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"detail.oneOf.1.message","typeLabel":"string"}},"uniqueKey":"detail.oneOf.1","typeLabel":"object"}],"uniqueKey":"detail","typeLabel":"string | object"}},"uniqueKey":"","typeLabel":"object"},"example":{"detail":{"code":"capacity_unavailable","message":"Not enough capacity is free for that window. Choose a smaller quantity or another time."}},"examples":{"Example":{"title":"Example","value":{"detail":{"code":"capacity_unavailable","message":"Not enough capacity is free for that window. Choose a smaller quantity or another time."}}}},"exampleType":"examples"}},"exampleType":"examples"},"77afbf18-baff-4866-b46d-a8a2dc217a41":{"description":"The window, term, duration, or quantity is not valid for the listing. Codes include invalid_purchase, invalid_listing_term, invalid_duration, invalid_window, purchase_too_short, purchase_in_past, purchase_outside_listing, invalid_quantity, quantity_conflict, purchase_legs_overlap, and primary_sells_by_offer.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"detail":{"oneOf":[{"type":"string","uniqueKey":"detail.oneOf.0","typeLabel":"string"},{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"detail.oneOf.1.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"detail.oneOf.1.message","typeLabel":"string"}},"uniqueKey":"detail.oneOf.1","typeLabel":"object"}],"uniqueKey":"detail","typeLabel":"string | object"}},"uniqueKey":"","typeLabel":"object"},"example":{"detail":{"code":"invalid_listing_term","message":"Choose an available listing term."}},"examples":{"Example":{"title":"Example","value":{"detail":{"code":"invalid_listing_term","message":"Choose an available listing term."}}}},"exampleType":"examples"}},"exampleType":"examples"},"4e7e6076-d359-464f-99f8-18f707c243cb":{"description":"Unsuccessful request. Check HTTP status first. Errors may have detail.code/detail.message, a string detail and optional top-level code, or an empty/non-JSON body. 401: invalid credential; 403: access or Reserve approval required; 404: not visible or credentials not ready; 409: lifecycle conflict; 429: back off; 5xx: service failure. Inspect current state before retrying mutations.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"detail":{"oneOf":[{"type":"string","uniqueKey":"detail.oneOf.0","typeLabel":"string"},{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"detail.oneOf.1.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"detail.oneOf.1.message","typeLabel":"string"}},"uniqueKey":"detail.oneOf.1","typeLabel":"object"}],"uniqueKey":"detail","typeLabel":"string | object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":"\u003cstring>","detail":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"15878b9b-69e1-423b-b8c6-3e03368b5af5":{"OrnnApiKey":{"type":"http","scheme":"bearer","bearerFormat":"ornn_sk_...","description":"Create an organization API key in Account Settings > Developer. Do not send this key to the Kubernetes API server.","scopes":[],"schemeName":"OrnnApiKey"}}},"servers":{"3c08617b-63e7-4c89-ad08-d8d626e04a13":{"url":"https://api.ornn.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"ornn_sk_...","description":"Create an organization API key in Account Settings > Developer. Do not send this key to the Kubernetes API server.","scopes":[],"schemeName":"OrnnApiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Create an organization API key in Account Settings > Developer. Do not send this key to the Kubernetes API server.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"OrnnApiKey","name":"Authorization"}],"title":"OrnnApiKey"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"ornn","siteName":"Ornn","title":"Buy Market windows - Ornn","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-09T18:57:25.630Z","originalFileLocation":"api-reference/market/buy.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Books one or more windows of relisted (Market) capacity at the listed price. There is no offer and no seller approval: every leg is booked together or none are. Each leg becomes its own booking, and the GPUs it books are held for you until it ends. Read the listing\u0026#x27;s terms (GET /commerce/v2/listings/{listingId}/terms) and free capacity (GET /v1/markets/listings/{listingId}/availability) first. Choose a reserved term and send its listingTermsId as listingTermId and its pricePerGpuHourMicroUsd unchanged. Send gpus or nodes for each leg, not both. gpus takes that many GPUs free for the whole window, across nodes if needed; nodes takes that many nodes with GPUs free for the whole window, and every free GPU on each. Sending neither books every node on the listing. Use whole-second times; a window lasts at least an hour and can start up to five minutes in the past. For upfront checkout, send expectedTotalCents. The response holds capacity with status payment_pending until every card payment succeeds. Interactive bank verification is available in the console for purchases started there. For separately arranged payment, omit expectedTotalCents. When the window starts, the booking becomes the reservation with the same ID. Cancel a confirmed booking before it starts with DELETE /v1/markets/bookings/{bookingId}. Requires Idempotency-Key. A retry with the same key and legs returns the original bookings, even if the price has changed since. Available to members of approved organizations. Missing or revoked approval returns 403 not_approved, including on retries. You cannot buy your own organization\u0026#x27;s listings.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ornn\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ornn/xSbMvd8knxlcr1Zk/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ornn/xSbMvd8knxlcr1Zk/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ornn/xSbMvd8knxlcr1Zk/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ornn/xSbMvd8knxlcr1Zk/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ornn/xSbMvd8knxlcr1Zk/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ornn/xSbMvd8knxlcr1Zk/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ornn/xSbMvd8knxlcr1Zk/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ornn/xSbMvd8knxlcr1Zk/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ornn/xSbMvd8knxlcr1Zk/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Buy Market windows - Ornn\">\u003cmeta data-mint-head property=\"og:description\" content=\"Books one or more windows of relisted (Market) capacity at the listed price. There is no offer and no seller approval: every leg is booked together or none are. Each leg becomes its own booking, and the GPUs it books are held for you until it ends. Read the listing\u0026#x27;s terms (GET /commerce/v2/listings/{listingId}/terms) and free capacity (GET /v1/markets/listings/{listingId}/availability) first. Choose a reserved term and send its listingTermsId as listingTermId and its pricePerGpuHourMicroUsd unchanged. Send gpus or nodes for each leg, not both. gpus takes that many GPUs free for the whole window, across nodes if needed; nodes takes that many nodes with GPUs free for the whole window, and every free GPU on each. Sending neither books every node on the listing. Use whole-second times; a window lasts at least an hour and can start up to five minutes in the past. For upfront checkout, send expectedTotalCents. The response holds capacity with status payment_pending until every card payment succeeds. Interactive bank verification is available in the console for purchases started there. For separately arranged payment, omit expectedTotalCents. When the window starts, the booking becomes the reservation with the same ID. Cancel a confirmed booking before it starts with DELETE /v1/markets/bookings/{bookingId}. Requires Idempotency-Key. A retry with the same key and legs returns the original bookings, even if the price has changed since. Available to members of approved organizations. Missing or revoked approval returns 403 not_approved, including on retries. You cannot buy your own organization\u0026#x27;s listings.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ornn\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ornn.com/api-reference/market/buy\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ornn.mintlify.site/_mintlify/api/og/v2?division=Market\u0026amp;title=Buy+Market+windows\u0026amp;description=Books+one+or+more+windows+of+relisted+%28Market%29+capacity+at+the+listed+price.+There+is+no+offer+and+no+seller+approval%3A+every+leg+is+booked+together+or+none+are.\u0026amp;theme=3cb4facbf0c28da5810d277d\u0026amp;signature=6c2f0bef001389137b7bed3195bddb0f586c67470252e021684c3333f447f578\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Buy Market windows - Ornn\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Books one or more windows of relisted (Market) capacity at the listed price. There is no offer and no seller approval: every leg is booked together or none are. Each leg becomes its own booking, and the GPUs it books are held for you until it ends. Read the listing\u0026#x27;s terms (GET /commerce/v2/listings/{listingId}/terms) and free capacity (GET /v1/markets/listings/{listingId}/availability) first. Choose a reserved term and send its listingTermsId as listingTermId and its pricePerGpuHourMicroUsd unchanged. Send gpus or nodes for each leg, not both. gpus takes that many GPUs free for the whole window, across nodes if needed; nodes takes that many nodes with GPUs free for the whole window, and every free GPU on each. Sending neither books every node on the listing. Use whole-second times; a window lasts at least an hour and can start up to five minutes in the past. For upfront checkout, send expectedTotalCents. The response holds capacity with status payment_pending until every card payment succeeds. Interactive bank verification is available in the console for purchases started there. For separately arranged payment, omit expectedTotalCents. When the window starts, the booking becomes the reservation with the same ID. Cancel a confirmed booking before it starts with DELETE /v1/markets/bookings/{bookingId}. Requires Idempotency-Key. A retry with the same key and legs returns the original bookings, even if the price has changed since. Available to members of approved organizations. Missing or revoked approval returns 403 not_approved, including on retries. You cannot buy your own organization\u0026#x27;s listings.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ornn.mintlify.site/_mintlify/api/og/v2?division=Market\u0026amp;title=Buy+Market+windows\u0026amp;description=Books+one+or+more+windows+of+relisted+%28Market%29+capacity+at+the+listed+price.+There+is+no+offer+and+no+seller+approval%3A+every+leg+is+booked+together+or+none+are.\u0026amp;theme=3cb4facbf0c28da5810d277d\u0026amp;signature=6c2f0bef001389137b7bed3195bddb0f586c67470252e021684c3333f447f578\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ornn/xSbMvd8knxlcr1Zk/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ornn\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ornn.com/api-reference/market/buy\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/market/buy.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ornn.com/#organization\",\"name\":\"Ornn\",\"url\":\"https://docs.ornn.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ornn/kJ0iqH_E0L2Jw6j6/images/ornn-docs-logo-light.svg?fit=max\u0026auto=format\u0026n=kJ0iqH_E0L2Jw6j6\u0026q=85\u0026s=6f5b0c872f8bb7b4b5b6b8ab492dc2a6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ornn.com#website\",\"name\":\"Ornn\",\"url\":\"https://docs.ornn.com\",\"publisher\":{\"@id\":\"https://docs.ornn.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ornn.com/api-reference/market/buy#webpage\",\"url\":\"https://docs.ornn.com/api-reference/market/buy\",\"name\":\"Buy Market windows\",\"description\":\"Books one or more windows of relisted (Market) capacity at the listed price. There is no offer and no seller approval: every leg is booked together or none are. Each leg becomes its own booking, and the GPUs it books are held for you until it ends. Read the listing's terms (GET /commerce/v2/listings/{listingId}/terms) and free capacity (GET /v1/markets/listings/{listingId}/availability) first. Choose a reserved term and send its listingTermsId as listingTermId and its pricePerGpuHourMicroUsd unchanged. Send gpus or nodes for each leg, not both. gpus takes that many GPUs free for the whole window, across nodes if needed; nodes takes that many nodes with GPUs free for the whole window, and every free GPU on each. Sending neither books every node on the listing. Use whole-second times; a window lasts at least an hour and can start up to five minutes in the past. For upfront checkout, send expectedTotalCents. The response holds capacity with status payment_pending until every card payment succeeds. Interactive bank verification is available in the console for purchases started there. For separately arranged payment, omit expectedTotalCents. When the window starts, the booking becomes the reservation with the same ID. Cancel a confirmed booking before it starts with DELETE /v1/markets/bookings/{bookingId}. Requires Idempotency-Key. A retry with the same key and legs returns the original bookings, even if the price has changed since. Available to members of approved organizations. Missing or revoked approval returns 403 not_approved, including on retries. You cannot buy your own organization's listings.\",\"dateModified\":\"2026-11-09T18:57:25.630Z\",\"isPartOf\":{\"@id\":\"https://docs.ornn.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ornn.com/api-reference/market/buy#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ornn.com/api-reference/market/buy#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Market\",\"item\":\"https://docs.ornn.com/api-reference/market/availability\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Buy Market windows\",\"item\":\"https://docs.ornn.com/api-reference/market/buy\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.ornn.com/api-reference/market/buy#apireference\",\"headline\":\"Buy Market windows\",\"name\":\"Buy Market windows\",\"description\":\"Books one or more windows of relisted (Market) capacity at the listed price. There is no offer and no seller approval: every leg is booked together or none are. Each leg becomes its own booking, and the GPUs it books are held for you until it ends. Read the listing's terms (GET /commerce/v2/listings/{listingId}/terms) and free capacity (GET /v1/markets/listings/{listingId}/availability) first. Choose a reserved term and send its listingTermsId as listingTermId and its pricePerGpuHourMicroUsd unchanged. Send gpus or nodes for each leg, not both. gpus takes that many GPUs free for the whole window, across nodes if needed; nodes takes that many nodes with GPUs free for the whole window, and every free GPU on each. Sending neither books every node on the listing. Use whole-second times; a window lasts at least an hour and can start up to five minutes in the past. For upfront checkout, send expectedTotalCents. The response holds capacity with status payment_pending until every card payment succeeds. Interactive bank verification is available in the console for purchases started there. For separately arranged payment, omit expectedTotalCents. When the window starts, the booking becomes the reservation with the same ID. Cancel a confirmed booking before it starts with DELETE /v1/markets/bookings/{bookingId}. Requires Idempotency-Key. A retry with the same key and legs returns the original bookings, even if the price has changed since. Available to members of approved organizations. Missing or revoked approval returns 403 not_approved, including on retries. You cannot buy your own organization's listings.\",\"url\":\"https://docs.ornn.com/api-reference/market/buy\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ornn.com/api-reference/market/buy#webpage\"},\"dateModified\":\"2026-11-09T18:57:25.630Z\",\"publisher\":{\"@id\":\"https://docs.ornn.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ornn.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ornn\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Ornn","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"API reference","groups":[{"group":"Start here","pages":[{"title":"Integrate with the Ornn REST API","sidebarTitle":"Overview","href":"/api-reference/overview"},{"title":"Check API authentication","openapi":"openapi.yaml GET /v1/auth/session","href":"/api-reference/session"}]},{"group":"Reserved capacity","pages":[{"title":"List reservations","openapi":"openapi.yaml GET /commerce/reservations","href":"/api-reference/reservations/list"},{"title":"Get a reservation","openapi":"openapi.yaml GET /commerce/reservations/{reservationId}","href":"/api-reference/reservations/get"},{"title":"List reserved nodes","openapi":"openapi.yaml GET /v1/orchestrator/nodes","href":"/api-reference/nodes/list"}]},{"group":"VM and Bare Metal","pages":[{"title":"Choose a VM disk","openapi":"openapi.yaml PUT /commerce/reservations/{reservationId}/disk","href":"/api-reference/virtual-machines/set-image"},{"title":"Activate a reservation","openapi":"openapi.yaml POST /commerce/reservations/{reservationId}/activate","href":"/api-reference/virtual-machines/activate"},{"title":"Launch VM or Bare Metal access","openapi":"openapi.yaml POST /v1/orchestrator/nodes/reservations/{reservation_id}/launch","href":"/api-reference/virtual-machines/launch"},{"title":"List a reservation's VMs","openapi":"openapi.yaml GET /v1/orchestrator/reservations/{reservation_id}/virtual-machines","href":"/api-reference/virtual-machines/list"},{"title":"Reboot a VM","openapi":"openapi.yaml POST /v1/orchestrator/nodes/{node_id}/virtual-machines/{vm_id}/reboot","href":"/api-reference/virtual-machines/reboot"},{"title":"Reimage a VM","openapi":"openapi.yaml POST /v1/orchestrator/nodes/{node_id}/virtual-machines/{vm_id}/reimage","href":"/api-reference/virtual-machines/reimage"},{"title":"List a VM's ports","openapi":"openapi.yaml GET /v1/orchestrator/nodes/{node_id}/virtual-machines/{vm_id}/ports","href":"/api-reference/virtual-machines/list-ports"},{"title":"Open a VM port","openapi":"openapi.yaml POST /v1/orchestrator/nodes/{node_id}/virtual-machines/{vm_id}/ports","href":"/api-reference/virtual-machines/open-port"},{"title":"Close a VM port","openapi":"openapi.yaml DELETE /v1/orchestrator/nodes/{node_id}/virtual-machines/{vm_id}/ports/{port_id}","href":"/api-reference/virtual-machines/close-port"},{"title":"Get a reserved node","openapi":"openapi.yaml GET /v1/orchestrator/nodes/{node_id}","href":"/api-reference/bare-metal/get-node"},{"title":"Reboot or hard reset a Bare Metal host","openapi":"openapi.yaml POST /v1/orchestrator/nodes/{node_id}/reboot","href":"/api-reference/bare-metal/reboot"},{"title":"Switch access mode or network","openapi":"openapi.yaml POST /v1/orchestrator/nodes/reservations/{reservation_id}/switch-access","href":"/api-reference/virtual-machines/switch-access"},{"title":"Stop VMs or a reservation","openapi":"openapi.yaml DELETE /commerce/reservations/{reservationId}","href":"/api-reference/virtual-machines/stop"}]},{"group":"Disks","pages":[{"title":"List disks","openapi":"openapi.yaml GET /v1/orchestrator/disks","href":"/api-reference/disks/list"},{"title":"Get a disk","openapi":"openapi.yaml GET /v1/orchestrator/disks/{disk_id}","href":"/api-reference/disks/get"},{"title":"Create a disk","openapi":"openapi.yaml POST /v1/orchestrator/disks","href":"/api-reference/disks/create"},{"title":"Start a disk upload","openapi":"openapi.yaml POST /v1/orchestrator/disks/uploads","href":"/api-reference/disks/upload-start"},{"title":"Upload disk bytes","openapi":"openapi.yaml POST /v1/orchestrator/disks/objects","href":"/api-reference/disks/upload-bytes"},{"title":"Complete a disk upload","openapi":"openapi.yaml POST /v1/orchestrator/disks/uploads/{disk_id}/complete","href":"/api-reference/disks/upload-complete"},{"title":"Import a disk from a URL","openapi":"openapi.yaml POST /v1/orchestrator/disks/imports","href":"/api-reference/disks/import"},{"title":"Delete a disk","openapi":"openapi.yaml DELETE /v1/orchestrator/disks/{disk_id}","href":"/api-reference/disks/delete"},{"title":"List base images","openapi":"openapi.yaml GET /v1/orchestrator/catalog/images","href":"/api-reference/disks/list-images"},{"title":"List disk software","openapi":"openapi.yaml GET /v1/orchestrator/catalog/software","href":"/api-reference/disks/list-software"}]},{"group":"Clusters","pages":[{"title":"Create a cluster","openapi":"openapi.yaml POST /v1/orchestrator/controllers","href":"/api-reference/clusters/create"},{"title":"List clusters and workers","openapi":"openapi.yaml GET /v1/orchestrator/controllers","href":"/api-reference/clusters/list"},{"title":"Get cluster access","openapi":"openapi.yaml GET /v1/orchestrator/controllers/{controller_id}/access","href":"/api-reference/clusters/access"},{"title":"Tear down a cluster","openapi":"openapi.yaml POST /v1/orchestrator/controllers/{controller_id}/teardown","href":"/api-reference/clusters/teardown"}]},{"group":"Workers","pages":[{"title":"Add a physical worker","openapi":"openapi.yaml POST /v1/orchestrator/controllers/{controller_id}/nodes/{node_id}","href":"/api-reference/clusters/add-node"},{"title":"Remove a physical worker","openapi":"openapi.yaml DELETE /v1/orchestrator/controllers/{controller_id}/nodes/{node_id}","href":"/api-reference/clusters/remove-node"},{"title":"Add a VM worker","openapi":"openapi.yaml POST /v1/orchestrator/controllers/{controller_id}/virtual-machines/{virtual_machine_id}","href":"/api-reference/clusters/add-vm"},{"title":"Remove a VM worker","openapi":"openapi.yaml DELETE /v1/orchestrator/controllers/{controller_id}/virtual-machines/{virtual_machine_id}","href":"/api-reference/clusters/remove-vm"}]},{"group":"SSH keys","pages":[{"title":"List organization SSH keys","openapi":"openapi.yaml GET /v1/organizations/{organization_id}/ssh-keys","href":"/api-reference/ssh-keys/list"},{"title":"Add an organization SSH key","openapi":"openapi.yaml POST /v1/organizations/{organization_id}/ssh-keys","href":"/api-reference/ssh-keys/create"},{"title":"Revoke an organization SSH key","openapi":"openapi.yaml DELETE /v1/organizations/{organization_id}/ssh-keys/{key_id}","href":"/api-reference/ssh-keys/revoke"},{"title":"List a reservation's SSH keys","openapi":"openapi.yaml GET /v1/orchestrator/nodes/reservations/{reservation_id}/ssh-keys","href":"/api-reference/ssh-keys/reservation-list"},{"title":"Assign an SSH key to a reservation","openapi":"openapi.yaml POST /v1/orchestrator/nodes/reservations/{reservation_id}/ssh-keys","href":"/api-reference/ssh-keys/reservation-assign"},{"title":"Unassign an SSH key from a reservation","openapi":"openapi.yaml DELETE /v1/orchestrator/nodes/reservations/{reservation_id}/ssh-keys/{key_id}","href":"/api-reference/ssh-keys/reservation-unassign"},{"title":"Push SSH keys to a machine","openapi":"openapi.yaml POST /v1/orchestrator/nodes/{node_id}/push-keys","href":"/api-reference/ssh-keys/push"}]},{"group":"Storage","pages":[{"title":"List volumes","openapi":"openapi.yaml GET /v1/orchestrator/drives","href":"/api-reference/storage/list"},{"title":"Create a volume","openapi":"openapi.yaml POST /v1/orchestrator/drives","href":"/api-reference/storage/create"},{"title":"Get a volume","openapi":"openapi.yaml GET /v1/orchestrator/drives/{drive_id}","href":"/api-reference/storage/get"},{"title":"Attach or detach a volume","openapi":"openapi.yaml PATCH /v1/orchestrator/drives/{drive_id}","href":"/api-reference/storage/attach"},{"title":"Delete a volume","openapi":"openapi.yaml DELETE /v1/orchestrator/drives/{drive_id}","href":"/api-reference/storage/delete"},{"title":"List volume files","openapi":"openapi.yaml GET /v1/orchestrator/drives/{drive_id}/contents","href":"/api-reference/storage/files/list"},{"title":"Upload a small file","openapi":"openapi.yaml PUT /v1/orchestrator/drives/{drive_id}/files/{file_path}","href":"/api-reference/storage/files/upload"},{"title":"Start a staged upload","openapi":"openapi.yaml POST /v1/orchestrator/drives/{drive_id}/uploads","href":"/api-reference/storage/files/upload-start"},{"title":"Complete a staged upload","openapi":"openapi.yaml POST /v1/orchestrator/drives/{drive_id}/uploads/{upload_id}","href":"/api-reference/storage/files/upload-complete"},{"title":"Cancel a staged upload","openapi":"openapi.yaml DELETE /v1/orchestrator/drives/{drive_id}/uploads/{upload_id}","href":"/api-reference/storage/files/upload-cancel"},{"title":"Download a file","openapi":"openapi.yaml GET /v1/orchestrator/drives/{drive_id}/files/{file_path}","href":"/api-reference/storage/files/download"},{"title":"Download a volume as a ZIP archive","openapi":"openapi.yaml GET /v1/orchestrator/drives/{drive_id}/archive","href":"/api-reference/storage/files/archive"},{"title":"Delete a file","openapi":"openapi.yaml DELETE /v1/orchestrator/drives/{drive_id}/files/{file_path}","href":"/api-reference/storage/files/delete"},{"title":"Delete a folder","openapi":"openapi.yaml DELETE /v1/orchestrator/drives/{drive_id}/folders/{folder_path}","href":"/api-reference/storage/files/delete-folder"},{"title":"Delete all volume files","openapi":"openapi.yaml DELETE /v1/orchestrator/drives/{drive_id}/contents","href":"/api-reference/storage/files/clear"}]},{"group":"GitHub repositories","pages":[{"title":"List GitHub connections","openapi":"openapi.yaml GET /v1/orchestrator/github/connections","href":"/api-reference/storage/github/connections"},{"title":"List GitHub repositories","openapi":"openapi.yaml GET /v1/orchestrator/github/connections/{connection_id}/repositories","href":"/api-reference/storage/github/repositories"},{"title":"List repository branches","openapi":"openapi.yaml GET /v1/orchestrator/github/connections/{connection_id}/repositories/{repository_id}/branches","href":"/api-reference/storage/github/branches"},{"title":"Pull a repository into a volume","openapi":"openapi.yaml POST /v1/orchestrator/drives/{drive_id}/github","href":"/api-reference/storage/github/pull"},{"title":"Sync a repository","openapi":"openapi.yaml POST /v1/orchestrator/drives/{drive_id}/github/{folder}/sync","href":"/api-reference/storage/github/sync"},{"title":"Disconnect a GitHub account","openapi":"openapi.yaml DELETE /v1/orchestrator/github/connections/{connection_id}","href":"/api-reference/storage/github/disconnect"}]},{"group":"Private networks","pages":[{"title":"Private networks and WireGuard","sidebarTitle":"Overview","href":"/api-reference/networks/overview"},{"title":"List private networks","openapi":"openapi.yaml GET /v1/orchestrator/networks","href":"/api-reference/networks/list"},{"title":"Create a private network","openapi":"openapi.yaml POST /v1/orchestrator/networks","href":"/api-reference/networks/create"},{"title":"Get a private network","openapi":"openapi.yaml GET /v1/orchestrator/networks/{network_id}","href":"/api-reference/networks/get"},{"title":"Rename a private network","openapi":"openapi.yaml PATCH /v1/orchestrator/networks/{network_id}","href":"/api-reference/networks/rename"},{"title":"Delete a private network","openapi":"openapi.yaml DELETE /v1/orchestrator/networks/{network_id}","href":"/api-reference/networks/delete"},{"title":"List default-network WireGuard configs","openapi":"openapi.yaml GET /v1/orchestrator/networks/shared/peers","href":"/api-reference/networks/wireguard/default-list"},{"title":"Add a default-network WireGuard config","openapi":"openapi.yaml POST /v1/orchestrator/networks/shared/peers","href":"/api-reference/networks/wireguard/default-create"},{"title":"Remove a default-network WireGuard config","openapi":"openapi.yaml DELETE /v1/orchestrator/networks/shared/peers/{peer_id}","href":"/api-reference/networks/wireguard/default-delete"},{"title":"List network WireGuard configs","openapi":"openapi.yaml GET /v1/orchestrator/networks/{network_id}/peers","href":"/api-reference/networks/wireguard/list"},{"title":"Add a network WireGuard config","openapi":"openapi.yaml POST /v1/orchestrator/networks/{network_id}/peers","href":"/api-reference/networks/wireguard/create"},{"title":"Remove a network WireGuard config","openapi":"openapi.yaml DELETE /v1/orchestrator/networks/{network_id}/peers/{peer_id}","href":"/api-reference/networks/wireguard/delete"}]},{"group":"Monitoring","pages":[{"title":"Read machine metrics and console logs","sidebarTitle":"Overview","href":"/api-reference/monitoring/overview"},{"title":"Get latest node telemetry","openapi":"openapi.yaml GET /v1/observability/nodes/{node_id}/telemetry/latest","href":"/api-reference/monitoring/node-telemetry-latest"},{"title":"Query node telemetry history","openapi":"openapi.yaml GET /v1/observability/nodes/{node_id}/telemetry/query","href":"/api-reference/monitoring/node-telemetry-query"},{"title":"Get latest VM telemetry","openapi":"openapi.yaml GET /v1/observability/virtual-machines/{virtual_machine_id}/telemetry/latest","href":"/api-reference/monitoring/vm-telemetry-latest"},{"title":"Query VM telemetry history","openapi":"openapi.yaml GET /v1/observability/virtual-machines/{virtual_machine_id}/telemetry/query","href":"/api-reference/monitoring/vm-telemetry-query"},{"title":"Get latest telemetry for many machines","openapi":"openapi.yaml POST /v1/observability/nodes/telemetry/latest","href":"/api-reference/monitoring/telemetry-batch"},{"title":"Query node console logs","openapi":"openapi.yaml GET /v1/observability/nodes/{node_id}/logs/{stream}/query","href":"/api-reference/monitoring/node-logs"},{"title":"Query VM console logs","openapi":"openapi.yaml GET /v1/observability/virtual-machines/{virtual_machine_id}/logs/{stream}/query","href":"/api-reference/monitoring/vm-logs"}]},{"group":"Reserve","pages":[{"title":"List capacity listings","openapi":"openapi.yaml GET /commerce/v2/listings","href":"/api-reference/reserve/list-listings"},{"title":"Get a capacity listing","openapi":"openapi.yaml GET /commerce/v2/listings/{listingId}","href":"/api-reference/reserve/get-listing"},{"title":"List a listing's terms","openapi":"openapi.yaml GET /commerce/v2/listings/{listingId}/terms","href":"/api-reference/reserve/list-terms"},{"title":"Post a Reserve offer","openapi":"openapi.yaml POST /v1/markets/offers","href":"/api-reference/reserve/post-offer"},{"title":"List offers","openapi":"openapi.yaml GET /v1/markets/offers","href":"/api-reference/reserve/list-my-offers"},{"title":"Cancel an offer","openapi":"openapi.yaml DELETE /v1/markets/offers/{offerId}","href":"/api-reference/reserve/cancel-offer"},{"title":"Accept an offer on your listing","openapi":"openapi.yaml POST /v1/markets/offers/{offerId}/accept","href":"/api-reference/reserve/accept-offer"}]},{"group":"Market","pages":[{"title":"Get a listing's free capacity","openapi":"openapi.yaml GET /v1/markets/listings/{listingId}/availability","description":"Returns how many of a listing's GPUs (vCPUs on a CPU listing), and on how many nodes, are free to book over time, from now (or the listing's start) until the listing ends. Without an end, a Market listing returns 30 days ahead and a Reserve listing returns far enough ahead for any of its terms. Use it to choose a window before you book or offer. GPUs running Spot VMs count as free, because a booking ends Spot on its GPUs when it starts. Reserve listings return 404 unless your organization is approved or owns the listing.","href":"/api-reference/market/availability"},{"title":"Buy Market windows","openapi":"openapi.yaml POST /v1/markets/bookings","href":"/api-reference/market/buy"},{"title":"List your bookings","openapi":"openapi.yaml GET /v1/markets/bookings","description":"Lists your organization's 200 most recent bookings that have not started, newest first, including recently cancelled ones. When a booking starts it becomes the reservation with the same ID and leaves this list; read it with GET /commerce/reservations/{reservationId}.","href":"/api-reference/market/list-bookings"},{"title":"Cancel a booking","openapi":"openapi.yaml DELETE /v1/markets/bookings/{bookingId}","href":"/api-reference/market/cancel-booking"}]},{"group":"Order books","pages":[{"title":"List order books","openapi":"openapi.yaml GET /v1/markets/books","href":"/api-reference/order-books/list-books"},{"title":"Get order book depth","openapi":"openapi.yaml GET /v1/markets/books/{gpuSlug}","href":"/api-reference/order-books/get-book"},{"title":"List recent trades","openapi":"openapi.yaml GET /v1/markets/books/{gpuSlug}/trades","href":"/api-reference/order-books/list-trades"},{"title":"Quote a bid","openapi":"openapi.yaml GET /v1/markets/books/{gpuSlug}/quote","href":"/api-reference/order-books/quote"},{"title":"Place a bid","openapi":"openapi.yaml POST /v1/markets/orders","href":"/api-reference/order-books/place-bid"},{"title":"List your orders","openapi":"openapi.yaml GET /v1/markets/orders","href":"/api-reference/order-books/list-orders"},{"title":"Get an order","openapi":"openapi.yaml GET /v1/markets/orders/{orderId}","href":"/api-reference/order-books/get-order"},{"title":"Cancel a bid","openapi":"openapi.yaml DELETE /v1/markets/orders/{orderId}","href":"/api-reference/order-books/cancel-order"},{"title":"List your fills","openapi":"openapi.yaml GET /v1/markets/fills","href":"/api-reference/order-books/list-fills"},{"title":"Get a fill","openapi":"openapi.yaml GET /v1/markets/fills/{fillId}","href":"/api-reference/order-books/get-fill"},{"title":"End a fill","openapi":"openapi.yaml DELETE /commerce/reservations/{reservationId}","href":"/api-reference/order-books/end-fill"}]},{"group":"Relist","pages":[{"title":"Relist capacity from a reservation","openapi":"openapi.yaml POST /commerce/reservations/{reservationId}/relist","href":"/api-reference/relist/create"},{"title":"Update your listing","openapi":"openapi.yaml PATCH /commerce/v2/listings/{listingId}","href":"/api-reference/relist/update-listing"},{"title":"Delist your listing","openapi":"openapi.yaml POST /commerce/v2/listings/{listingId}/delist","href":"/api-reference/relist/delist"},{"title":"Add a term to your listing","openapi":"openapi.yaml POST /commerce/v2/listings/{listingId}/terms","href":"/api-reference/relist/add-term"},{"title":"Delete a term from your listing","openapi":"openapi.yaml DELETE /commerce/v2/listings/{listingId}/terms/{listingTermsId}","href":"/api-reference/relist/delete-term"},{"title":"List your listing's nodes","openapi":"openapi.yaml GET /commerce/v2/listings/{listingId}/nodes","href":"/api-reference/relist/list-nodes"}]},{"group":"Billing","pages":[{"title":"List invoices","openapi":"openapi.yaml GET /commerce/invoices","href":"/api-reference/billing/invoices-list"},{"title":"Get an invoice","openapi":"openapi.yaml GET /commerce/invoices/{invoiceId}","href":"/api-reference/billing/invoice-get"},{"title":"List a reservation's invoices","openapi":"openapi.yaml GET /commerce/reservations/{reservationId}/invoices","href":"/api-reference/billing/reservation-invoices"},{"title":"Get billing summary","openapi":"openapi.yaml GET /commerce/billing/summary","href":"/api-reference/billing/summary"},{"title":"Get usage cost","openapi":"openapi.yaml GET /commerce/billing/showback","href":"/api-reference/billing/usage"},{"title":"Get supplied GPU-hours","openapi":"openapi.yaml GET /commerce/reservations/usage","href":"/api-reference/billing/reservation-usage"},{"title":"Get billing contact","openapi":"openapi.yaml GET /commerce/billing/contact","href":"/api-reference/billing/contact"},{"title":"Check for a saved card","openapi":"openapi.yaml GET /commerce/billing/payment-method","href":"/api-reference/billing/payment-method"},{"title":"List account balances","openapi":"openapi.yaml GET /v1/ledger/accounts","href":"/api-reference/billing/credits"},{"title":"List account transactions","openapi":"openapi.yaml GET /v1/ledger/transactions","href":"/api-reference/billing/transactions"}]}]}]},"basePath":"","title":"Buy Market windows - Ornn","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}