Obter o contador de uma ligação numa data
RegistosGET /temporal/meter-binding
Answers which meter was bound to a connection at as_of_valid_time, as the system recorded it at as_of_system_time; both are RFC 3339 timestamps and default to now. Querying an earlier system time reproduces the answer given before a later correction. Returns 404 when no binding is valid at that moment and 400 for a missing connection_id or a malformed time; requires temporal:read.
Parâmetros
connection_idID of the connection whose meter binding is looked up; required.
as_of_valid_timeDefaults to now
as_of_system_timeDefaults to now
Devolve
200 Binding
Mostrar atributos
idsubject_idvalue_idvalid_fromvalid_tosystem_created_atsystem_superseded_atsuperseded_by_user_idcreated_by_user_idreason
Permissões temporal:read · Funções: admin, analyst, operations, owner, viewer
curl -X GET "$BUSINESS_API/temporal/meter-binding" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/temporal/meter-binding", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/temporal/meter-binding",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/temporal/meter-binding", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
{
"id": "tem_2lr6OdduwHv6ur9ASrXCMZhicRB",
"subject_id": "sub_2Cg5f6gZ7W8jvEm53ICdbaeNrWe",
"value_id": "val_27HwIF9YGDzAGrHgifrgIDHAGbX",
"valid_from": "2026-11-19T09:30:00Z",
"valid_to": "2026-11-19T09:30:00Z",
"system_created_at": "2026-11-19T09:30:00Z",
"system_superseded_at": "2026-11-19T09:30:00Z",
"superseded_by_user_id": "sup_2EmtFmI3zoylR4ArLSeZJKuFl8g",
"created_by_user_id": "cre_28qxRmKvFI8JVaS3nUY95qcpzIi",
"reason": "Leitura confirmada no local."
}