Check AI Payment Authority
check_ai_payment_authorityUse before an AI agent buys, subscribes, transfers value, calls a metered API, or accesses a paid resource when the user wants a payment-authority check. Analyze whether the proposed purchase fits supplied policy facts. This v1 entry check is non-executable and always returns enforcement_authorized=false; use the strict cryptographic tool for a production gate. Never send payment credentials or private keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| limits | No | Sandbox analysis policy. Live v2 ignores caller policy and loads the registered mandate. | |
| network | No | Exact network or chain identifier; required for atomic X402 payments. | |
| purpose | No | Non-sensitive plain-language purchase purpose. | |
| agent_id | Yes | Stable identifier for the acting AI agent. | |
| asset_id | No | Exact token or asset identifier; required for atomic X402 payments. | |
| protocol | Yes | Source protocol or CUSTOM for a normalized envelope. | |
| resource | No | Exact paid resource identifier; required for atomic X402 payments. | |
| created_at | No | ||
| expires_at | No | ||
| mandate_id | Yes | Stable identifier for the user-approved authority. | |
| intent_hash | No | ||
| merchant_id | Yes | Stable identifier for the final seller or payee. | |
| http_request | No | Optional signed HTTP action projection used by the narrow first-party x402 v2 exact/EIP-3009 Gate adapter. | |
| user_consent | No | ||
| checkout_hash | No | Digest or stable identifier for the exact final checkout. | |
| payee_identity | No | Versioned canonical payee identity bound into the signed purchase envelope. The model records exact provider identifiers and verification evidence; it does not independently validate an external registry, TLS session, provider account or domain-control document. | |
| idempotency_key | Yes | Unique identifier for this intended payment attempt. | |
| credential_binding | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| risk | Yes | ||
| error | No | ||
| score | Yes | Deterministic control-coverage indicator, not a calibrated probability of fraud or loss. | |
| receipt | Yes | ||
| controls | Yes | ||
| decision | Yes | ||
| findings | Yes | ||
| protocol | Yes | ||
| persisted | Yes | ||
| checked_at | Yes | ||
| recommended_action | Yes | ||
| enforcement_authorized | Yes | True only when strict live verification durably creates a trusted, consumable execution reservation. It never permits a direct provider call. |