curl --request POST \
--url https://api.ornn.com/commerce/v2/listings/{listingId}/terms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"type": "spot",
"minDurationHours": 1,
"maxDurationHours": 1,
"pricePerGpuHourMicroUsd": 2500000,
"downPaymentCents": null,
"renewable": true
}
'import requests
url = "https://api.ornn.com/commerce/v2/listings/{listingId}/terms"
payload = {
"type": "spot",
"minDurationHours": 1,
"maxDurationHours": 1,
"pricePerGpuHourMicroUsd": 2500000,
"downPaymentCents": None,
"renewable": True
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
type: 'spot',
minDurationHours: 1,
maxDurationHours: 1,
pricePerGpuHourMicroUsd: 2500000,
downPaymentCents: null,
renewable: true
})
};
fetch('https://api.ornn.com/commerce/v2/listings/{listingId}/terms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ornn.com/commerce/v2/listings/{listingId}/terms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'type' => 'spot',
'minDurationHours' => 1,
'maxDurationHours' => 1,
'pricePerGpuHourMicroUsd' => 2500000,
'downPaymentCents' => null,
'renewable' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ornn.com/commerce/v2/listings/{listingId}/terms"
payload := strings.NewReader("{\n \"type\": \"spot\",\n \"minDurationHours\": 1,\n \"maxDurationHours\": 1,\n \"pricePerGpuHourMicroUsd\": 2500000,\n \"downPaymentCents\": null,\n \"renewable\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ornn.com/commerce/v2/listings/{listingId}/terms")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"spot\",\n \"minDurationHours\": 1,\n \"maxDurationHours\": 1,\n \"pricePerGpuHourMicroUsd\": 2500000,\n \"downPaymentCents\": null,\n \"renewable\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ornn.com/commerce/v2/listings/{listingId}/terms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"spot\",\n \"minDurationHours\": 1,\n \"maxDurationHours\": 1,\n \"pricePerGpuHourMicroUsd\": 2500000,\n \"downPaymentCents\": null,\n \"renewable\": true\n}"
response = http.request(request)
puts response.read_body{
"listingTermsId": "13131313-1313-4313-8313-131313131313",
"capacityListingId": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
"type": "spot",
"renewable": true,
"minDurationHours": 1,
"maxDurationHours": 1,
"downPaymentCents": null,
"pricePerGpuHourMicroUsd": 2500000,
"createdAt": "2026-10-14T18:30:00Z"
}{
"detail": {
"code": "invalid_id",
"message": "That capacity or financial term ID is not valid."
}
}{
"code": "<string>",
"detail": "<string>"
}{
"detail": {
"code": "forbidden",
"message": "Your account cannot make this change."
}
}{
"detail": {
"code": "listing_not_editable",
"message": "Add terms only to draft or available listings."
}
}{
"detail": {
"code": "invalid_hourly_terms",
"message": "Spot and On-demand terms require a one-hour duration with renewal enabled."
}
}{
"code": "<string>",
"detail": "<string>"
}Add a term to your listing
Adds a financial term to a draft or available listing your organization owns, for example a spot term on a VM relist that sells reserved windows. Terms cannot be edited; add a new one and delete the old one. Requires Idempotency-Key.
curl --request POST \
--url https://api.ornn.com/commerce/v2/listings/{listingId}/terms \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"type": "spot",
"minDurationHours": 1,
"maxDurationHours": 1,
"pricePerGpuHourMicroUsd": 2500000,
"downPaymentCents": null,
"renewable": true
}
'import requests
url = "https://api.ornn.com/commerce/v2/listings/{listingId}/terms"
payload = {
"type": "spot",
"minDurationHours": 1,
"maxDurationHours": 1,
"pricePerGpuHourMicroUsd": 2500000,
"downPaymentCents": None,
"renewable": True
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
type: 'spot',
minDurationHours: 1,
maxDurationHours: 1,
pricePerGpuHourMicroUsd: 2500000,
downPaymentCents: null,
renewable: true
})
};
fetch('https://api.ornn.com/commerce/v2/listings/{listingId}/terms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ornn.com/commerce/v2/listings/{listingId}/terms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'type' => 'spot',
'minDurationHours' => 1,
'maxDurationHours' => 1,
'pricePerGpuHourMicroUsd' => 2500000,
'downPaymentCents' => null,
'renewable' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ornn.com/commerce/v2/listings/{listingId}/terms"
payload := strings.NewReader("{\n \"type\": \"spot\",\n \"minDurationHours\": 1,\n \"maxDurationHours\": 1,\n \"pricePerGpuHourMicroUsd\": 2500000,\n \"downPaymentCents\": null,\n \"renewable\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ornn.com/commerce/v2/listings/{listingId}/terms")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"spot\",\n \"minDurationHours\": 1,\n \"maxDurationHours\": 1,\n \"pricePerGpuHourMicroUsd\": 2500000,\n \"downPaymentCents\": null,\n \"renewable\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ornn.com/commerce/v2/listings/{listingId}/terms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"spot\",\n \"minDurationHours\": 1,\n \"maxDurationHours\": 1,\n \"pricePerGpuHourMicroUsd\": 2500000,\n \"downPaymentCents\": null,\n \"renewable\": true\n}"
response = http.request(request)
puts response.read_body{
"listingTermsId": "13131313-1313-4313-8313-131313131313",
"capacityListingId": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
"type": "spot",
"renewable": true,
"minDurationHours": 1,
"maxDurationHours": 1,
"downPaymentCents": null,
"pricePerGpuHourMicroUsd": 2500000,
"createdAt": "2026-10-14T18:30:00Z"
}{
"detail": {
"code": "invalid_id",
"message": "That capacity or financial term ID is not valid."
}
}{
"code": "<string>",
"detail": "<string>"
}{
"detail": {
"code": "forbidden",
"message": "Your account cannot make this change."
}
}{
"detail": {
"code": "listing_not_editable",
"message": "Add terms only to draft or available listings."
}
}{
"detail": {
"code": "invalid_hourly_terms",
"message": "Spot and On-demand terms require a one-hour duration with renewal enabled."
}
}{
"code": "<string>",
"detail": "<string>"
}Authorizations
Create an organization API key in Account Settings > Developer. Do not send this key to the Kubernetes API server.
Headers
Required. A unique key of 1 to 200 bytes for this operation, such as a UUID. Retrying with the same key and the same body returns the original response instead of writing again. The key is remembered for 24 hours; reusing it with a different body returns 409 idempotency_conflict. A missing key returns 422 invalid_idempotency_key.
1 - 200Path Parameters
Listing ID (capacityListingId or listingId).
Body
Shortest window a buyer can take, in hours equal to whole seconds.
Longest window, in hours equal to whole seconds. Must fit inside the listing window.
Your asking price: what you receive per GPU-hour, in integer micro-USD.
x >= 1reserved (the default) sells fixed windows in the Market. spot offers the nodes' idle time on the Spot order book and requires VM capacity. spot and on-demand are hourly: set both durations to 1 and renewable to true.
reserved, spot, on-demand x >= 0Response
Term added.
Send as listingTermId in offers and purchases.
The listing's price. On relisted capacity this is the seller's asking price before fees; buyers pay the schedule price instead.
reserved, spot, on-demand, null Was this page helpful?