Mencantumkan Batas Pengeluaran Efektif
GET/v1/organizations/spend_limits/effective
Mencantumkan batas pengeluaran efektif dan pengeluaran periode berjalan (period-to-date) setiap anggota.
Mengembalikan satu baris per (anggota, periode) yang batas pengeluarannya dapat ditentukan untuk anggota tersebut, beserta cakupan source tempat batas pengeluaran tersebut diwarisi. Paginasi dilakukan per anggota, sehingga periode milik seorang anggota tidak pernah terpecah ke beberapa halaman. Hanya didukung untuk organisasi Claude Enterprise, tidak untuk organisasi Claude Console.
Parameters
Returns
Mencantumkan Batas Pengeluaran Efektif
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.organization.spendlimits.effective.EffectiveListPage;
import com.anthropic.models.beta.organization.spendlimits.effective.EffectiveListParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
EffectiveListPage page = client.beta().organization().spendLimits().effective().list();
}
}Response 200
{
"data": [
{
"actor": {
"deleted": true,
"email_address": "email_address",
"name": "name",
"type": "user_actor",
"user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
},
"amount": "50000",
"currency": "USD",
"period": "daily",
"period_to_date_spend": "12050.5",
"scope": {
"type": "user",
"user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
},
"source": {
"type": "user",
"user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
},
"spend_limit_id": "spend_limit_id"
}
],
"next_page": "next_page"
}Returns Examples
Response 200
{
"data": [
{
"actor": {
"deleted": true,
"email_address": "email_address",
"name": "name",
"type": "user_actor",
"user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
},
"amount": "50000",
"currency": "USD",
"period": "daily",
"period_to_date_spend": "12050.5",
"scope": {
"type": "user",
"user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
},
"source": {
"type": "user",
"user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
},
"spend_limit_id": "spend_limit_id"
}
],
"next_page": "next_page"
}