Get Wallet
curl --request GET \
--url https://api.cuttr.com/api/platform/v1/wallet \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://api.cuttr.com/api/platform/v1/wallet"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://api.cuttr.com/api/platform/v1/wallet', 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.cuttr.com/api/platform/v1/wallet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-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"
"net/http"
"io"
)
func main() {
url := "https://api.cuttr.com/api/platform/v1/wallet"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cuttr.com/api/platform/v1/wallet")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cuttr.com/api/platform/v1/wallet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"balance_cents": 2500,
"total_spent_cents": 7500,
"total_topped_up_cents": 10000,
"active": true
}
Endpoints
Get Wallet
Get your wallet balance and usage totals
GET
/
api
/
platform
/
v1
/
wallet
Get Wallet
curl --request GET \
--url https://api.cuttr.com/api/platform/v1/wallet \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://api.cuttr.com/api/platform/v1/wallet"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://api.cuttr.com/api/platform/v1/wallet', 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.cuttr.com/api/platform/v1/wallet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-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"
"net/http"
"io"
)
func main() {
url := "https://api.cuttr.com/api/platform/v1/wallet"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cuttr.com/api/platform/v1/wallet")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cuttr.com/api/platform/v1/wallet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"balance_cents": 2500,
"total_spent_cents": 7500,
"total_topped_up_cents": 10000,
"active": true
}
Returns your team’s current wallet balance, total amount spent, and total amount topped up. The team is resolved from your API key.
Headers
Response
integer
Current wallet balance in cents. For example,
2500 = $25.00.integer
Cumulative amount spent on API calls, in cents.
integer
Cumulative amount added to the wallet, in cents.
boolean
Whether the billing account is active.
{
"balance_cents": 2500,
"total_spent_cents": 7500,
"total_topped_up_cents": 10000,
"active": true
}
⌘I

