Read monthly TAM Import balance
curl --request GET \
--url https://api.monaco.com/v1/tam/import/balance/currentimport requests
url = "https://api.monaco.com/v1/tam/import/balance/current"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.monaco.com/v1/tam/import/balance/current', 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.monaco.com/v1/tam/import/balance/current",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.monaco.com/v1/tam/import/balance/current"
req, _ := http.NewRequest("GET", url, nil)
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.monaco.com/v1/tam/import/balance/current")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monaco.com/v1/tam/import/balance/current")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"billing_mode": "platform",
"limited": true,
"period": {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"kind": "calendar_month"
},
"accounts": {
"limit": 123,
"used": 1,
"remaining": 123,
"would_add": 123,
"after_import": 123,
"over_by": 123
},
"contacts": {
"limit": 123,
"used": 1,
"remaining": 123,
"would_add": 123,
"after_import": 123,
"over_by": 123
},
"exceeded": true
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "not_found",
"message": "Resource not found"
}
}TAM
Read monthly TAM Import balance
Read the authenticated organization’s separate Account and Contact monthly limits and remaining balances. Used capacity includes records created this month and estimated additions committed to active accepted Imports. Pass preview_id to forecast the new Accounts and Contacts a READY Preview would add using current destinations. Forecast fields and exceeded are null without a Preview, before READY, or after its Import has been accepted. This does not reserve capacity or start an Import.
GET
/
v1
/
tam
/
import
/
balance
/
current
Read monthly TAM Import balance
curl --request GET \
--url https://api.monaco.com/v1/tam/import/balance/currentimport requests
url = "https://api.monaco.com/v1/tam/import/balance/current"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.monaco.com/v1/tam/import/balance/current', 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.monaco.com/v1/tam/import/balance/current",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.monaco.com/v1/tam/import/balance/current"
req, _ := http.NewRequest("GET", url, nil)
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.monaco.com/v1/tam/import/balance/current")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monaco.com/v1/tam/import/balance/current")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"billing_mode": "platform",
"limited": true,
"period": {
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"kind": "calendar_month"
},
"accounts": {
"limit": 123,
"used": 1,
"remaining": 123,
"would_add": 123,
"after_import": 123,
"over_by": 123
},
"contacts": {
"limit": 123,
"used": 1,
"remaining": 123,
"would_add": 123,
"after_import": 123,
"over_by": 123
},
"exceeded": true
},
"meta": {
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "not_found",
"message": "Resource not found"
}
}