Entity Credit Operations
curl --request GET \
--url https://api.nozle.app/api/v1/customers/{customer_id}/entities/{entity_id}/credit-operations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nozle.app/api/v1/customers/{customer_id}/entities/{entity_id}/credit-operations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nozle.app/api/v1/customers/{customer_id}/entities/{entity_id}/credit-operations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nozle.app/api/v1/customers/{customer_id}/entities/{entity_id}/credit-operations"
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))
}require 'uri'
require 'net/http'
url = URI("https://api.nozle.app/api/v1/customers/{customer_id}/entities/{entity_id}/credit-operations")
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<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nozle.app/api/v1/customers/{customer_id}/entities/{entity_id}/credit-operations",
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;
}HttpResponse<String> response = Unirest.get("https://api.nozle.app/api/v1/customers/{customer_id}/entities/{entity_id}/credit-operations")
.header("Authorization", "Bearer <token>")
.asString();Product Credits
Entity Credit Operations
Paginate immutable Entity-attributed credit history
GET
/
customers
/
{customer_id}
/
entities
/
{entity_id}
/
credit-operations
Entity Credit Operations
curl --request GET \
--url https://api.nozle.app/api/v1/customers/{customer_id}/entities/{entity_id}/credit-operations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nozle.app/api/v1/customers/{customer_id}/entities/{entity_id}/credit-operations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nozle.app/api/v1/customers/{customer_id}/entities/{entity_id}/credit-operations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nozle.app/api/v1/customers/{customer_id}/entities/{entity_id}/credit-operations"
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))
}require 'uri'
require 'net/http'
url = URI("https://api.nozle.app/api/v1/customers/{customer_id}/entities/{entity_id}/credit-operations")
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<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nozle.app/api/v1/customers/{customer_id}/entities/{entity_id}/credit-operations",
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;
}HttpResponse<String> response = Unirest.get("https://api.nozle.app/api/v1/customers/{customer_id}/entities/{entity_id}/credit-operations")
.header("Authorization", "Bearer <token>")
.asString();Auth: secret key only. When API permissions are enabled, the key requires
The response includes grants, transfers, consumes, denials, expiry, revocation, refunds, and adjustments attributed to that exact Entity UUID. Each operation preserves exact decimal amounts, metric/rate snapshots, status, occurrence time, and source allocations.
entity:read. Publishable keys are rejected.
Query parameters:
credit_system_code— optional exact system filter;limit— 1 to 100, default 50;cursor— opaque cursor fromnext_cursor, maximum 512 bytes.
GET /customers/workspace_123/entities/user_42/credit-operations?credit_system_code=ai_credits&limit=50
Authorization: Bearer sk_nozle_...
next_cursor is JSON null at exhaustion. Pass a non-null cursor back unchanged; do not construct or decode it.