Update auto-top-up configuration
curl --request PUT \
--url https://api.orbit.devotel.io/api/v1/billing/auto-topup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"threshold_minor": 500,
"recharge_amount_minor": 5000,
"max_monthly_minor": 50000,
"currency": "USD"
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/billing/auto-topup"
payload = {
"enabled": True,
"threshold_minor": 500,
"recharge_amount_minor": 5000,
"max_monthly_minor": 50000,
"currency": "USD"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
threshold_minor: 500,
recharge_amount_minor: 5000,
max_monthly_minor: 50000,
currency: 'USD'
})
};
fetch('https://api.orbit.devotel.io/api/v1/billing/auto-topup', 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.orbit.devotel.io/api/v1/billing/auto-topup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'threshold_minor' => 500,
'recharge_amount_minor' => 5000,
'max_monthly_minor' => 50000,
'currency' => 'USD'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.orbit.devotel.io/api/v1/billing/auto-topup"
payload := strings.NewReader("{\n \"enabled\": true,\n \"threshold_minor\": 500,\n \"recharge_amount_minor\": 5000,\n \"max_monthly_minor\": 50000,\n \"currency\": \"USD\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.put("https://api.orbit.devotel.io/api/v1/billing/auto-topup")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"threshold_minor\": 500,\n \"recharge_amount_minor\": 5000,\n \"max_monthly_minor\": 50000,\n \"currency\": \"USD\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/billing/auto-topup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"threshold_minor\": 500,\n \"recharge_amount_minor\": 5000,\n \"max_monthly_minor\": 50000,\n \"currency\": \"USD\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"enabled": true,
"threshold_minor": 500,
"recharge_amount_minor": 5000,
"max_monthly_minor": 50000,
"currency": "USD"
},
"meta": {
"request_id": "req_01HZY8EXAMPLE",
"timestamp": "2026-08-02T12:00:00.000Z"
}
}Billing
Update auto-top-up configuration
Creates or updates the organization’s automatic top-up rule: the balance threshold at which the saved payment method is charged off-session and the amount to add. Owner, admin, or billing role required. The charge itself is fired by the scheduled worker when the balance crosses the threshold.
PUT
/
api
/
v1
/
billing
/
auto-topup
Update auto-top-up configuration
curl --request PUT \
--url https://api.orbit.devotel.io/api/v1/billing/auto-topup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"threshold_minor": 500,
"recharge_amount_minor": 5000,
"max_monthly_minor": 50000,
"currency": "USD"
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/billing/auto-topup"
payload = {
"enabled": True,
"threshold_minor": 500,
"recharge_amount_minor": 5000,
"max_monthly_minor": 50000,
"currency": "USD"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
threshold_minor: 500,
recharge_amount_minor: 5000,
max_monthly_minor: 50000,
currency: 'USD'
})
};
fetch('https://api.orbit.devotel.io/api/v1/billing/auto-topup', 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.orbit.devotel.io/api/v1/billing/auto-topup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'threshold_minor' => 500,
'recharge_amount_minor' => 5000,
'max_monthly_minor' => 50000,
'currency' => 'USD'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.orbit.devotel.io/api/v1/billing/auto-topup"
payload := strings.NewReader("{\n \"enabled\": true,\n \"threshold_minor\": 500,\n \"recharge_amount_minor\": 5000,\n \"max_monthly_minor\": 50000,\n \"currency\": \"USD\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
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.put("https://api.orbit.devotel.io/api/v1/billing/auto-topup")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"threshold_minor\": 500,\n \"recharge_amount_minor\": 5000,\n \"max_monthly_minor\": 50000,\n \"currency\": \"USD\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/billing/auto-topup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"threshold_minor\": 500,\n \"recharge_amount_minor\": 5000,\n \"max_monthly_minor\": 50000,\n \"currency\": \"USD\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"enabled": true,
"threshold_minor": 500,
"recharge_amount_minor": 5000,
"max_monthly_minor": 50000,
"currency": "USD"
},
"meta": {
"request_id": "req_01HZY8EXAMPLE",
"timestamp": "2026-08-02T12:00:00.000Z"
}
}Authorizations
BearerApiKey
Dashboard JWT token from Clerk
Body
application/json
Whether auto-top-up should be active.
Balance, in minor units (cents), at or below which a charge is triggered.
Amount, in minor units (cents), to add; must exceed the threshold.
ISO-4217 currency; must match the org's payment currency.
Optional monthly cap, in minor units.
Set true to explicitly clear the monthly cap; otherwise a null max_monthly_minor leaves the stored cap unchanged.
⌘I