Listar contas elegíveis para corte
RegistosGET /collections/eligible-cutoffs
Accounts past the tenant threshold, excluding active plans and disputes
Lists, most overdue first, the accounts that the tenant's collection policy allows to be disconnected now: overdue past cutoff_past_due_days, owing at least cutoff_min_debt_cents, not on an active payment plan, with no disputed invoice, with an active connection, and not already pending cutoff or disconnected. The list is computed live from billing; page with limit (default 20, max 100) and the after cursor, which stays stable when an account pays between pages. Requires collections:read.
Parâmetros
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
Devolve
Permissões collections:read · Funções: admin, analyst, billing_clerk, customer_service, finance, owner, viewer
curl -X GET "$BUSINESS_API/collections/eligible-cutoffs" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/collections/eligible-cutoffs", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/collections/eligible-cutoffs",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/collections/eligible-cutoffs", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Success