Top up your prepaid balance
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/billing/balance/top-up \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"amount": 5000,
"currency": "usd",
"successUrl": "https://app.orbit.devotel.io/billing?topup=success",
"cancelUrl": "https://app.orbit.devotel.io/billing?topup=cancelled"
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/billing/balance/top-up"
payload = {
"amount": 5000,
"currency": "usd",
"successUrl": "https://app.orbit.devotel.io/billing?topup=success",
"cancelUrl": "https://app.orbit.devotel.io/billing?topup=cancelled"
}
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({
amount: 5000,
currency: 'usd',
successUrl: 'https://app.orbit.devotel.io/billing?topup=success',
cancelUrl: 'https://app.orbit.devotel.io/billing?topup=cancelled'
})
};
fetch('https://api.orbit.devotel.io/api/v1/billing/balance/top-up', 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/balance/top-up",
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([
'amount' => 5000,
'currency' => 'usd',
'successUrl' => 'https://app.orbit.devotel.io/billing?topup=success',
'cancelUrl' => 'https://app.orbit.devotel.io/billing?topup=cancelled'
]),
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.orbit.devotel.io/api/v1/billing/balance/top-up"
payload := strings.NewReader("{\n \"amount\": 5000,\n \"currency\": \"usd\",\n \"successUrl\": \"https://app.orbit.devotel.io/billing?topup=success\",\n \"cancelUrl\": \"https://app.orbit.devotel.io/billing?topup=cancelled\"\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.orbit.devotel.io/api/v1/billing/balance/top-up")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 5000,\n \"currency\": \"usd\",\n \"successUrl\": \"https://app.orbit.devotel.io/billing?topup=success\",\n \"cancelUrl\": \"https://app.orbit.devotel.io/billing?topup=cancelled\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/billing/balance/top-up")
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 \"amount\": 5000,\n \"currency\": \"usd\",\n \"successUrl\": \"https://app.orbit.devotel.io/billing?topup=success\",\n \"cancelUrl\": \"https://app.orbit.devotel.io/billing?topup=cancelled\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"checkoutUrl": "https://checkout.stripe.com/c/pay/cs_test_a1B2c3D4"
},
"meta": {
"request_id": "req_01HZY8EXAMPLE",
"timestamp": "2026-08-02T12:00:00.000Z"
}
}Billing
Top up your prepaid balance
Starts a prepaid-wallet top-up for the organization and returns the payment session needed to complete the charge. Requires an owner, admin, or billing role and is rate-limited as a money-moving operation. The wallet is credited once the payment settles.
POST
/
api
/
v1
/
billing
/
balance
/
top-up
Top up your prepaid balance
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/billing/balance/top-up \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"amount": 5000,
"currency": "usd",
"successUrl": "https://app.orbit.devotel.io/billing?topup=success",
"cancelUrl": "https://app.orbit.devotel.io/billing?topup=cancelled"
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/billing/balance/top-up"
payload = {
"amount": 5000,
"currency": "usd",
"successUrl": "https://app.orbit.devotel.io/billing?topup=success",
"cancelUrl": "https://app.orbit.devotel.io/billing?topup=cancelled"
}
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({
amount: 5000,
currency: 'usd',
successUrl: 'https://app.orbit.devotel.io/billing?topup=success',
cancelUrl: 'https://app.orbit.devotel.io/billing?topup=cancelled'
})
};
fetch('https://api.orbit.devotel.io/api/v1/billing/balance/top-up', 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/balance/top-up",
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([
'amount' => 5000,
'currency' => 'usd',
'successUrl' => 'https://app.orbit.devotel.io/billing?topup=success',
'cancelUrl' => 'https://app.orbit.devotel.io/billing?topup=cancelled'
]),
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.orbit.devotel.io/api/v1/billing/balance/top-up"
payload := strings.NewReader("{\n \"amount\": 5000,\n \"currency\": \"usd\",\n \"successUrl\": \"https://app.orbit.devotel.io/billing?topup=success\",\n \"cancelUrl\": \"https://app.orbit.devotel.io/billing?topup=cancelled\"\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.orbit.devotel.io/api/v1/billing/balance/top-up")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 5000,\n \"currency\": \"usd\",\n \"successUrl\": \"https://app.orbit.devotel.io/billing?topup=success\",\n \"cancelUrl\": \"https://app.orbit.devotel.io/billing?topup=cancelled\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/billing/balance/top-up")
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 \"amount\": 5000,\n \"currency\": \"usd\",\n \"successUrl\": \"https://app.orbit.devotel.io/billing?topup=success\",\n \"cancelUrl\": \"https://app.orbit.devotel.io/billing?topup=cancelled\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"checkoutUrl": "https://checkout.stripe.com/c/pay/cs_test_a1B2c3D4"
},
"meta": {
"request_id": "req_01HZY8EXAMPLE",
"timestamp": "2026-08-02T12:00:00.000Z"
}
}Authorizations
BearerApiKey
Dashboard JWT token from Clerk
Headers
Stable client-generated key (8-255 chars) that dedupes retried top-ups, so a repeated request returns the same payment session instead of charging twice.
Required string length:
8 - 255Body
application/json
Amount to add to the wallet, in cents.
Trusted-origin URL to redirect to after a successful payment.
Trusted-origin URL to redirect to if the payment is cancelled.
Available options:
usd, eur ⌘I