List clearance
Lists the caller org's clearances, newest first, 200 at most; a payee narrows them.
GET /v1/principal/clearance
| Address | https://api.hanzo.ai/v1/principal/clearance |
| Method | GET |
| Operation | get_principal_clearance |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Lists the caller org's clearances, newest first, 200 at most; a payee narrows them. Any member of the paying org.
Request
1 field.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
payee | query | string | — | Payee narrows to one payee. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | principal.clearanceList | ok |
default | problem-details | refused |
200 body — 59 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
clearances | body | principal.Clearance[] | — | |
clearances[].allowed | body | boolean | — | |
clearances[].amount | body | string | — | Amount is the gross amount, U.S. dollars. |
clearances[].category | body | string | — | Category is what is bought: services, attorney, rents, royalties, other or merchandise. |
clearances[].decidedAt | body | integer (int64) | — | DecidedAt is when, unix seconds. |
clearances[].facts_required | body | principal.Fact[] | — | |
clearances[].facts_required[].blocks | body | boolean | — | Blocks is whether the payment waits on it. |
clearances[].facts_required[].code | body | string | — | Code is the fact's stable name. |
clearances[].facts_required[].question | body | string | — | Question is what must be answered. |
clearances[].facts_required[].rule | body | principal.Rule | — | |
clearances[].facts_required[].rule.code | body | string | — | Code is the rule's stable name, for a caller that branches on it. |
clearances[].facts_required[].rule.reason | body | string | — | Reason is the rule, stated. |
clearances[].id | body | string | — | ID is the clearance, "clr_"-prefixed. |
clearances[].notice | body | string | — | Notice is what a clearance is and is not. |
clearances[].payee | body | string | — | Payee is the org to be paid. |
clearances[].payer | body | string | — | Payer is the caller's org. |
clearances[].performed | body | string | — | Performed is where the service is performed, as stated. |
clearances[].platform | body | boolean | — | Platform is whether the caller operates the payee's platform, as stated. |
clearances[].rail | body | string | — | Rail is how it moves. |
clearances[].reporting_obligations | body | principal.Obligation[] | — | |
clearances[].reporting_obligations[].authority | body | string | — | Authority is who it is filed with. |
clearances[].reporting_obligations[].code | body | string | — | Code is the obligation's stable name. |
clearances[].reporting_obligations[].due | body | string | — | Due is when. |
clearances[].reporting_obligations[].filer | body | string | — | Filer is the org that files it. |
clearances[].reporting_obligations[].form | body | string | — | Form is what is filed. |
clearances[].reporting_obligations[].jurisdiction | body | string | — | Jurisdiction is where, ISO 3166-1 alpha-2 or "EU". |
clearances[].reporting_obligations[].rule | body | principal.Rule | — | |
clearances[].reporting_obligations[].rule.code | body | string | — | Code is the rule's stable name, for a caller that branches on it. |
clearances[].reporting_obligations[].rule.reason | body | string | — | Reason is the rule, stated. |
clearances[].reporting_obligations[].when | body | string | — | When is the condition it is owed on, when it is owed on one. |
clearances[].required_before_payment | body | principal.Step[] | — | |
clearances[].required_before_payment[].code | body | string | — | Code is the step's stable name, for a caller that branches on it. |
clearances[].required_before_payment[].rule | body | principal.Rule | — | |
clearances[].required_before_payment[].rule.code | body | string | — | Code is the rule's stable name, for a caller that branches on it. |
clearances[].required_before_payment[].rule.reason | body | string | — | Reason is the rule, stated. |
clearances[].required_before_payment[].what | body | string | — | What must happen, in words. |
clearances[].required_before_payment[].where | body | string | — | Where it is done, when it is done on this platform. |
clearances[].required_before_payment[].who | body | string | — | Who does it: payer, payee, or "Hanzo platform reviewer". |
clearances[].rules | body | principal.Decided[] | — | |
clearances[].rules[].field | body | string | — | |
clearances[].rules[].rule | body | principal.Rule | — | |
clearances[].rules[].rule.code | body | string | — | Code is the rule's stable name, for a caller that branches on it. |
clearances[].rules[].rule.reason | body | string | — | Reason is the rule, stated. |
clearances[].settlement_methods | body | principal.Method[] | — | |
clearances[].settlement_methods[].net | body | string | — | Net is what the payee receives, U.S. dollars. |
clearances[].settlement_methods[].rail | body | string | — | Rail is the rail: ledger or chain. |
clearances[].settlement_methods[].rule | body | principal.Rule | — | |
clearances[].settlement_methods[].rule.code | body | string | — | Code is the rule's stable name, for a caller that branches on it. |
clearances[].settlement_methods[].rule.reason | body | string | — | Reason is the rule, stated. |
clearances[].settlement_methods[].withheld | body | string | — | Withheld is what the payer keeps back and deposits itself, U.S. dollars. |
clearances[].status | body | string | — | |
clearances[].withholding | body | principal.Withholding | — | |
clearances[].withholding.amount | body | string | — | Amount is the amount to withhold, U.S. dollars; empty when the rate is. |
clearances[].withholding.chapter | body | string | — | Chapter is "3" (IRC chapter 3, a payment to a foreign person) or "backup" (IRC §3406), and empty when nothing is withheld or it cannot yet be decided. |
clearances[].withholding.rate | body | string | — | Rate is the rate in percent: "30", "24", "10", "0". |
clearances[].withholding.reason | body | string | — | Reason says why, in words. |
clearances[].withholding.rule | body | principal.Rule | — | |
clearances[].withholding.rule.code | body | string | — | Code is the rule's stable name, for a caller that branches on it. |
clearances[].withholding.rule.reason | body | string | — | Reason is the rule, stated. |
Failure carries the platform error shape — see Errors.
Examples
hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.
import { Configuration, PrincipalApi } from 'hanzoai';
const api = new PrincipalApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getPrincipalClearance();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import PrincipalApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = PrincipalApi(client).get_principal_clearance()cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)
resp, _, err := client.PrincipalAPI.GetPrincipalClearance(context.Background()).Execute()
if err != nil {
return err
}use hanzo_client::apis::{configuration::Configuration, principal_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = principal_api::get_principal_clearance(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.PrincipalApi;
ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));
var result = new PrincipalApi(client).getPrincipalClearance();The method above is the one at the current release of the document. [email protected] (npm) and [email protected] (PyPI) were generated from an earlier release, where this operation carried a different id, so it spells the method differently — regenerating the clients is what makes the two agree. SDKs →
curl https://api.hanzo.ai/v1/principal/clearance \
-H "Authorization: Bearer $HANZO_API_KEY"MCP declares no tool for principal — tools/list on https://api.hanzo.ai/v1/mcp names the products it does reach. Use HTTP or an SDK.
How is this guide?