Get SIM usage
curl --request GET \
--url https://api.spenza.com/api/v1.1/sims/{iccid}/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.spenza.com/api/v1.1/sims/{iccid}/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.spenza.com/api/v1.1/sims/{iccid}/usage', 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.spenza.com/api/v1.1/sims/{iccid}/usage",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.spenza.com/api/v1.1/sims/{iccid}/usage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.spenza.com/api/v1.1/sims/{iccid}/usage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spenza.com/api/v1.1/sims/{iccid}/usage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"iccid": "8901260853182965429",
"cycle": {
"start": "2026-07-01T00:00:00.000Z",
"end": "2026-07-31T00:00:00.000Z"
},
"data": {
"used": 2.41,
"allowance": 5,
"unit": "GB"
},
"voice": {
"usedMinutes": 128,
"allowanceMinutes": 1000
},
"sms": {
"used": 14,
"allowance": 500
},
"history": []
}
}SIMs
Get SIM usage
Data / voice / SMS usage for the SIM’s current billing cycle. data.used
is decimal GB (1 GB = 1e9 bytes) sourced from the invoice; history is
[] unless history=true, and is empty even then for a SIM not covered
by the usage-snapshot pipeline.
GET
/
api
/
v1.1
/
sims
/
{iccid}
/
usage
Get SIM usage
curl --request GET \
--url https://api.spenza.com/api/v1.1/sims/{iccid}/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.spenza.com/api/v1.1/sims/{iccid}/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.spenza.com/api/v1.1/sims/{iccid}/usage', 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.spenza.com/api/v1.1/sims/{iccid}/usage",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.spenza.com/api/v1.1/sims/{iccid}/usage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.spenza.com/api/v1.1/sims/{iccid}/usage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spenza.com/api/v1.1/sims/{iccid}/usage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"iccid": "8901260853182965429",
"cycle": {
"start": "2026-07-01T00:00:00.000Z",
"end": "2026-07-31T00:00:00.000Z"
},
"data": {
"used": 2.41,
"allowance": 5,
"unit": "GB"
},
"voice": {
"usedMinutes": 128,
"allowanceMinutes": 1000
},
"sms": {
"used": 14,
"allowance": 500
},
"history": []
}
}Authorizations
Bearer token obtained from POST /api/v1.1/auth/token.
Path Parameters
SIM ICCID.
Example:
"8901260853182965429"
Query Parameters
Include prior billing cycles.
Response
Usage for the current cycle (and prior cycles if requested).
⌘I

