# Assessments

One call per agent checkout: approved (`frictionless`) when the cart is covered, challenged when the person needs to approve, or rejected. The assessment is your one object for the cart: it is updated once the person decides.

Related guide: [Assess an agent checkout](https://provenanceauth.com/docs/authorize/guides/assess-checkouts.md)

## Endpoints

- `GET /v1/authorize/checkout_assessments/{id}`: [Retrieve a checkout assessment](#get-v1-authorize-checkout-assessments-id)
- `GET /v1/authorize/checkout_assessments`: [List checkout assessments](#get-v1-authorize-checkout-assessments)
- `POST /v1/authorize/checkout_assessments`: [Assess an agent checkout](#post-v1-authorize-checkout-assessments)
- `POST /v1/authorize/checkout_assessments/{id}/review`: [Decide an order in review](#post-v1-authorize-checkout-assessments-id-review)
- `POST /v1/authorize/checkout_assessments/{id}/outcome`: [Report an order's outcome](#post-v1-authorize-checkout-assessments-id-outcome)
- `POST /v1/authorize/order_outcome_batches`: [Report one outcome on several orders](#post-v1-authorize-order-outcome-batches)
- `POST /v1/authorize/checkout_review_batches`: [Decide several orders held for review](#post-v1-authorize-checkout-review-batches)

## The checkout assessment object

### Attributes

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | enum | yes | Always `checkout_assessment`. One of `checkout_assessment`. |
| `id` | string | yes | The assessment's ID (`cas_…`). |
| `outcome` | enum | yes | `allow` (shown as Allowed): charge the order. `challenge` (Challenged): ask the person (see `challenge`). `reject` (Rejected): don't fulfil it. See [outcome words](https://provenanceauth.com/docs/reference/outcomes.md). One of `allow`, `challenge`, `reject`. |
| `reason` | string | yes | A registered reason (kind `assessment` in the reason codes): `token_covers_cart`, `grant_covers_cart`, `third_party_mandate_covers_cart`, `prior_approval_reused`, `policy_rule_approved` (one of your Approve rules matched; with `covered: none` no person approved and no token is minted), `no_token`, `token_expired`, `payload_hash_mismatch`, `audience_mismatch`, `grant_limit_exceeded`, `grant_currency_mismatch`, `grant_category_not_allowed` and `grant_country_not_allowed` (each a challenge by default), `grant_counterparty_blocked`, `grant_category_blocked` and `grant_country_blocked` (each a reject by default), `grant_uses_exhausted` (a reject), `grant_purchase_limit_reached` (a reject), `network_accept_required`, `dpop_proof_required`, `dpop_proof_invalid`, `dpop_proof_replayed` and `holder_mismatch` (a holder-bound grant presented without its holder's proof in `request.headers.dpop`; each a reject), `third_party_mandate_cart_mismatch`, `third_party_mandate_replayed` (the mandate already covered a different cart), `third_party_issuer_not_trusted`, `third_party_mandate_invalid`, `policy_rule`, `signal_unavailable`, `token_invalid`, `token_revoked`, `agent_blocked` or `prior_approval_denied`. Once the person answers the challenge: `person_approved` or `review_approved` (approved), `policy_review` or `rules_unavailable` (still a challenge, in your review), `person_declined`, `policy_rule`, `store_review` or `review_expired` (rejected). |
| `policy` | object \| null | yes | The rule that decided, the same block on every product's assessment and simulation: your policy's ID and the version that decided, the rule's ID and name, when it ran, what it did, and each of its conditions with the value the engine compared (`actual`). Only the deciding rule is listed. A computed comparison (a location match, a distance) appears in a result only here. Null when no rule decided; `reason` then says what did. |
| `policy.id` | string \| null | yes | The product's policy (`pol_…`), one per account and product, the same on every version. |
| `policy.version` | integer \| null | yes | The version that decided: null on the built-in default rules, 0 when a simulation runs a draft. |
| `policy.rule` | object | yes | The rule, and what it compared. |
| `policy.rule.id` | string | yes | The rule's ID (`rul_…`, or `rul_default_…` for a default row), kept across versions. |
| `policy.rule.ref` | string \| null | no | The rule's short display ID (`R-103`, or `R-04` outside checkout), the one the console shows beside the rule. Checkout rules carry their phase digit first: `R-1nn` at checkout, `R-2nn` after the customer answers. Kept across versions and never reused in the policy. Null when the rule's text is gone. |
| `policy.rule.name` | string \| null | yes | The rule's name in the builder, when it has one. |
| `policy.rule.phase` | enum | yes | When it ran: `assess`, or `after_approval` (a store's checkout rule run once the person decided); a Trace rule runs at `action` (before a tool call) or `completion` (on model output). One of `assess`, `after_approval`, `action`, `completion`. |
| `policy.rule.action` | enum | yes | What the rule did: Approve, Challenge (ask a person), Reject or Review. See [outcome words](https://provenanceauth.com/docs/reference/outcomes.md). One of `approve`, `challenge`, `reject`, `review`. |
| `policy.rule.conditions` | array of objects | yes | Each condition of the rule, with the value compared. |
| `policy.rule.conditions.fact` | string | yes | The fact (`order.amount`, `approval.location`, `class`, …). |
| `policy.rule.conditions.op` | string | yes | The operator. |
| `policy.rule.conditions.value` | any | yes | The value the condition compares with. |
| `policy.rule.conditions.actual` | any | yes | The value the engine compared; null when the fact was absent. |
| `policy.rule.conditions.unavailable` | string | no | Why `actual` is null: `not_collected`, `not_recorded` on a result read back from a record that didn't keep the value, or `withheld` for a raw field-timing fact (`agent.typing_interval_ms`, `agent.checkout_fill_seconds`), which rules read but no result returns. |
| `policy.rule.conditions.metric` | string | no | A velocity condition's counter (`verify_count`, `amount_sum`). |
| `policy.rule.conditions.window` | string | no | A velocity condition's window. |
| `policy.rule.conditions.per` | string | no | A velocity condition's subject. |
| `policy.rule.conditions.set` | string | no | A canary or prediction condition's family or probe. |
| `policy.rule.conditions.baseline` | string | no | A relative canary condition's baseline. |
| `policy.rule.conditions.path` | string | no | A field condition's path in the request. |
| `policy.trace` | object | no | The deciding rule's path, however deep: its groups, conditions, signals, scorecards with their rows, rule references and rule groups, each with its value and result. Present only when the path says more than `rule.conditions` (a nested group, a derived fact, an unavailable reading). Bounded at depth 6 and 60 nodes, then `truncated`. |
| `policy.trace.rounds` | integer | no | Rounds of fact resolution the decision took. |
| `policy.trace.nodes` | array of objects | yes | The path's nodes. `kind` is `condition`, `all`, `any`, `none`, `at_least`, `signal`, `scorecard`, `rule`, `group`, `flow` or `risk_score`; groups and signals hold `nodes`, a scorecard its `rows`. A `risk_score` node is a condition on a custom risk score: `key`, `label`, `version`, `answer`, `p` (as rules read them), `raw` (the model's own), `calibrated`, `fact`, `op`, `value`, `actual`, `result`, `evaluation_id` and `reason.status` (the text is on the evaluation). |
| `policy.trace.skipped` | object | no | Facts the decision never had to read, by cost tier (`tier_3: 1`). |
| `policy.trace.truncated` | boolean | no | The path was longer than the bounds. |
| `policy.unavailable` | array of objects | no | The facts the decision found unavailable, and why. Present only when there were some. |
| `policy.unavailable.fact` | string | yes | The fact. |
| `policy.unavailable.reason` | string | yes | Why: `timeout`, `error`, `unconfigured`, `deadline` and the rest. |
| `policies` | array of objects | no | Every rule that decided, in the order they ran: the checkout rule (`phase: assess`), then, once the customer answered and one of your after-approval rules decided, that rule (`phase: after_approval`). `policy` is the last of them. Empty when no rule decided. An assessment settled before November 26, 2026 lists only the last rule. |
| `policies.id` | string \| null | yes | The product's policy (`pol_…`), one per account and product, the same on every version. |
| `policies.version` | integer \| null | yes | The version that decided: null on the built-in default rules, 0 when a simulation runs a draft. |
| `policies.rule` | object | yes | The rule, and what it compared. |
| `policies.rule.id` | string | yes | The rule's ID (`rul_…`, or `rul_default_…` for a default row), kept across versions. |
| `policies.rule.ref` | string \| null | no | The rule's short display ID (`R-103`, or `R-04` outside checkout), the one the console shows beside the rule. Checkout rules carry their phase digit first: `R-1nn` at checkout, `R-2nn` after the customer answers. Kept across versions and never reused in the policy. Null when the rule's text is gone. |
| `policies.rule.name` | string \| null | yes | The rule's name in the builder, when it has one. |
| `policies.rule.phase` | enum | yes | When it ran: `assess`, or `after_approval` (a store's checkout rule run once the person decided); a Trace rule runs at `action` (before a tool call) or `completion` (on model output). One of `assess`, `after_approval`, `action`, `completion`. |
| `policies.rule.action` | enum | yes | What the rule did: Approve, Challenge (ask a person), Reject or Review. See [outcome words](https://provenanceauth.com/docs/reference/outcomes.md). One of `approve`, `challenge`, `reject`, `review`. |
| `policies.rule.conditions` | array of objects | yes | Each condition of the rule, with the value compared. |
| `policies.rule.conditions.fact` | string | yes | The fact (`order.amount`, `approval.location`, `class`, …). |
| `policies.rule.conditions.op` | string | yes | The operator. |
| `policies.rule.conditions.value` | any | yes | The value the condition compares with. |
| `policies.rule.conditions.actual` | any | yes | The value the engine compared; null when the fact was absent. |
| `policies.rule.conditions.unavailable` | string | no | Why `actual` is null: `not_collected`, `not_recorded` on a result read back from a record that didn't keep the value, or `withheld` for a raw field-timing fact (`agent.typing_interval_ms`, `agent.checkout_fill_seconds`), which rules read but no result returns. |
| `policies.rule.conditions.metric` | string | no | A velocity condition's counter (`verify_count`, `amount_sum`). |
| `policies.rule.conditions.window` | string | no | A velocity condition's window. |
| `policies.rule.conditions.per` | string | no | A velocity condition's subject. |
| `policies.rule.conditions.set` | string | no | A canary or prediction condition's family or probe. |
| `policies.rule.conditions.baseline` | string | no | A relative canary condition's baseline. |
| `policies.rule.conditions.path` | string | no | A field condition's path in the request. |
| `policies.trace` | object | no | The deciding rule's path, however deep: its groups, conditions, signals, scorecards with their rows, rule references and rule groups, each with its value and result. Present only when the path says more than `rule.conditions` (a nested group, a derived fact, an unavailable reading). Bounded at depth 6 and 60 nodes, then `truncated`. |
| `policies.trace.rounds` | integer | no | Rounds of fact resolution the decision took. |
| `policies.trace.nodes` | array of objects | yes | The path's nodes. `kind` is `condition`, `all`, `any`, `none`, `at_least`, `signal`, `scorecard`, `rule`, `group`, `flow` or `risk_score`; groups and signals hold `nodes`, a scorecard its `rows`. A `risk_score` node is a condition on a custom risk score: `key`, `label`, `version`, `answer`, `p` (as rules read them), `raw` (the model's own), `calibrated`, `fact`, `op`, `value`, `actual`, `result`, `evaluation_id` and `reason.status` (the text is on the evaluation). |
| `policies.trace.skipped` | object | no | Facts the decision never had to read, by cost tier (`tier_3: 1`). |
| `policies.trace.truncated` | boolean | no | The path was longer than the bounds. |
| `policies.unavailable` | array of objects | no | The facts the decision found unavailable, and why. Present only when there were some. |
| `policies.unavailable.fact` | string | yes | The fact. |
| `policies.unavailable.reason` | string | yes | Why: `timeout`, `error`, `unconfigured`, `deadline` and the rest. |
| `signature` | object \| any \| null | no | How the agent's request was signed, as Identify checked it (from `request` or `traffic_assessment_id`); `method: none` when no request was checked. Carries `platform`: the agent platform Identify named for the checkout (`signed` or `declared`), or null. Null on an assessment made before November 17, 2026. |
| `signature.method` | enum | no | How the request was signed: `web_bot_auth`, `http_signature`, `network` (a card network agent program's tag), or `none` (no signature, or no request was checked). One of `web_bot_auth`, `http_signature`, `network`, `none`. |
| `signature.valid` | boolean \| null | no | True when the signature verified, false when one was sent and didn't, null when nothing was signed. A traffic assessment reports a failed signature (your traffic policy decides what it gets); a mandate assessment refuses it first (`agent_signature_invalid`). |
| `signature.key_id` | string \| null | no | The signature's `keyid` (the key's JWK thumbprint). |
| `signature.directory` | string \| null | no | Where the key was found: the `Signature-Agent` directory URL, or `provenance_registry` for a key registered with Provenance. |
| `signature.agent_id` | string \| null | no | The registered agent (`agt_…`) the key belongs to, when the signature verified against a key registered with Provenance or its hosted directory. |
| `signature.platform` | object \| any \| null | no | Checkout assessments only: the agent platform Identify named for the checkout (`signed` or `declared`), or null. |
| `signature.platform.name` | enum | no | The platform's catalog name. One of `openai`, `anthropic`, `google`, `microsoft`, `apple`, `perplexity`, `meta`, `common_crawl`. |
| `signature.platform.label` | string | no | The platform's display name (`OpenAI`). |
| `signature.platform.source` | enum | no | `signed` (verified through the platform's signing directory) or `declared` (a known crawler's user agent). One of `signed`, `declared`. |
| `signature.covers` | array of strings | no | The covered components, by name (`@authority`, `@method`, `@path`, `signature-agent`, `content-digest`). Empty when nothing was signed. |
| `bot` | object \| any \| null | no | How likely the visitor is automated: the higher of Identify's score and the visit's field-timing score, its band (with the reason when `unclassified`) and the named signals that are true. The raw timing is never returned. Null on an assessment made before November 17, 2026. |
| `bot.likelihood` | integer \| null | no | 0 to 100: the higher of Identify's bot score and the visit's field-timing score (`automation_score`). Null when nothing scored the visitor. Checkout rules read it as `agent.bot_likelihood_score`. |
| `bot.band` | enum | no | `medium` (30 to 69) or `high` (70 and over) from `likelihood`; `low` only when it is under 30 and field timing saw a person (`typed` or `pointer_seen`); otherwise `unclassified`: nothing shows a bot or a person (a score of 0 because nothing tripped is no evidence either way). A request alone is never `low`. Checkout rules read it as `agent.bot_likelihood`. One of `low`, `medium`, `high`, `unclassified`. |
| `bot.reason` | enum | no | Why `band` is `unclassified`: `not_checked` (nothing to score), `no_field_timing` (the score is under 30 and no field timing ran) or `no_person_signal` (field timing ran and saw no typing and no pointer). Null otherwise. One of `not_checked`, `no_field_timing`, `no_person_signal`. |
| `bot.signals` | array of enums | no | The named signals that are true, from a fixed list: `headless` (a headless browser or an automation driver), `hosting_ip` (a cloud or hosting provider's network), `typed` (field timing saw a field typed, not every value pasted or autofilled) and `pointer_seen` (a pointer moved, clicked or touched before submit). Each is also a checkout rule fact (`agent.headless`, …). |
| `authority` | object \| any \| null | no | What covered the cart: the intent token (`provenance_intent_token`) or a grant presented alone (`provenance_mandate`), with `cart_match: matched`; an AP2 or ACP mandate from an issuer you trust (`third_party_mandate`, naming its protocol and issuer); `none` when nothing did, including a yes the person had already given. Null on an assessment made before November 17, 2026. |
| `authority.kind` | enum | no | What covered the action. Assessments today return `provenance_intent_token`, `provenance_mandate`, `third_party_mandate` (checkout only) or `none`. One of `provenance_intent_token`, `provenance_mandate`, `third_party_mandate`, `spc`, `platform_confirmation`, `none`. |
| `authority.verified` | boolean | no | True when the token verified (ES256 against Provenance's published keys). |
| `authority.verified_against` | enum | no | What it was verified against: Provenance's published keys. One of `provenance_jwks`. |
| `authority.alg` | enum | no | The token's signing algorithm. One of `ES256`. |
| `authority.key_id` | string \| null | no | The `kid` of the key that signed the token. |
| `authority.issuer` | string \| null | no | The token's issuer (`iss`); on `third_party_mandate`, the name you listed the issuer under (or, through your own AP2 verifier, the mandate's `iss`). |
| `authority.mandate_id` | string \| null | no | The mandate the token was issued under, or the grant itself; null for a token with no mandate. |
| `authority.mandate_chain` | array of strings | no | The mandates from the person's grant down to the one the agent holds, root first (up to 5). Present with `mandate_id`; a traffic assessment leaves it out (the middleware can't see the chain). |
| `authority.approval_context_id` | string \| null | no | On `provenance_intent_token`: the approval context of the person's yes that minted the token, when one is known. |
| `authority.cart_match` | enum | no | How the covered thing matched what was assessed: `matched` (the token's binding hash, or an AP2 Payment Mandate's total, currency and payee, equal the cart's), `merchant_facts` (an AP2 Checkout Mandate matched your own Checkout), or `not_applicable` (an agent action or a request, where the payload or request hash binds instead). One of `matched`, `merchant_facts`, `not_applicable`. |
| `authority.protocol` | enum | no | On `third_party_mandate`: the mandate's protocol. One of `ap2`, `acp`. |
| `authority.verified_by` | enum | no | On `third_party_mandate`: verified against the keys of an issuer you list (`issuer_jwks`), or by your own AP2 verifier through Identify (`merchant_verifier`). One of `issuer_jwks`, `merchant_verifier`. |
| `authority.evidence_hash` | string \| null | no | On `third_party_mandate`: the SHA-256 (hex) of the mandate as presented, never the mandate; null when Provenance never saw it (a verdict your middleware reported). |
| `binding_hash` | string | yes | The cart's canonical binding hash (what a token's `payload_hash` must equal). |
| `origin` | string | yes | The cart's origin. |
| `order_id` | string | yes | The cart's order ID. |
| `contact` | object | no | Present when you sent `contact.name`: the shopper's name, on your own reads only (never the webhook, a share or a signal). |
| `contact.name` | string | no | The shopper's name you sent (`Maya Chen`). |
| `covered` | enum | yes | What covered the cart, if anything. One of `token`, `mandate`, `third_party_mandate`, `reused`, `none`. |
| `signals` | object | yes | The signals your rules saw (present only when known). |
| `signals.covered` | string | no | Same as `covered`. |
| `signals.coverage_reason` | string | no | Why the coverage check did or didn't cover the cart (`token_covers_cart`, `grant_covers_cart`, `no_token`, `payload_hash_mismatch`, `grant_limit_exceeded`, …), also when one of your rules decided and `reason` is `policy_rule` or `policy_rule_approved`. |
| `signals.confirmed` | string | no | `approval` (a person approved this order), `grant` (a standing grant) or `none` (a rule alone allowed it). |
| `signals.presented` | enum | no | What the agent sent with the cart, whether or not it covers it: `mandate`, `token` (an intent token), `third_party_mandate` (an AP2 or ACP mandate from another issuer) or `none`. The default rule "Unclassified" approves only `none`. One of `mandate`, `token`, `third_party_mandate`, `none`. |
| `signals.token_age_seconds` | integer | no | Seconds since the token was minted. |
| `signals.agent` | object | no | What Identify says about the agent, when it ran. The bot score and the named signals are in `bot`. |
| `signals.agent.verified` | boolean | no | The agent's signature verified. |
| `signals.agent.class` | string | no | Identify's class, or `unknown` when it didn't run. |
| `signals.agent.id` | string | no | The registered agent's ID. |
| `signals.agent.mandate_depth` | integer | no | How many hand-offs below the person's grant the agent is. |
| `signals.agent.run_present` | boolean | no | The token belongs to an agent-team run. |
| `signals.agent.signals_present` | boolean | no | Identify saw an agent on the agent's request or the visit you named (rule fact `agent.signals_present`). The default rule "Unclassified" approves only when it is false. Absent on an assessment made before November 20, 2026. |
| `signals.agent.signals` | array of enums | no | What marked it as agent traffic: a verified signature (`signed_agent`), a request that names itself or an agent Identify named (`declared_agent`), a spoofed crawler or a bot score of 50 and over (`suspected_bot`), a named agent platform, a signature that didn't verify (`signature`), a headless browser, a hosting address, or an AP2, ACP or x402 object (`agent_protocol`). Empty when nothing did; present with `signals_present`. |
| `signals.agent.order_signals` | array of enums | no | Why it's an agent order (rule fact `agent.order_signals`): the visitor was an agent (`visit`), a verified card network agent signature (`network_signature`), a shared payment token you named, or a card network agent token you reported. Present when any applies; a network token alone never does. |
| `signals.agent.recent_token_presented` | boolean | no | The same agent (its ID or signature key) or the same visit presented an intent token or a mandate to your account inside your downgrade window (`checkout_token_downgrade_window`, 24 hours by default; rule fact `agent.recent_token_presented`). The default rule "Unclassified" approves only when it is false, so an agent can't drop its token to skip a challenge. Absent when the check couldn't run (the rule then doesn't approve) and on an assessment made before November 20, 2026. |
| `signals.merchant` | object | no | The merchant facts you sent, labelled `source: "merchant"`. |
| `signals.billing` | object | no | The billing address you sent, coarse fields only (the full address is `approval_context.billing` once the person decides). |
| `signals.billing.country` | string | yes | ISO 3166-1 alpha-2. |
| `signals.billing.region` | string \| null | yes | ISO 3166-2 (`US-OR`); null when no region was sent or it isn't one we map. |
| `signals.billing.postal_prefix` | string \| null | yes | The US 3-digit ZIP prefix, the Canadian forward sortation area or the UK outward code; null elsewhere. |
| `signals.billing.source` | enum | yes | Always `merchant`: your store attested it. One of `merchant`. |
| `signals.billing.unavailable` | object | no | On an assessment: why a part has no rule fact (`region: region_unrecognized`). |
| `signals.billing.unavailable.region` | enum | no | The region couldn't be mapped to ISO 3166-2. One of `region_unrecognized`. |
| `shadow` | object | no | Your shadow checkout policy's verdict, when one is set. It never changes the outcome. |
| `shadow.outcome` | string | no | The outcome the shadow would have given. |
| `shadow.reason` | string | no | Its reason. |
| `shadow.rule_id` | string \| null | no | The shadow rule that decided. |
| `shadow.policy_version` | integer | no | The shadow version. |
| `challenge` | object \| null | yes | While `outcome` is `challenge`: how the person is being asked. Null otherwise. The cart approval behind it is the shopper's side; once they decide, `approval_context.subject` names it. |
| `challenge.channel` | enum | yes | The channel the first message went by, or `agent_relay` when the agent relays the link. One of `text`, `email`, `app_notification`, `agent_relay`. |
| `challenge.sent_to` | string \| null | yes | The masked contact the first message went to (`•••• 4821`, `j•••@example.com`); null for the relay. |
| `challenge.status` | enum | yes | `pending` until the person answers; `in_review` while your review holds their yes; `expired` when nobody answered in time. One of `pending`, `in_review`, `expired`, `approved`, `denied`. |
| `challenge.expires_at` | timestamp \| null | yes | When the link stops working, or (in review) when the review times out. |
| `challenge.approve_url` | string | no | Create response only: the public page the person approves on (the agent relays it). |
| `challenge.status_url` | string | no | Create response only: where the agent polls for the cart-bound token. |
| `challenge.reused` | boolean | no | Create response only: it joined an open request for the same cart (asked once). |
| `challenge.deduped` | boolean | no | Create response only: your customer already has a pending link for this store. |
| `challenge.delivery_hint` | string | no | Create response only: where the link went, without the contact ("the phone ending 42"). |
| `approval_context` | object \| any \| null | yes | How the person decided: the cart approval the agent's token came from, or their answer to this assessment's challenge (`subject` names the cart approval). Null when no person decided. On the webhook, `billing` is always null. |
| `approval_context.object` | enum | no | The type of object. One of `approval_context`. |
| `approval_context.id` | string | no | Unique identifier for the object (`apc_…`). |
| `approval_context.subject` | object | no | What the person decided. |
| `approval_context.subject.type` | enum | yes | The decided object's type: a cart approval, a step-up approval, a grant, an intent token the person approved with the device's passkey when it was minted, a delegation proposal or a captured item. One of `checkout_approval`, `mandate_approval`, `mandate_grant`, `intent_token`, `delegation_proposal`, `capture_item`. |
| `approval_context.subject.id` | string | yes | Its id (an intent token is its `jti`; a captured item is `capr_…:<index>`). |
| `approval_context.decision` | enum | no | The person's own answer; `captured` for a capture. One of `approved`, `declined`, `captured`. |
| `approval_context.decided_at` | timestamp | no | When the person decided. |
| `approval_context.method` | object | no | How the person decided. |
| `approval_context.method.kind` | enum | yes | A passkey, the Provenance app's device key, the keypad on a confirmation call, a confirmation given outside Provenance, a signed-in console member, or a browser page with no passkey (a decline, a capture page). One of `passkey`, `device_key`, `voice_keypad`, `external`, `console_session`, `browser_session`. |
| `approval_context.method.authenticator` | enum | yes | With a passkey: where it lives, as the browser reported when it was created; null otherwise or when unknown. One of `platform_passkey`, `cross_device_passkey`, `security_key`. |
| `approval_context.method.user_verified` | boolean | yes | True when the assertion's user-verification flag was set (face, fingerprint or the screen lock). |
| `approval_context.method.step_up` | object \| null | yes | What confirmed the customer contact for a new passkey under `step_up_contact`, when it applied. |
| `approval_context.method.step_up.method` | enum | no | `contact_code`: a 6-digit code sent to the customer contact matched. `link_contact`: the person opened the link from the email or text sent to that same contact, so no code was sent. One of `contact_code`, `link_contact`. |
| `approval_context.method.step_up.channel` | enum | no | Where the code went, or which message carried the link. One of `sms`, `email`. |
| `approval_context.method.step_up.verified_at` | timestamp | no | When the code matched, or when the passkey approved through that link. |
| `approval_context.passkey` | object \| null | no | The passkey that decided; null for any other method. |
| `approval_context.passkey.status` | enum | no | `new` when it was younger than the store's minimum age or set up during the approval. One of `new`, `existing`. |
| `approval_context.passkey.age` | object | no | Its age at the decision: whole days, and the minutes past them. |
| `approval_context.passkey.age.days` | integer | no | Whole days. |
| `approval_context.passkey.age.minutes` | integer | no | Minutes past the whole days. |
| `approval_context.passkey.created_during_approval` | boolean | no | Set up on this approval's page. |
| `approval_context.passkey.synced` | boolean \| null | no | A synced (backed-up) passkey; null when the authenticator didn't say. |
| `approval_context.passkey.provider` | string \| null | no | The provider its AAGUID names (the authenticator's own claim); null when unknown. |
| `approval_context.passkey.provider_attested` | enum | no | Always false: the provider is the authenticator's own claim. One of `false`. |
| `approval_context.device` | object \| null | no | The device the person decided on, as it reported itself (or, with the app's device key, as it enrolled). |
| `approval_context.device.os` | string \| null | no | `ios`, `ipados`, `android`, `macos`, `windows`, `linux` or `other`. |
| `approval_context.device.os_version` | string \| null | no | The OS version, for phones (desktop browsers freeze theirs). |
| `approval_context.device.browser` | string \| null | no | `safari`, `chrome`, `edge`, `firefox`, `samsung` or `other`; null in an app. |
| `approval_context.device.source` | enum | no | Where the device facts came from. One of `user_agent`, `app_attestation`. |
| `approval_context.device.verified` | boolean | no | True only when the server verified the device's attestation. |
| `approval_context.device.time_zone` | object \| null | no | The device's time zone, as reported (never verified). |
| `approval_context.device.time_zone.name` | string | no | IANA name (`America/Los_Angeles`). |
| `approval_context.device.time_zone.utc_offset_minutes` | integer | no | Its offset at the decision. |
| `approval_context.device.time_zone.source` | enum | no | Who reported it. One of `browser`, `app`. |
| `approval_context.device.time_zone.verified` | enum | no | Always false. One of `false`. |
| `approval_context.device.locale` | string \| null | no | The language tag (`en-US`). |
| `approval_context.network` | object \| null | no | The connection the decision came from: a provider's estimate of its place, and its flags. |
| `approval_context.network.country` | string \| null | no | ISO 3166-1 alpha-2. |
| `approval_context.network.region` | string \| null | no | ISO 3166-2 (`US-OR`). |
| `approval_context.network.city` | string \| null | no | The city, only while the network city switch is on. |
| `approval_context.network.city_status` | enum | no | Whether the city switch is on. One of `enabled`, `not_enabled`. |
| `approval_context.network.flags` | object | no | What the published lists and the IP lookup say about the network. |
| `approval_context.network.flags.vpn` | boolean | no | A VPN service. |
| `approval_context.network.flags.proxy` | boolean | no | A proxy. |
| `approval_context.network.flags.hosting_provider` | boolean | no | A cloud or hosting provider's range. |
| `approval_context.network.flags.tor` | boolean | no | A Tor exit. |
| `approval_context.network.flags.private_relay` | boolean | no | iCloud Private Relay (a privacy feature, never counted as a VPN). |
| `approval_context.network.asn` | integer \| null | no | The network's AS number, from the IP lookup provider; null without one. |
| `approval_context.network.source` | enum | no | Where the place and flags came from. One of `published_lists`, `ip_intel`. |
| `approval_context.network.ip` | string \| null | no | The address, only while your IP sharing switch is on and the sealed copy is kept; null otherwise. |
| `approval_context.location_match` | enum | no | A cart approval's only: whether where the person approved from matches the billing address the store sent. The same value the `approval.location` rule fact reads: `matches_billing` needs the network region (or city) to agree with nothing contradicting it, a time-zone match alone is never a match; `differs` when a known comparison differs; `unavailable` with its reason in `unavailable.location_match` (no IP lookup, no time zone); `no_billing` when the store sent no address. The distance and the per-field comparisons stay rule facts and are never returned. Absent on other approvals. One of `matches_billing`, `differs`, `unavailable`, `no_billing`. |
| `approval_context.location_match_basis` | array of enums | no | With `location_match`: the inputs that agreed (`matches_billing`) or disagreed (`differs`); empty otherwise. `time_zone_network`: the device's time zone is in another country than the network. |
| `approval_context.browser_details` | object | no | The 3-D Secure browser fields the approval page or embed reported, with the request's User-Agent and Accept headers; null for a decision outside a browser page (the app, a keypad, a console member) or recorded before they were collected. |
| `approval_context.browser_details.screen_width` | integer \| null | yes | The screen's width in CSS pixels (`screen.width`). |
| `approval_context.browser_details.screen_height` | integer \| null | yes | The screen's height in CSS pixels (`screen.height`). |
| `approval_context.browser_details.color_depth` | enum | yes | Bits per pixel (`screen.colorDepth`). One of `1`, `4`, `8`, `15`, `16`, `24`, `30`, `32`, `48`. |
| `approval_context.browser_details.language` | string \| null | yes | The browser's language (`navigator.language`). |
| `approval_context.browser_details.java_enabled` | boolean \| null | yes | Whether Java is enabled (`navigator.javaEnabled()`). |
| `approval_context.browser_details.javascript_enabled` | boolean \| null | yes | Whether JavaScript ran (true when the page sent the block). |
| `approval_context.browser_details.utc_offset_minutes` | integer \| null | yes | Local time minus UTC, in minutes. |
| `approval_context.browser_details.user_agent` | string \| null | yes | The request's `User-Agent` header (at most 2,048 characters). |
| `approval_context.browser_details.accept_header` | string \| null | yes | The request's `Accept` header (at most 2,048 characters). |
| `approval_context.browser_details.source` | enum | yes | Where the fields came from. One of `browser`. |
| `approval_context.browser_details.verified` | enum | yes | Always false: as the browser reported them. One of `false`. |
| `approval_context.billing` | object | no | A cart approval's context only: the full billing address you sent, to your own key and console (never on a webhook); null otherwise. |
| `approval_context.billing.line1` | string \| null | yes | The street line. |
| `approval_context.billing.line2` | string \| null | yes | The second line. |
| `approval_context.billing.city` | string \| null | yes | The city. |
| `approval_context.billing.region` | string \| null | yes | ISO 3166-2 (`US-OR`) where the region table maps it (US, Canada, Australia); else as you sent it. |
| `approval_context.billing.postal_code` | string \| null | yes | The postal code as you sent it. |
| `approval_context.billing.country` | string | yes | ISO 3166-1 alpha-2. |
| `approval_context.billing.source` | enum | yes | Always `merchant`: your store attested it. One of `merchant`. |
| `approval_context.person` | object | no | Who decided, as far as Provenance can say without identifying them. |
| `approval_context.person.pseudonym` | string \| null | no | A per-store pseudonym for the passkey, on cart approvals. |
| `approval_context.person.link` | enum | no | Over a grant's limit: whether the passkey is the grant's own person's. One of `same_person`, `unlinked`, `not_applicable`. |
| `approval_context.external` | object \| null | no | With `method.kind: external`: the confirmation given outside Provenance. |
| `approval_context.external.kind` | enum | no | The kind of outside confirmation. One of `ap2_user_mandate`, `spc`, `platform`. |
| `approval_context.external.issuer` | string \| null | no | Who issued it. |
| `approval_context.external.evidence_hash` | string \| null | no | The hash of the evidence verified. |
| `approval_context.unavailable` | object | no | Each fact that is null and why (`not_collected`, `no_ip`, `ip_intel_not_configured`, `ip_intel_failed`, `network_relayed`, `network_vpn`, `network_hosting`, `network_tor`), keyed by field (`device.time_zone`, `network.country`). |
| `receipt` | object | no | A signed receipt. Every receipt endpoint (decisions, agreements, orders, deals, disputes, verified calls and the receipt embed) returns this object. `claims` is the signed payload, decoded; `token` is the ES256 JWS that carries it, which anyone can verify offline against the published keys. |
| `receipt.object` | enum | yes | The type of object. One of `receipt`. |
| `receipt.id` | string | yes | The receipt's ID (`rcpt_`), the same as `claims.receipt_id`. |
| `receipt.claims` | object | yes | The signed claims, decoded from `token`. |
| `receipt.claims.reused` | object | no | Present only when no one was asked because this order or action was already answered: by the agent's own token (`intent_token`), or by an earlier approval of the same binding that the agent (`agent`, `routed` when it went to an outside approver), a store (`store`) or a network order (`network`) asked for. You learn only what your own token carries; never the other party's account, approval ID, contact or deny reason. See [ask once](https://provenanceauth.com/docs/authorize/guides/ask-once.md). |
| `receipt.claims.reused.source` | enum | yes | Who asked first. One of `intent_token`, `agent`, `store`, `network`, `routed`. |
| `receipt.claims.confirmed_via` | object | no | Present only when the person confirmed outside Provenance (`decided_via` is then `external`). |
| `receipt.claims.confirmed_via.kind` | enum | yes | The kind of confirmation. One of `ap2_user_mandate`, `spc`, `platform`. |
| `receipt.claims.confirmed_via.issuer` | string | no | Whose word it is: the AP2 issuer or platform named in your policy, or your store's origin for a passkey your store registered. Absent for a passkey set up with Provenance. |
| `receipt.claims.confirmed_via.evidence_hash` | string | yes | The SHA-256 of the evidence (the evidence itself isn't kept). |
| `receipt.claims.decided_via` | enum | no | Present only with `confirmed_via`. One of `external`. |
| `receipt.claims.approved_by` | enum | no | Present only on a checkout assessment your own Approve rule decided (`policy_rule_approved`): `matched_rule_id` and `policy_version` name the rule. It never means a person approved. One of `rule`. |
| `receipt.claims.auto_approval` | object | no | Present only when an `auto_approve` clause gave the approval. |
| `receipt.claims.auto_approval.rule_id` | string | no | The rule the clause sits on. |
| `receipt.claims.auto_approval.clause_id` | string | no | The clause's ID. |
| `receipt.claims.auto_approval.label` | string | no | The clause's label. |
| `receipt.claims.auto_approval.policy_version` | integer \| null | no | The policy version. |
| `receipt.claims.auto_approval.decided_via` | enum | no | Always `rule`. One of `rule`. |
| `receipt.claims.auto_approval.message` | string | no | "Approved automatically by your rule '…'". |
| `receipt.claims.receipt_id` | string | no | The receipt's ID. |
| `receipt.claims.decision_id` | string | no | The decision's ID. |
| `receipt.claims.kind` | string | no | What was decided: `authorize`, `verify` or `order`. |
| `receipt.claims.jti` | string \| null | no | The intent token's ID. |
| `receipt.claims.agent_session_id` | string \| null | no | The agent session the token was minted for. |
| `receipt.claims.agent_id` | string \| null | no | The registered agent's ID. |
| `receipt.claims.approver_id` | string \| null | no | The network approver who decided. |
| `receipt.claims.device_id` | string \| null | no | The approving device's ID. |
| `receipt.claims.result` | enum | no | The result. One of `valid`, `denied`, `pending`. |
| `receipt.claims.reason` | string \| null | no | The reason given or recorded. |
| `receipt.claims.matched_rule_id` | string \| null | no | The policy rule that decided it. |
| `receipt.claims.policy_version` | integer \| null | no | The policy version that decided it; null for the default. |
| `receipt.claims.mandate_id` | string \| null | no | The mandate's ID. |
| `receipt.claims.biometric_bound` | boolean | no | Whether a passkey check was verified at authorize. |
| `receipt.claims.context_hash` | string | no | The hash of the agent's stated context, when one was bound. |
| `receipt.claims.order_id` | string | no | The clinical order's ID, on order receipts. |
| `receipt.claims.order_type` | string | no | The order type, on order receipts. |
| `receipt.claims.prescriber_id` | string | no | The prescriber's ID, on order receipts. |
| `receipt.claims.prescriber_tier` | string | no | The prescriber's verified tier, on order receipts. |
| `receipt.claims.trace_id` | string | no | The traced inference's ID, on trace-bound decisions. |
| `receipt.claims.canary_hash` | string \| null | no | The canary readings' hash, on trace-bound decisions. |
| `receipt.claims.canary_baseline_id` | string | no | The canary baseline a relative condition used, when one did. |
| `receipt.claims.deal_id` | string | no | The deal this decision belongs to, on a deal's rows. |
| `receipt.claims.record_hash` | string | no | The ledger record's hash. |
| `receipt.claims.prev_hash` | string | no | The previous ledger record's hash. |
| `receipt.claims.decided_at` | string | no | When it was decided. |
| `receipt.claims.iss` | string | no | The issuer that signed the receipt. |
| `receipt.claims.type` | enum | no | The kind of receipt. One of `agreement_completion`. |
| `receipt.claims.agreement_id` | string | no | The agreement's ID. |
| `receipt.claims.content_hash` | string | no | The SHA-256 of the agreed content. |
| `receipt.claims.content_description` | string | no | What the content is. |
| `receipt.claims.mode` | string | no | `parallel` or `sequential`. |
| `receipt.claims.status` | string | no | The agreement's status. |
| `receipt.claims.completed_at` | string \| null | no | When the last party signed. |
| `receipt.claims.parties` | array of objects | no | Each party's signing evidence. |
| `receipt.claims.parties.party_id` | string | no | The party's ID. |
| `receipt.claims.parties.label` | string | no | The party's label. |
| `receipt.claims.parties.status` | string | no | The party's status. |
| `receipt.claims.parties.signed_at` | string \| null | no | When the party signed. |
| `receipt.claims.parties.tier` | string \| null | no | The hardware tier of the device the party signed with. |
| `receipt.claims.offer_id` | string | no | The seller's offer ID. |
| `receipt.claims.offer_hash` | string | no | The offer hash the acceptance binds. |
| `receipt.claims.seller_agent_id` | string | no | The seller agent. |
| `receipt.claims.buyer_agent_id` | string \| null | no | The buyer agent. |
| `receipt.claims.buyer_subject` | string | no | The buyer's pairwise subject at this seller. |
| `receipt.claims.total` | number | no | The offer's total. |
| `receipt.claims.currency` | string | no | The currency. |
| `receipt.claims.deadline` | string | no | The delivery deadline. |
| `receipt.claims.acceptance_jti` | string | no | The acceptance token's jti. |
| `receipt.claims.accepted_at` | string \| null | no | When it was accepted. |
| `receipt.claims.buyer_approval` | object \| null | no | How the buyer's person approved (method, tier, approved_at, terms_hash). |
| `receipt.claims.seller_approval` | object \| null | no | How the seller's person approved (method, approved_at, role). |
| `receipt.claims.payment` | object \| null | no | The payment reference. |
| `receipt.claims.delivery` | object \| null | no | The recorded delivery. |
| `receipt.claims.confirmed_content_hash` | string \| null | no | The hash the buyer confirmed. |
| `receipt.claims.dispute_id` | string | no | The dispute. |
| `receipt.claims.tab_id` | string \| null | no | The tab, for a tab dispute. |
| `receipt.claims.period_day` | string \| null | no | The UTC day of a tab dispute. |
| `receipt.claims.decider` | enum | no | Who records the outcome. One of `parties`, `rail`, `arbiter`. |
| `receipt.claims.arbiter_id` | string \| null | no | The named arbiter. |
| `receipt.claims.opened_at` | string \| null | no | When it opened. |
| `receipt.claims.outcome` | string \| null | no | The outcome. |
| `receipt.claims.decided_by` | string \| null | no | Who recorded it. |
| `receipt.claims.refund` | object \| null | no | The refund reference on the rail (rail, reference, amount, currency). |
| `receipt.claims.resolved_at` | string \| null | no | When it ended. |
| `receipt.claims.v` | enum | no | The receipt format version. One of `1`. |
| `receipt.claims.check_id` | string | no | The check. |
| `receipt.claims.call_id` | string \| null | no | The registered call that matched. |
| `receipt.claims.transport` | string | no | How the call was matched. |
| `receipt.claims.agent` | object \| null | no | The agent that signed the call credential. |
| `receipt.claims.agent.id` | string | no | The agent's ID. |
| `receipt.claims.agent.kid` | string | no | The key that signed the credential (its JWK thumbprint). |
| `receipt.claims.agent.directory` | string | no | Where the key is published. |
| `receipt.claims.person` | object | no | Who approved, as in the verdict. |
| `receipt.claims.person.approved` | boolean | no | Whether a person approved the call. |
| `receipt.claims.person.approved_at` | timestamp \| null | no | When. |
| `receipt.claims.person.approved_via` | string \| null | no | How. |
| `receipt.claims.person.pseudonym` | string \| null | no | The person's ID at your business only. |
| `receipt.claims.purpose` | string \| null | no | The call's purpose. |
| `receipt.claims.window` | object \| null | no | The call's window. |
| `receipt.claims.window.from` | timestamp | no | The start. |
| `receipt.claims.window.until` | timestamp | no | The end. |
| `receipt.claims.numbers_digest` | string \| null | no | SHA-256 hex of `from\|to\|jti`. Anyone who knows both numbers can recompute it. |
| `receipt.claims.disclosure` | object \| null | no | The caller's AI-disclosure record. |
| `receipt.claims.consent` | object \| null | no | The caller's consent record. |
| `receipt.claims.checked_at` | timestamp | no | When the check ran. |
| `receipt.token` | string | yes | The receipt as an ES256 JWS. Verify it against the JWKS. |
| `receipt.verify_url` | string | yes | A link that opens the receipt on the console's Verify a proof page; on a receipt a person outside the account reads (`/v1/personal/...`, `/v1/embed/agent_access/activity/{id}/receipt`), the public Verify a proof guide instead, since that person has no console account. |
| `checkout_approval_id` | string \| null | yes | The cart approval this assessment opened or reused. |
| `decision_id` | string \| null | yes | The assessment's row in your decision ledger (`dec_…`). |
| `traffic_assessment_id` | string \| null | yes | Identify's verdict on the agent's request (`tas_…`), when one ran. |
| `visit_id` | string | no | The storefront visit you named (`visit_id`), when you sent one. |
| `payment_reference` | string | no | The payment you named (`payment_reference`), when you sent one. |
| `payment_signals` | object \| any \| null | no | The payment signals this assessment read from `payment`; null when you named none. |
| `payment_signals.shared_payment_token` | boolean | no | You named a shared payment token (`payment.shared_payment_token`), checked or not. |
| `payment_signals.checked` | boolean | no | The token was read on your Stripe account and matched its mode. |
| `payment_signals.unchecked_reason` | enum | no | Why a named token wasn't checked: no active Stripe connection, the key lacks the shared payment token read, Stripe doesn't know the token, a token of the other mode, or Stripe didn't answer in time. One of `no_connection`, `permission_missing`, `not_found`, `mode_mismatch`, `unavailable`. |
| `payment_signals.agent_profile` | string \| null | no | The agent's Stripe profile (`network_business_profile`), when the token was checked. |
| `payment_signals.usage_limit` | object \| null | no | The token's usage limit, when the token was checked. |
| `payment_signals.usage_limit.max_amount` | integer | no | The most it can pay, in minor units. |
| `payment_signals.usage_limit.currency` | string | no | Lowercase ISO 4217. |
| `payment_signals.credential_type` | enum | no | The credential type you reported from your own token resolve. One of `agentic_token`, `dpan`, `fpan`. |
| `payment_signals.network_token` | boolean \| null | no | Whether the PaymentIntent's latest charge used a network token (null when not read). A network token alone never makes an agent order. |
| `payment_signals.risk` | object | no | Stripe's risk scores for the token, when it was checked, on the scale Stripe's shared payment token reference gives. |
| `payment_signals.risk.bot` | number | no | Stripe bot score. |
| `payment_signals.risk.card_testing` | number | no | Stripe card testing score. |
| `payment_signals.risk.stolen_card` | number | no | Stripe stolen card score. |
| `payment_signals.risk.fraudulent_dispute` | number | no | Stripe fraud dispute score. |
| `payment_signals.risk.card_issuer_decline` | number | no | Stripe bank decline score. |
| `ucp` | object | no | A Universal Commerce Protocol checkout's record (`POST /v1/authorize/ucp_assessments`, or `ucp_session_id`). Present only on a UCP checkout. |
| `ucp.version` | string | yes | The checkout's UCP version (`2026-08-25`). |
| `ucp.checkout_id` | string | yes | Your UCP checkout's `id`. |
| `ucp.checkout_hash` | string | yes | The hash of the checkout state (cart, totals, buyer and fulfilment); a changed cart is a new state. |
| `ucp.transport` | enum | yes | How the platform called your UCP server. One of `rest`, `mcp`, `a2a`. |
| `ucp.platform` | object | yes | The agent platform that placed the checkout. |
| `ucp.platform.profile_host` | string \| null | yes | The host of the platform's profile URL (never its path or query), or null when none was named. |
| `ucp.platform.signature` | enum | yes | The platform's request signature: `verified` against its profile's keys (or on your word, `platform_signature: verified`), `absent` or `invalid`. One of `verified`, `absent`, `invalid`. |
| `ucp.platform.signature_source` | enum | no | Who checked the signature: Provenance (from `request_signature`) or you. Present when a signature was checked. One of `provenance`, `merchant`. |
| `ucp.negotiated` | object | yes | What the platform and your server negotiated. |
| `ucp.negotiated.approval_action` | boolean | yes | `com.provenanceauth.checkout.approval` was negotiated and the extension is on. |
| `ucp.negotiated.ap2_mandate` | boolean | yes | The AP2 mandate extension was negotiated: completion then requires `ap2.checkout_mandate`. |
| `ucp.verified` | object | yes | What was verified on the request. |
| `ucp.verified.intent_signal` | string | yes | The intent token in `signals["com.provenanceauth.intent"]`: `valid`, `absent` or the reason it failed. |
| `ucp.verified.ap2_checkout_mandate` | string | yes | The AP2 checkout mandate: `accepted`, `absent` or the reason it was refused. |
| `ucp.fallback` | enum | no | When the platform didn't negotiate the approval Action and your rules asked: the deciding rule's `ucp_fallback`. One of `escalate`, `hold_after_order`. |
| `ucp.completed_by` | enum | no | Who finished an escalated checkout on your checkout page, once known. One of `person`, `agent`. |
| `created_at` | timestamp | yes | When the assessment was made. |
| `updated_at` | timestamp \| null | yes | When the person's decision (or your review, or the challenge's expiry) last changed it; null until then. |
| `amount` | object \| null | no | The total of the cart the assessment bound. On reads (`GET`, the list); null when the cart carried no total. |
| `amount.total` | integer | yes | The order total in the currency's minor units (cents for USD). |
| `amount.currency` | string | yes | The ISO 4217 currency, lowercase. |
| `amount.exponent` | integer | yes | The currency's decimal places (2 for USD, 0 for JPY). |
| `items` | array of objects | no | The cart's lines as you bound them, at most 50. On reads (`GET`, the list). |
| `items.name` | string | yes | The line's name. |
| `items.quantity` | integer | yes | How many. |
| `items.unit_amount` | integer \| null | yes | The price of one, in minor units. |
| `items.image_url` | string \| null | yes | The picture you gave for the line, if any. |
| `ending` | object \| any \| null | no | How the order ended, worked out. On reads (`GET`, the list); null while nothing is known yet. |
| `ending.outcome` | enum | no | `chargeback`: a dispute matched to the order. `fraud`: a fraud report on the order's token or agent. `refund_abuse`: refunds repeat for the same shopper or agent. `refunded`: a refund that does not repeat. `customer_denied`: the shopper declined. `store_rejected`: your review or your staff refused it. `legitimate`: reported so, or 14 days passed with no dispute or refund. One of `chargeback`, `fraud`, `refund_abuse`, `refunded`, `customer_denied`, `store_rejected`, `legitimate`. |
| `ending.source` | enum | no | Where it came from: `reported` is an outcome you reported; `quiet_period` is an order that went ahead on a connection that reports disputes and heard nothing for 14 days. One of `reported`, `chargeback`, `network_report`, `approval_denied`, `staff_cancel`, `refund`, `quiet_period`. |
| `ending.at` | timestamp | no | When it ended this way: the report, the dispute, the refund, the decline, or the end of the 14 days. |

### Example

```json
{
  "object": "checkout_assessment",
  "id": "cas_01M8CSH6C1BCFT3WXQ3T98XV6K",
  "outcome": "allow",
  "reason": "policy_rule_approved",
  "policy": {
    "id": "pol_78F44446F59D72D9B2D553FA8D",
    "version": null,
    "rule": {
      "id": "rul_default_unclassified_approve",
      "ref": "R-104",
      "name": "Unclassified",
      "phase": "assess",
      "action": "approve",
      "conditions": [
        {
          "fact": "agent.bot_likelihood",
          "op": "eq",
          "value": "unclassified",
          "actual": "unclassified"
        },
        {
          "fact": "checkout.presented",
          "op": "eq",
          "value": "none",
          "actual": "none"
        },
        {
          "fact": "agent.signals_present",
          "op": "eq",
          "value": false,
          "actual": false
        },
        {
          "fact": "agent.recent_token_presented",
          "op": "eq",
          "value": false,
          "actual": false
        }
      ]
    }
  },
  "policies": [
    {
      "id": "pol_78F44446F59D72D9B2D553FA8D",
      "version": null,
      "rule": {
        "id": "rul_default_unclassified_approve",
        "ref": "R-104",
        "name": "Unclassified",
        "phase": "assess",
        "action": "approve",
        "conditions": [
          {
            "fact": "agent.bot_likelihood",
            "op": "eq",
            "value": "unclassified",
            "actual": "unclassified"
          },
          {
            "fact": "checkout.presented",
            "op": "eq",
            "value": "none",
            "actual": "none"
          },
          {
            "fact": "agent.signals_present",
            "op": "eq",
            "value": false,
            "actual": false
          },
          {
            "fact": "agent.recent_token_presented",
            "op": "eq",
            "value": false,
            "actual": false
          }
        ]
      }
    }
  ],
  "signature": {
    "method": "none",
    "valid": null,
    "key_id": null,
    "directory": null,
    "agent_id": null,
    "covers": [],
    "platform": null
  },
  "authority": {
    "kind": "none"
  },
  "binding_hash": "cd67e1857f61d17a350f7a5d066ba2b2d12981dd93864b208e1af314c0bab108",
  "origin": "https://harborbean.example",
  "order_id": "ord_8813",
  "covered": "none",
  "signals": {
    "covered": "none",
    "coverage_reason": "no_token",
    "confirmed": "none",
    "presented": "none",
    "agent": {
      "verified": false,
      "class": "unknown",
      "signals_present": false,
      "signals": [],
      "recent_token_presented": false
    }
  },
  "bot": {
    "likelihood": null,
    "band": "unclassified",
    "reason": "not_checked",
    "signals": []
  },
  "approval_context": null,
  "challenge": null,
  "checkout_approval_id": null,
  "decision_id": "mas_01M8CSH6C1DNGQT6TNJCVH2CHN",
  "traffic_assessment_id": null,
  "payment_signals": null,
  "created_at": "2026-11-26T20:42:40.897Z",
  "updated_at": null,
  "amount": {
    "total": 3800,
    "currency": "usd",
    "exponent": 2
  },
  "items": [
    {
      "name": "Stoneware mug",
      "quantity": 2,
      "unit_amount": 1900,
      "image_url": null
    }
  ],
  "ending": null
}
```

## Events

Sent to your [webhook endpoints](https://provenanceauth.com/docs/integrate/webhooks.md) when they subscribe:

- `authorize.checkout_assessment.updated`

## Retrieve a checkout assessment

`GET /v1/authorize/checkout_assessments/{id}`

Returns one of your checkout assessments.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The assessment's ID (`cas_…`). |

### Returns

The assessment. See [the checkout assessment object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/checkout_assessments" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cart": {
      "order_id": "ord_8813",
      "total": 3800,
      "currency": "USD",
      "merchant_id": "harborbean",
      "origin": "https://harborbean.example",
      "items": [
        {
          "sku": "mug-sage",
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900
        }
      ]
    }
  }' > step.json
export ASSESSMENT_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/authorize/checkout_assessments/$ASSESSMENT_ID" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "cart": {
      "order_id": "ord_8813",
      "total": 3800,
      "currency": "USD",
      "merchant_id": "harborbean",
      "origin": "https://harborbean.example",
      "items": [
        {
          "sku": "mug-sage",
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900
        }
      ]
    }
  }),
})).json();
const assessmentId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments/${assessmentId}`, {
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/checkout_assessments", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "cart": {
        "order_id": "ord_8813",
        "total": 3800,
        "currency": "USD",
        "merchant_id": "harborbean",
        "origin": "https://harborbean.example",
        "items": [
            {
                "sku": "mug-sage",
                "name": "Stoneware mug",
                "quantity": 2,
                "unit_amount": 1900
            }
        ]
    }
}).json()
assessment_id = step1["id"]
data = httpx.get(f"{api}/v1/authorize/checkout_assessments/{assessment_id}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()
```

### Response 200

```json
{
  "object": "checkout_assessment",
  "id": "cas_01M8CSH6C6GZ39DVN41DPDXR2R",
  "outcome": "allow",
  "reason": "policy_rule_approved",
  "policy": {
    "id": "pol_78F44446F59D72D9B2D553FA8D",
    "version": null,
    "rule": {
      "id": "rul_default_unclassified_approve",
      "ref": "R-104",
      "name": "Unclassified",
      "phase": "assess",
      "action": "approve",
      "conditions": [
        {
          "fact": "agent.bot_likelihood",
          "op": "eq",
          "value": "unclassified",
          "actual": "unclassified"
        },
        {
          "fact": "checkout.presented",
          "op": "eq",
          "value": "none",
          "actual": "none"
        },
        {
          "fact": "agent.signals_present",
          "op": "eq",
          "value": false,
          "actual": false
        },
        {
          "fact": "agent.recent_token_presented",
          "op": "eq",
          "value": false,
          "actual": false
        }
      ]
    }
  },
  "policies": [
    {
      "id": "pol_78F44446F59D72D9B2D553FA8D",
      "version": null,
      "rule": {
        "id": "rul_default_unclassified_approve",
        "ref": "R-104",
        "name": "Unclassified",
        "phase": "assess",
        "action": "approve",
        "conditions": [
          {
            "fact": "agent.bot_likelihood",
            "op": "eq",
            "value": "unclassified",
            "actual": "unclassified"
          },
          {
            "fact": "checkout.presented",
            "op": "eq",
            "value": "none",
            "actual": "none"
          },
          {
            "fact": "agent.signals_present",
            "op": "eq",
            "value": false,
            "actual": false
          },
          {
            "fact": "agent.recent_token_presented",
            "op": "eq",
            "value": false,
            "actual": false
          }
        ]
      }
    }
  ],
  "signature": {
    "method": "none",
    "valid": null,
    "key_id": null,
    "directory": null,
    "agent_id": null,
    "covers": [],
    "platform": null
  },
  "authority": {
    "kind": "none"
  },
  "binding_hash": "cd67e1857f61d17a350f7a5d066ba2b2d12981dd93864b208e1af314c0bab108",
  "origin": "https://harborbean.example",
  "order_id": "ord_8813",
  "covered": "none",
  "signals": {
    "covered": "none",
    "coverage_reason": "no_token",
    "confirmed": "none",
    "presented": "none",
    "agent": {
      "verified": false,
      "class": "unknown",
      "signals_present": false,
      "signals": [],
      "recent_token_presented": false
    }
  },
  "bot": {
    "likelihood": null,
    "band": "unclassified",
    "reason": "not_checked",
    "signals": []
  },
  "approval_context": null,
  "challenge": null,
  "checkout_approval_id": null,
  "decision_id": "mas_01M8CSH6C6KRKD973EENWWFKRK",
  "traffic_assessment_id": null,
  "payment_signals": null,
  "created_at": "2026-11-26T20:42:40.902Z",
  "updated_at": null,
  "amount": {
    "total": 3800,
    "currency": "usd",
    "exponent": 2
  },
  "items": [
    {
      "name": "Stoneware mug",
      "quantity": 2,
      "unit_amount": 1900,
      "image_url": null
    }
  ],
  "ending": null
}
```

## List checkout assessments

`GET /v1/authorize/checkout_assessments`

Your checkout assessments, newest first. Filter with `outcome`, the cart approval's status, a search on the order reference and the created range.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `sort` | query | enum | no | The order of the list: `created`, `amount`, with `-` in front for descending. Newest first when omitted. Any other order sorts the newest 1,000 assessments that match your filters. A `next_cursor` carries its order; pass it back with the same `sort`. One of `created`, `-created`, `amount`, `-amount`. |
| `limit` | query | integer | no | Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid. |
| `cursor` | query | string | no | Opaque; pass a response's `next_cursor` back to get the next page. |
| `outcome` | query | enum | no | Only this outcome. One of `allow`, `challenge`, `reject`, `frictionless`. |
| `approval_status` | query | enum | no | Only checkouts whose cart approval is in this status now. `in_review`: the shopper approved and the order waits for your review. One of `pending`, `in_review`, `approved`, `declined`, `expired`. |
| `order_id` | query | string | no | Only orders whose reference contains this text, in any case. |
| `created_gte` | query | timestamp | no | Only checkouts assessed at or after this time. |
| `created_lte` | query | timestamp | no | Only checkouts assessed at or before this time. |

### Returns

A page of assessments.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/checkout_assessments" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cart": {
      "order_id": "ord_8813",
      "total": 3800,
      "currency": "USD",
      "merchant_id": "harborbean",
      "origin": "https://harborbean.example",
      "items": [
        {
          "sku": "mug-sage",
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900
        }
      ]
    }
  }' > step.json
export ASSESSMENT_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/authorize/checkout_assessments" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "cart": {
      "order_id": "ord_8813",
      "total": 3800,
      "currency": "USD",
      "merchant_id": "harborbean",
      "origin": "https://harborbean.example",
      "items": [
        {
          "sku": "mug-sage",
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900
        }
      ]
    }
  }),
})).json();
const assessmentId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments`, {
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/checkout_assessments", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "cart": {
        "order_id": "ord_8813",
        "total": 3800,
        "currency": "USD",
        "merchant_id": "harborbean",
        "origin": "https://harborbean.example",
        "items": [
            {
                "sku": "mug-sage",
                "name": "Stoneware mug",
                "quantity": 2,
                "unit_amount": 1900
            }
        ]
    }
}).json()
assessment_id = step1["id"]
data = httpx.get(f"{api}/v1/authorize/checkout_assessments", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()
```

### Response 200

```json
{
  "object": "list",
  "data": [
    {
      "object": "checkout_assessment",
      "id": "cas_01M8CSH6C1BCFT3WXQ3T98XV6K",
      "outcome": "allow",
      "reason": "policy_rule_approved",
      "policy": {
        "id": "pol_78F44446F59D72D9B2D553FA8D",
        "version": null,
        "rule": {
          "id": "rul_default_unclassified_approve",
          "ref": "R-104",
          "name": "Unclassified",
          "phase": "assess",
          "action": "approve",
          "conditions": [
            {
              "fact": "agent.bot_likelihood",
              "op": "eq",
              "value": "unclassified",
              "actual": "unclassified"
            },
            {
              "fact": "checkout.presented",
              "op": "eq",
              "value": "none",
              "actual": "none"
            },
            {
              "fact": "agent.signals_present",
              "op": "eq",
              "value": false,
              "actual": false
            },
            {
              "fact": "agent.recent_token_presented",
              "op": "eq",
              "value": false,
              "actual": false
            }
          ]
        }
      },
      "policies": [
        {
          "id": "pol_78F44446F59D72D9B2D553FA8D",
          "version": null,
          "rule": {
            "id": "rul_default_unclassified_approve",
            "ref": "R-104",
            "name": "Unclassified",
            "phase": "assess",
            "action": "approve",
            "conditions": [
              {
                "fact": "agent.bot_likelihood",
                "op": "eq",
                "value": "unclassified",
                "actual": "unclassified"
              },
              {
                "fact": "checkout.presented",
                "op": "eq",
                "value": "none",
                "actual": "none"
              },
              {
                "fact": "agent.signals_present",
                "op": "eq",
                "value": false,
                "actual": false
              },
              {
                "fact": "agent.recent_token_presented",
                "op": "eq",
                "value": false,
                "actual": false
              }
            ]
          }
        }
      ],
      "signature": {
        "method": "none",
        "valid": null,
        "key_id": null,
        "directory": null,
        "agent_id": null,
        "covers": [],
        "platform": null
      },
      "authority": {
        "kind": "none"
      },
      "binding_hash": "cd67e1857f61d17a350f7a5d066ba2b2d12981dd93864b208e1af314c0bab108",
      "origin": "https://harborbean.example",
      "order_id": "ord_8813",
      "covered": "none",
      "signals": {
        "covered": "none",
        "coverage_reason": "no_token",
        "confirmed": "none",
        "presented": "none",
        "agent": {
          "verified": false,
          "class": "unknown",
          "signals_present": false,
          "signals": [],
          "recent_token_presented": false
        }
      },
      "bot": {
        "likelihood": null,
        "band": "unclassified",
        "reason": "not_checked",
        "signals": []
      },
      "approval_context": null,
      "challenge": null,
      "checkout_approval_id": null,
      "decision_id": "mas_01M8CSH6C1DNGQT6TNJCVH2CHN",
      "traffic_assessment_id": null,
      "payment_signals": null,
      "created_at": "2026-11-26T20:42:40.897Z",
      "updated_at": null,
      "amount": {
        "total": 3800,
        "currency": "usd",
        "exponent": 2
      },
      "items": [
        {
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900,
          "image_url": null
        }
      ],
      "ending": null
    },
    {
      "object": "checkout_assessment",
      "id": "cas_01M8CSH6BV7ZVQWB0Z2BFEYFDC",
      "outcome": "allow",
      "reason": "token_covers_cart",
      "policy": null,
      "policies": [],
      "signature": {
        "method": "none",
        "valid": null,
        "key_id": null,
        "directory": null,
        "agent_id": null,
        "covers": [],
        "platform": null
      },
      "authority": {
        "kind": "provenance_intent_token",
        "verified": true,
        "verified_against": "provenance_jwks",
        "alg": "ES256",
        "key_id": "e777d4bf46cdcc59",
        "issuer": "provenance-authorize",
        "mandate_id": null,
        "approval_context_id": null,
        "cart_match": "matched"
      },
      "binding_hash": "8261f1dbade61ff411f617a72f58c3fea66c95bdba5b5d5a5d8c33e53bd158fc",
      "origin": "https://harborbean.example",
      "order_id": "ord_8812",
      "contact": {
        "name": "Maya Chen"
      },
      "covered": "token",
      "signals": {
        "covered": "token",
        "coverage_reason": "token_covers_cart",
        "confirmed": "none",
        "presented": "token",
        "token_age_seconds": 0,
        "agent": {
          "verified": false,
          "class": "unknown",
          "run_present": false,
          "signals_present": true,
          "signals": [],
          "recent_token_presented": false,
          "order_signals": [
            "shared_payment_token",
            "agentic_token"
          ]
        },
        "merchant": {
          "delivery_timeframe": "two_or_more_days",
          "ship_to": "stored_address",
          "source": "merchant"
        },
        "billing": {
          "country": "US",
          "region": "US-OR",
          "postal_prefix": "972",
          "source": "merchant"
        }
      },
      "bot": {
        "likelihood": null,
        "band": "unclassified",
        "reason": "not_checked",
        "signals": []
      },
      "approval_context": null,
      "challenge": null,
      "checkout_approval_id": null,
      "decision_id": "mas_01M8CSH6BV51A7NJD1RMK6QVNS",
      "traffic_assessment_id": null,
      "payment_signals": {
        "shared_payment_token": true,
        "checked": false,
        "unchecked_reason": "no_connection",
        "agent_profile": null,
        "credential_type": "agentic_token",
        "network_token": null,
        "risk": {}
      },
      "created_at": "2026-11-26T20:42:40.892Z",
      "updated_at": null,
      "amount": {
        "total": 3800,
        "currency": "usd",
        "exponent": 2
      },
      "items": [
        {
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900,
          "image_url": null
        }
      ],
      "ending": null
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

## Assess an agent checkout

`POST /v1/authorize/checkout_assessments`

One call per agent order: whether a token, grant or earlier approval covers this exact cart, what Identify says about the agent, and your checkout rules, as one outcome: `allow` (with a receipt), `challenge` (with a cart approval to send the person to) or `reject`. Metered as one `authorize_check`.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string | no | Retry a create safely: the same key + request returns the stored response (24 h, per caller). |
| `cart` | body | object | yes | Your record of the order, exactly as you pass it to `checkoutBinding` (binding v1 or the v2 cart). |
| `intent_token` | body | string | no | The `Provenance-Intent` value the agent sent. |
| `mandate_token` | body | string | no | The `Provenance-Mandate` value (a person's grant) the agent sent. |
| `counter_offer_id` | body | string | no | the `Provenance-Counter-Offer` value the agent sent with a grant presented alone: the accepted counter-offer this cart buys. The cart's total must be at most the accepted amount plus the option's `tax_and_fees`, each line one that was offered (sku or name), under that grant; otherwise the cart isn't covered (`coverage_reason: counter_offer_terms_changed`). An intent token minted for a counter-offer names its own. A frictionless outcome uses the acceptance once. |
| `request` | body | object | no | The agent's request, run through Identify's hosted check with this cart as the order. Its `Provenance-Intent` and `Provenance-Mandate` headers are read when the fields above are absent. |
| `request.method` | body | string | yes | The HTTP method. |
| `request.url` | body | string | yes | The full URL. |
| `request.headers` | body | object | no | The request headers. |
| `request.body` | body | string | no | The request body, at most 64 KB. Read, never stored. |
| `checkout_jwt` | body | string | no | The Checkout JWT your store signed for this cart, when the agent pays with an AP2 Checkout Mandate (its `checkout_hash` must be this JWT's hash). A Payment Mandate needs none. |
| `traffic_assessment_id` | body | string | no | A verdict your Identify middleware reported in the last 5 minutes (`tas_…`), instead of `request`. |
| `payment` | body | object | no | How the agent is paying. A Stripe shared payment token you received is checked on your own Stripe account through your [payment connection](https://provenanceauth.com/docs/authorize/guides/chargeback-responses.md) when its key can read shared payment tokens; otherwise the payment facts stay as reported. We never resolve a token or handle a card number. Any of its fields marks the order as an agent order for your rules, except `payment_intent` alone. |
| `payment.shared_payment_token` | body | string | no | The shared payment token (`spt_…`) the agent gave you. |
| `payment.credential_type` | body | enum | no | The credential type your own token resolve returned (`agentic_token` is a card network agent token). One of `agentic_token`, `dpan`, `fpan`. |
| `payment.payment_intent` | body | string | no | A PaymentIntent you already created (manual capture): its latest charge says whether a network token paid. |
| `payment_reference` | body | string | no | The payment you created for this cart (a Stripe PaymentIntent `pi_…` or charge `ch_…`), so a [chargeback](https://provenanceauth.com/docs/authorize/guides/chargeback-responses.md) on it finds this decision. |
| `payment_method` | body | object | no | The card in use, shown on a challenge's approval email and page; not part of the signed cart. Rules and risk scores read it as `card.brand`, `card.last4` and, with both expiry fields, `card.expiry` (`YYYY-MM`). The expiry is never shown or kept on the approval. |
| `payment_method.brand` | body | enum | no | The card brand. One of `visa`, `mastercard`, `amex`, `discover`, `jcb`, `unionpay`, `diners`, `other`. |
| `payment_method.last4` | body | string | no | Exactly the last 4 digits. |
| `payment_method.wallet` | body | enum | no | The wallet the card is used through, when there is one. One of `apple_pay`, `google_pay`, `link`, `paypal`, `shop_pay`. |
| `payment_method.description` | body | string | no | On a read: the line the page shows ("Visa ···· 4242 · Apple Pay"). |
| `payment_method.exp_month` | body | integer | no | The card's expiry month. Send with exp_year. |
| `payment_method.exp_year` | body | integer | no | The card's expiry year (four digits). Send with exp_month. |
| `visit_id` | body | string | no | The storefront visit this cart came from (the storefront check's `tas_…` verdict id, at most 24 hours old). With field timing on the visit, its score fills `agent.automation_score`; with no `request` or `traffic_assessment_id`, its bot score and signals fill the bot facts. |
| `ucp_session_id` | body | string | no | The UCP session (`ucpa_…`) an escalated Universal Commerce Protocol checkout handed to your checkout page (its `provenance_ucp_session` query parameter). The visit's class sets `ucp.completed_by`. |
| `ip` | body | string | no | The agent's client IP, for Identify. |
| `merchant_facts` | body | object | no | Facts you attest about the order, for your rules (labelled `source: "merchant"`). Rules on them are Pro and above. |
| `merchant_facts.delivery_timeframe` | body | enum | no | How soon the order ships. One of `electronic`, `same_day`, `overnight`, `two_or_more_days`. |
| `merchant_facts.gift_card_count` | body | integer | no | Gift cards in the order. |
| `merchant_facts.gift_card_amount` | body | integer | no | Their total, in minor units. |
| `merchant_facts.preorder` | body | boolean | no | The order includes a preorder. |
| `merchant_facts.reorder` | body | boolean | no | The customer has ordered this before. |
| `merchant_facts.ship_to` | body | enum | no | Where it ships. One of `billing_address`, `stored_address`, `new_address`, `pickup`, `digital`. |
| `merchant_facts.customer_account_age_days` | body | integer | no | How old your customer's account is, in days. |
| `billing_address` | body | object | no | Your customer's billing address (store-attested). Its country and region are rule facts on every plan (`billing.country`, `billing.region`); the assessment keeps the coarse fields and a challenge's cart approval keeps the full address, sealed. |
| `billing_address.line1` | body | string \| null | no | The street line. |
| `billing_address.line2` | body | string \| null | no | The second line (apartment, suite, unit). |
| `billing_address.city` | body | string \| null | no | The city. |
| `billing_address.region` | body | string \| null | no | The state, province or region: a code (`OR`, `US-OR`) or a name (`Oregon`). US states, Canadian provinces and territories and Australian states map to ISO 3166-2; any other region is kept for comparison only and its region fact is absent (`region_unrecognized`). |
| `billing_address.postal_code` | body | string \| null | no | The postal or ZIP code. |
| `billing_address.country` | body | string | yes | ISO 3166-1 alpha-2 (`US`). Required. |
| `billing_address.location` | body | object \| null | no | The address's point, when your store has one. Sealed with the address. With it, the distance facts (`approval.distance_km_billing`, `approval.min_distance_km_billing`) work without a geocoder; without it, the server's geocoder finds the postal code's centre, or the distance facts are absent (`geocoder_not_configured`). |
| `billing_address.location.lat` | body | number | yes | Latitude, in degrees. |
| `billing_address.location.lng` | body | number | yes | Longitude, in degrees. |
| `bank_check` | body | object | no | Run the bank check (3-D Secure through your payment provider) on the approval page after the passkey, when the outcome is a challenge. Pro and up; 503 until this deployment turns the step on for the provider. |
| `bank_check.provider` | body | enum | yes | Your payment provider. One of `checkout_com`, `adyen`, `cybersource`, `stripe`. |
| `contact` | body | object | no | On a challenge, ask your own signed-in customer at this contact instead of the agent relay. `name` alone (no phone or email) keeps the relay and shows the name on your reads. The older field `customer` is refused. |
| `contact.phone` | body | string | no | An E.164 phone number (`+14155550132`). Spaces are removed; nothing else is guessed. |
| `contact.email` | body | string | no | An email address, compared in lower case. |
| `contact.name` | body | string | no | The shopper's name as your store holds it (`Maya Chen`). One line; spaces collapsed. Sealed at rest, opened in your account export, deleted with the row. |
| `contact.text_consent` | body | object | no | With `phone`: your statement that the person at this phone agreed to your texts, as on `RequestContact`. |
| `contact.text_consent.method` | body | enum | yes | How the person agreed. One of `sign_up_form`, `in_app`, `in_person`, `customer_list`. |
| `contact.text_consent.obtained_at` | body | timestamp | yes | When they agreed; not in the future. |
| `contact.text_consent.evidence_url` | body | string | no | An `https` link to how they agreed. Stored, never fetched. |
| `delivery` | body | enum | no | `send`: Provenance sends the request on the channels `channels` allows. `self`: link only. Nothing is sent and the response returns the link for you to pass on. Left out, a request with no contact is link only and any other takes your account's default (`send` out of the box). With a default of link only, a request that gives a contact must say `send`. One of `send`, `self`. |
| `channels` | body | array of enums | no | Which of Provenance's messages may go, in any order: `app_notification` (the person's Provenance app, when the contact matches one person there), `email` and `text`. Left out, your account's default (all three out of the box). With all three, the person gets the app notification and the email when their contact matches, and the text and the email otherwise; a narrower list sends only what it names (the text goes in the notification's place only with `text`, the email beside either only with `email`). Each message is reported on its own in `deliveries`. A list that can reach none of the contacts is refused, as are `sms` and `app_push`. |
| `follow_up_text` | body | object | no | The follow-up text for this request (or, on `PUT /v1/account/reminders`, the default). Each key left out takes your account's saved default; the whole object left out takes all three (on, `not_opened`, 5 minutes out of the box). On a live deployment it is Pro and above (`402 plan_required` on Free, nothing created or saved); in the sandbox it works on every plan. Refused beside `delivery: "self"`. |
| `follow_up_text.enabled` | body | boolean | no | `false` sends no follow-up text. |
| `follow_up_text.when` | body | enum | no | `not_opened` (the default) or `not_finished`. One of `not_opened`, `not_finished`. |
| `follow_up_text.after_minutes` | body | integer | no | A whole number of minutes from 1 to 1440, counted from the notification. On a create it must be shorter than the request's `expires_in` (`400 parameter_invalid` on `follow_up_text.after_minutes`); a longer wait from your default is kept, and the text is skipped as `expired` if the request ends first. |
| `reminders` | body | object | no | This request's automatic [reminders](https://provenanceauth.com/docs/messaging/reminders.md), in the shape of one product's schedule in Settings (`schedules.<kind>` on `/v1/account/reminders`): `capture_request` for a capture request, `checkout_approval` for a cart approval (and an assessment's challenge or a guest confirmation), `approval` for a routed approval. Keys left out take your account's saved values, as a `PUT` to Settings does: `after` alone changes the timings of a schedule that is on, and `enabled: true` turns it on. The cap, the minimum gap and quiet hours apply as built; an offset at or past the request's expiry is left out. Fixed at create: a later change in Settings leaves the request as it was. Refused beside `delivery: "self"`. |
| `reminders.enabled` | body | boolean | no | `true` tracks this request on the schedule (Pro and above on a live deployment: `402 plan_required` on `reminders.enabled` below Pro, nothing created; every plan in the sandbox); `false` sends it no automatic reminder (one by hand or by API is still allowed). |
| `reminders.after` | body | array of strings | no | Up to three offsets from the request's creation (`10m`, `24h`, `3d`), increasing, each at least the minimum gap after the one before, at most 7 days. Errors use the Settings messages on `reminders.after`. |
| `display` | body | object | no | How the approval page shows your store (default: your brand name, else the cart's host). |
| `display.merchant_name` | body | string | yes | Your store's name. |
| `display.ships_to` | body | object | no | Coarse ships-to (`city`, `region`, `country`). |
| `retry_url` | body | string | no | Where the agent retries with `Provenance-Intent` (default: the cart's origin). |
| `expires_in` | body | integer | no | How long the challenge stays open, in seconds (default: your account's approval expiry, else 600, held to 60 to 3600). |
| `require` | body | object | no | What a new passkey needs on this approval, over your checkout rules' `passkeys` (default `step_up_contact`, 86400 seconds, `no_contact: accept`). |
| `require.new_passkey` | body | enum | no | `step_up_contact`: a new passkey also confirms a code sent to the customer contact you passed, unless the person opened the link from the email or text sent to that same contact (`approval_context.method.step_up.method` is then `link_contact`). `accept`: it counts, and the response says it's new. `require_existing`: it's refused (`passkey_too_new`). One of `step_up_contact`, `accept`, `require_existing`. |
| `require.min_passkey_age` | body | integer | no | Seconds. A passkey younger than this is new; 0 treats only one set up during this approval as new. |
| `require.no_contact` | body | enum | no | With `step_up_contact` and no customer contact (the agent relay): count it, or decline it. One of `accept`, `decline`. |
| `policy_version` | body | integer | no | Sandbox only. Decide with this version of your checkout rules (a draft, typically) instead of the live one; `policy.version` on the answer names it. A draft saved in a draft group needs that `draft_group`. In live, `400 parameter_invalid`; a version that doesn't exist, `404`. |
| `draft_group` | body | string | no | Sandbox only, with `policy_version`: the draft group the draft was saved in (the rules embed session's `rules.draft_group`). Another group's draft is `400 parameter_invalid`. |

### Returns

The assessment. See [the checkout assessment object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`cart_totals_mismatch`](https://provenanceauth.com/docs/platform/errors.md#cart_totals_mismatch)
- [`idempotency_key_reused`](https://provenanceauth.com/docs/platform/errors.md#idempotency_key_reused)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`policy_account_required`](https://provenanceauth.com/docs/platform/errors.md#policy_account_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`usage_limit_reached`](https://provenanceauth.com/docs/platform/errors.md#usage_limit_reached)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/mandate/intents" \
  -H "Authorization: Bearer prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe" \
  -H "Content-Type: application/json" \
  -d '{
    "action_description": "Checkout at harborbean.example: order ord_8812, USD 38.00",
    "action_payload": {
      "order_id": "ord_8812",
      "total": 3800,
      "currency": "usd",
      "merchant_id": "harborbean",
      "origin": "https://harborbean.example",
      "items": [
        {
          "sku": "mug-sage",
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900
        }
      ]
    },
    "agent_session_id": "sess_reference_assess",
    "device_id": "dev_00000000000000000000000000000001",
    "biometric_present": true,
    "audience": "https://harborbean.example"
  }' > step.json
export INTENT_TOKEN=$(jq -r '.intent_token' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/checkout_assessments" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d "{
    \"cart\": {
      \"order_id\": \"ord_8812\",
      \"total\": 3800,
      \"currency\": \"USD\",
      \"merchant_id\": \"harborbean\",
      \"origin\": \"https://harborbean.example\",
      \"items\": [
        {
          \"sku\": \"mug-sage\",
          \"name\": \"Stoneware mug\",
          \"quantity\": 2,
          \"unit_amount\": 1900
        }
      ]
    },
    \"intent_token\": \"$INTENT_TOKEN\",
    \"merchant_facts\": {
      \"delivery_timeframe\": \"two_or_more_days\",
      \"ship_to\": \"stored_address\"
    },
    \"billing_address\": {
      \"line1\": \"18 Harrow Lane\",
      \"city\": \"Portland\",
      \"region\": \"OR\",
      \"postal_code\": \"97205\",
      \"country\": \"US\"
    },
    \"payment\": {
      \"shared_payment_token\": \"spt_1RefSample0000000001\",
      \"credential_type\": \"agentic_token\"
    },
    \"contact\": {
      \"name\": \"Maya Chen\"
    }
  }"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/intents`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    "action_description": "Checkout at harborbean.example: order ord_8812, USD 38.00",
    "action_payload": {
      "order_id": "ord_8812",
      "total": 3800,
      "currency": "usd",
      "merchant_id": "harborbean",
      "origin": "https://harborbean.example",
      "items": [
        {
          "sku": "mug-sage",
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900
        }
      ]
    },
    "agent_session_id": "sess_reference_assess",
    "device_id": "dev_00000000000000000000000000000001",
    "biometric_present": true,
    "audience": "https://harborbean.example"
  }),
})).json();
const intentToken = step1.intent_token;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "cart": {
      "order_id": "ord_8812",
      "total": 3800,
      "currency": "USD",
      "merchant_id": "harborbean",
      "origin": "https://harborbean.example",
      "items": [
        {
          "sku": "mug-sage",
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900
        }
      ]
    },
    "intent_token": intentToken,
    "merchant_facts": {
      "delivery_timeframe": "two_or_more_days",
      "ship_to": "stored_address"
    },
    "billing_address": {
      "line1": "18 Harrow Lane",
      "city": "Portland",
      "region": "OR",
      "postal_code": "97205",
      "country": "US"
    },
    "payment": {
      "shared_payment_token": "spt_1RefSample0000000001",
      "credential_type": "agentic_token"
    },
    "contact": {
      "name": "Maya Chen"
    }
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/intents", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
    "action_description": "Checkout at harborbean.example: order ord_8812, USD 38.00",
    "action_payload": {
        "order_id": "ord_8812",
        "total": 3800,
        "currency": "usd",
        "merchant_id": "harborbean",
        "origin": "https://harborbean.example",
        "items": [
            {
                "sku": "mug-sage",
                "name": "Stoneware mug",
                "quantity": 2,
                "unit_amount": 1900
            }
        ]
    },
    "agent_session_id": "sess_reference_assess",
    "device_id": "dev_00000000000000000000000000000001",
    "biometric_present": True,
    "audience": "https://harborbean.example"
}).json()
intent_token = step1["intent_token"]
data = httpx.post(f"{api}/v1/authorize/checkout_assessments", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "cart": {
        "order_id": "ord_8812",
        "total": 3800,
        "currency": "USD",
        "merchant_id": "harborbean",
        "origin": "https://harborbean.example",
        "items": [
            {
                "sku": "mug-sage",
                "name": "Stoneware mug",
                "quantity": 2,
                "unit_amount": 1900
            }
        ]
    },
    "intent_token": intent_token,
    "merchant_facts": {
        "delivery_timeframe": "two_or_more_days",
        "ship_to": "stored_address"
    },
    "billing_address": {
        "line1": "18 Harrow Lane",
        "city": "Portland",
        "region": "OR",
        "postal_code": "97205",
        "country": "US"
    },
    "payment": {
        "shared_payment_token": "spt_1RefSample0000000001",
        "credential_type": "agentic_token"
    },
    "contact": {
        "name": "Maya Chen"
    }
}).json()
```

### Response 201

```json
{
  "object": "checkout_assessment",
  "id": "cas_01M8CSH6BV7ZVQWB0Z2BFEYFDC",
  "outcome": "allow",
  "reason": "token_covers_cart",
  "policy": null,
  "policies": [],
  "signature": {
    "method": "none",
    "valid": null,
    "key_id": null,
    "directory": null,
    "agent_id": null,
    "covers": [],
    "platform": null
  },
  "authority": {
    "kind": "provenance_intent_token",
    "verified": true,
    "verified_against": "provenance_jwks",
    "alg": "ES256",
    "key_id": "e777d4bf46cdcc59",
    "issuer": "provenance-authorize",
    "mandate_id": null,
    "approval_context_id": null,
    "cart_match": "matched"
  },
  "binding_hash": "8261f1dbade61ff411f617a72f58c3fea66c95bdba5b5d5a5d8c33e53bd158fc",
  "origin": "https://harborbean.example",
  "order_id": "ord_8812",
  "contact": {
    "name": "Maya Chen"
  },
  "covered": "token",
  "signals": {
    "covered": "token",
    "coverage_reason": "token_covers_cart",
    "confirmed": "none",
    "presented": "token",
    "token_age_seconds": 0,
    "agent": {
      "verified": false,
      "class": "unknown",
      "run_present": false,
      "signals_present": true,
      "signals": [],
      "recent_token_presented": false,
      "order_signals": [
        "shared_payment_token",
        "agentic_token"
      ]
    },
    "merchant": {
      "delivery_timeframe": "two_or_more_days",
      "ship_to": "stored_address",
      "source": "merchant"
    },
    "billing": {
      "country": "US",
      "region": "US-OR",
      "postal_prefix": "972",
      "source": "merchant"
    }
  },
  "bot": {
    "likelihood": null,
    "band": "unclassified",
    "reason": "not_checked",
    "signals": []
  },
  "approval_context": null,
  "challenge": null,
  "checkout_approval_id": null,
  "decision_id": "mas_01M8CSH6BV51A7NJD1RMK6QVNS",
  "traffic_assessment_id": null,
  "payment_signals": {
    "shared_payment_token": true,
    "checked": false,
    "unchecked_reason": "no_connection",
    "agent_profile": null,
    "credential_type": "agentic_token",
    "network_token": null,
    "risk": {}
  },
  "created_at": "2026-11-26T20:42:40.892Z",
  "updated_at": null,
  "receipt": {
    "object": "receipt",
    "id": "rcpt_0f5cf096883840f8d2ad08048da412aa",
    "claims": {
      "receipt_id": "rcpt_0f5cf096883840f8d2ad08048da412aa",
      "decision_id": "mas_01M8CSH6BV51A7NJD1RMK6QVNS",
      "kind": "verify",
      "jti": "4309ae72-9b60-460b-9f7d-0112d3416093",
      "agent_session_id": null,
      "agent_id": null,
      "approver_id": null,
      "device_id": null,
      "result": "valid",
      "reason": null,
      "matched_rule_id": null,
      "policy_version": null,
      "mandate_id": null,
      "biometric_bound": false,
      "record_hash": "505804ee8dab6eda2359bd3f92ecee2092f386a58ef4b0e4ccb12b4d42906500",
      "prev_hash": "0000000000000000000000000000000000000000000000000000000000000000",
      "decided_at": "2026-11-26T20:42:40.891Z",
      "iss": "http://localhost:3000"
    },
    "token": "eyJhbGciOiJFUzI1NiIsInR5cCI6InByb3ZlbmFuY2UtcmVjZWlwdCtqd3QiLCJraWQiOiJlNzc3ZDRiZjQ2Y2RjYzU5In0.eyJyZWNlaXB0X2lkIjoicmNwdF8wZjVjZjA5Njg4Mzg0MGY4ZDJhZDA4MDQ4ZGE0MTJhYSIsImRlY2lzaW9uX2lkIjoibWFzXzAxTThDU0g2QlY1MUE3TkpEMVJNSzZRVk5TIiwia2luZCI6InZlcmlmeSIsImp0aSI6IjQzMDlhZTcyLTliNjAtNDYwYi05ZjdkLTAxMTJkMzQxNjA5MyIsImFnZW50X3Nlc3Npb25faWQiOm51bGwsImFnZW50X2lkIjpudWxsLCJhcHByb3Zlcl9pZCI6bnVsbCwiZGV2aWNlX2lkIjpudWxsLCJyZXN1bHQiOiJ2YWxpZCIsInJlYXNvbiI6bnVsbCwibWF0Y2hlZF9ydWxlX2lkIjpudWxsLCJwb2xpY3lfdmVyc2lvbiI6bnVsbCwibWFuZGF0ZV9pZCI6bnVsbCwiYmlvbWV0cmljX2JvdW5kIjpmYWxzZSwicmVjb3JkX2hhc2giOiI1MDU4MDRlZThkYWI2ZWRhMjM1OWJkM2Y5MmVjZWUyMDkyZjM4NmE1OGVmNGIwZTRjY2IxMmI0ZDQyOTA2NTAwIiwicHJldl9oYXNoIjoiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMCIsImRlY2lkZWRfYXQiOiIyMDI2LTExLTI2VDIwOjQyOjQwLjg5MVoiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjMwMDAifQ.NXbpG4avzgrMg5-UFNdfJisI6UaaknkBF4Fbm6N9y-J0MabrIv_gSERuoqA2Lb2VHEC84vui9tqgAgiNA-OoLQ",
    "verify_url": "http://localhost:5173/developers/verify?receipt=eyJhbGciOiJFUzI1NiIsInR5cCI6InByb3ZlbmFuY2UtcmVjZWlwdCtqd3QiLCJraWQiOiJlNzc3ZDRiZjQ2Y2RjYzU5In0.eyJyZWNlaXB0X2lkIjoicmNwdF8wZjVjZjA5Njg4Mzg0MGY4ZDJhZDA4MDQ4ZGE0MTJhYSIsImRlY2lzaW9uX2lkIjoibWFzXzAxTThDU0g2QlY1MUE3TkpEMVJNSzZRVk5TIiwia2luZCI6InZlcmlmeSIsImp0aSI6IjQzMDlhZTcyLTliNjAtNDYwYi05ZjdkLTAxMTJkMzQxNjA5MyIsImFnZW50X3Nlc3Npb25faWQiOm51bGwsImFnZW50X2lkIjpudWxsLCJhcHByb3Zlcl9pZCI6bnVsbCwiZGV2aWNlX2lkIjpudWxsLCJyZXN1bHQiOiJ2YWxpZCIsInJlYXNvbiI6bnVsbCwibWF0Y2hlZF9ydWxlX2lkIjpudWxsLCJwb2xpY3lfdmVyc2lvbiI6bnVsbCwibWFuZGF0ZV9pZCI6bnVsbCwiYmlvbWV0cmljX2JvdW5kIjpmYWxzZSwicmVjb3JkX2hhc2giOiI1MDU4MDRlZThkYWI2ZWRhMjM1OWJkM2Y5MmVjZWUyMDkyZjM4NmE1OGVmNGIwZTRjY2IxMmI0ZDQyOTA2NTAwIiwicHJldl9oYXNoIjoiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMCIsImRlY2lkZWRfYXQiOiIyMDI2LTExLTI2VDIwOjQyOjQwLjg5MVoiLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjMwMDAifQ.NXbpG4avzgrMg5-UFNdfJisI6UaaknkBF4Fbm6N9y-J0MabrIv_gSERuoqA2Lb2VHEC84vui9tqgAgiNA-OoLQ"
  }
}
```

## Decide an order in review

`POST /v1/authorize/checkout_assessments/{id}/review`

Approves or rejects an order your after-approval rules held (`challenge.status: in_review`). Approve mints the agent's token and reads `allow` (`review_approved`); reject reads `reject` (`store_review`). Either sends `authorize.checkout_assessment.updated`. The same decision again returns the assessment. Free. See [review orders](https://provenanceauth.com/docs/authorize/guides/review-orders.md).

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string | no | Retry a create safely: the same key + request returns the stored response (24 h, per caller). |
| `id` | path | string | yes | The assessment's `cas_` ID. |
| `decision` | body | enum | yes | Your decision. One of `approve`, `reject`. |
| `note` | body | string | no | A note for your own records, kept with the review (never shown to the customer). |

### Returns

The assessment, updated with your decision. See [the checkout assessment object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`manage_policies_required`](https://provenanceauth.com/docs/platform/errors.md#manage_policies_required)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`review_already_decided`](https://provenanceauth.com/docs/platform/errors.md#review_already_decided)
- [`review_not_open`](https://provenanceauth.com/docs/platform/errors.md#review_not_open)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -X POST "$PROVENANCE_API/v1/authorize/checkout_assessments/cas_01M7JD3RF2X8N4PQ6T0VZKWG8M/review" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "decision": "approve",
    "note": "Called the customer; the new address is theirs."
  }'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments/cas_01M7JD3RF2X8N4PQ6T0VZKWG8M/review`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "decision": "approve",
    "note": "Called the customer; the new address is theirs."
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/authorize/checkout_assessments/cas_01M7JD3RF2X8N4PQ6T0VZKWG8M/review", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "decision": "approve",
    "note": "Called the customer; the new address is theirs."
}).json()
```

### Response 200

```json
{
  "object": "checkout_assessment",
  "id": "cas_01M7JD3RF2X8N4PQ6T0VZKWG8M",
  "outcome": "allow",
  "reason": "review_approved",
  "policy": {
    "id": "pol_AC2A5612965B31B91188589F91",
    "version": 3,
    "rule": {
      "id": "rul_default_location_differs",
      "name": "Location doesn't match billing",
      "phase": "after_approval",
      "action": "review",
      "conditions": [
        {
          "fact": "approval.location",
          "op": "in",
          "value": [
            "differs",
            "unavailable"
          ],
          "actual": "differs"
        }
      ]
    }
  },
  "signature": {
    "method": "none",
    "valid": null,
    "key_id": null,
    "directory": null,
    "agent_id": null,
    "covers": [],
    "platform": null
  },
  "authority": {
    "kind": "none"
  },
  "binding_hash": "8261f1db5b0f6d1f3a2c9e0b7d4a5c6e8f9a0b1c2d3e4f5a6b7c8d9e0fbd158fc",
  "origin": "https://quillstack.example",
  "order_id": "ord_8817",
  "covered": "none",
  "signals": {
    "covered": "none",
    "coverage_reason": "no_token",
    "confirmed": "none",
    "presented": "none",
    "agent": {
      "verified": false,
      "class": "unknown"
    }
  },
  "bot": {
    "likelihood": null,
    "band": "unclassified",
    "reason": "not_checked",
    "signals": []
  },
  "approval_context": {
    "object": "approval_context",
    "id": "apc_01M7JD3T8Q2W5Y7B9C1E3G5J7K",
    "subject": {
      "type": "checkout_approval",
      "id": "coap_01M7JD3RFRNGQ5742W9ZZKWG8M"
    },
    "decision": "approved",
    "decided_at": "2026-11-16T14:47:01.902Z",
    "method": {
      "kind": "passkey",
      "authenticator": "platform_passkey",
      "user_verified": true,
      "step_up": null
    },
    "passkey": {
      "status": "existing",
      "age": {
        "days": 41,
        "minutes": 312
      },
      "created_during_approval": false,
      "synced": true,
      "provider": "iCloud Keychain",
      "provider_attested": false
    },
    "device": {
      "os": "ios",
      "os_version": "26.1",
      "browser": "safari",
      "source": "user_agent",
      "verified": false,
      "time_zone": {
        "name": "America/Chicago",
        "utc_offset_minutes": -360,
        "source": "browser",
        "verified": false
      },
      "locale": "en-US"
    },
    "network": {
      "country": "US",
      "region": "US-TX",
      "city": null,
      "city_status": "not_enabled",
      "flags": {
        "vpn": false,
        "proxy": false,
        "hosting_provider": false,
        "tor": false,
        "private_relay": false
      },
      "source": "ip_intel",
      "ip": null
    },
    "location_match": "matches_billing",
    "location_match_basis": [
      "network_region",
      "time_zone"
    ],
    "browser_details": null,
    "billing": {
      "line1": "18 Harrow Lane",
      "line2": null,
      "city": "Portland",
      "region": "US-OR",
      "postal_code": "97205",
      "country": "US",
      "source": "merchant"
    },
    "person": {
      "pseudonym": "hum_6f1c2a9e0b7d4c3a8e5f",
      "link": "not_applicable"
    },
    "external": null,
    "unavailable": {}
  },
  "challenge": null,
  "checkout_approval_id": "coap_01M7JD3RFRNGQ5742W9ZZKWG8M",
  "decision_id": "dec_01M7JD3RF2Z0A7C5E3G1J9L7N5",
  "traffic_assessment_id": null,
  "created_at": "2026-11-16T14:45:22.552Z",
  "updated_at": "2026-11-16T15:20:41.008Z"
}
```

## Report an order's outcome

`POST /v1/authorize/checkout_assessments/{id}/outcome`

Records what happened to the order after its decision: a chargeback, fraud, refund abuse, or that it was legitimate. Rule suggestions learn from these labels. The latest report wins; every report is kept. Free. Needs the `authorize` scope or Manage policies; another account's order is `404`. See [rule suggestions](https://provenanceauth.com/docs/authorize/guides/rule-suggestions.md).

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The checkout assessment's ID (`cas_`). |
| `outcome` | body | enum | yes | What happened to the order. One of `chargeback`, `fraud`, `refund_abuse`, `legitimate`. |
| `note` | body | string | no | A note for your team. Leave out customer details. |

### Returns

The recorded outcome.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`manage_policies_required`](https://provenanceauth.com/docs/platform/errors.md#manage_policies_required)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/checkout_assessments" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cart": {
      "order_id": "ord_8813",
      "total": 3800,
      "currency": "USD",
      "merchant_id": "harborbean",
      "origin": "https://harborbean.example",
      "items": [
        {
          "sku": "mug-sage",
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900
        }
      ]
    }
  }' > step.json
export ASSESSMENT_ID=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/checkout_assessments/$ASSESSMENT_ID/outcome" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "outcome": "chargeback", "note": "Card holder disputed the charge" }'
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "cart": {
      "order_id": "ord_8813",
      "total": 3800,
      "currency": "USD",
      "merchant_id": "harborbean",
      "origin": "https://harborbean.example",
      "items": [
        {
          "sku": "mug-sage",
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900
        }
      ]
    }
  }),
})).json();
const assessmentId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments/${assessmentId}/outcome`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({ "outcome": "chargeback", "note": "Card holder disputed the charge" }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/checkout_assessments", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "cart": {
        "order_id": "ord_8813",
        "total": 3800,
        "currency": "USD",
        "merchant_id": "harborbean",
        "origin": "https://harborbean.example",
        "items": [
            {
                "sku": "mug-sage",
                "name": "Stoneware mug",
                "quantity": 2,
                "unit_amount": 1900
            }
        ]
    }
}).json()
assessment_id = step1["id"]
data = httpx.post(f"{api}/v1/authorize/checkout_assessments/{assessment_id}/outcome", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "outcome": "chargeback",
    "note": "Card holder disputed the charge"
}).json()
```

### Response 201

```json
{
  "object": "order_outcome",
  "id": "oot_01M81CTCDQBNWXPVSK9T5C7SG6",
  "assessment_id": "cas_01M81CTCDNA4K8YYRSRJ6AS7CR",
  "store_order_id": null,
  "outcome": "chargeback",
  "kind": "disputed",
  "source": "api",
  "note": "Card holder disputed the charge",
  "reported_at": "2026-11-22T10:28:51.767Z"
}
```

## Report one outcome on several orders

`POST /v1/authorize/order_outcome_batches`

Reports the same outcome on up to 100 orders: checkout assessments (`cas_`) and store orders (`sto_`) together. Each ID answers on its own. Like the single routes, it corrects how an order ended for your rule suggestions and changes nothing about the order. Free. Needs the `authorize` scope or Manage policies.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `outcome` | body | enum | yes | What happened to each order. One of `chargeback`, `fraud`, `refund_abuse`, `legitimate`. |
| `ids` | body | array of strings | yes | Checkout assessment IDs (`cas_`) and store order IDs (`sto_`). |
| `note` | body | string | no | A note for your team, kept with each report. Leave out customer details. |

### Returns

One answer per ID.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`manage_policies_required`](https://provenanceauth.com/docs/platform/errors.md#manage_policies_required)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/checkout_assessments" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cart": {
      "order_id": "ord_8813",
      "total": 3800,
      "currency": "USD",
      "merchant_id": "harborbean",
      "origin": "https://harborbean.example",
      "items": [
        {
          "sku": "mug-sage",
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900
        }
      ]
    }
  }' > step.json
export ASSESSMENT_ID=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/order_outcome_batches" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d "{ \"outcome\": \"fraud\", \"ids\": [\"$ASSESSMENT_ID\"] }"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "cart": {
      "order_id": "ord_8813",
      "total": 3800,
      "currency": "USD",
      "merchant_id": "harborbean",
      "origin": "https://harborbean.example",
      "items": [
        {
          "sku": "mug-sage",
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900
        }
      ]
    }
  }),
})).json();
const assessmentId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/order_outcome_batches`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({ "outcome": "fraud", "ids": [assessmentId] }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/checkout_assessments", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "cart": {
        "order_id": "ord_8813",
        "total": 3800,
        "currency": "USD",
        "merchant_id": "harborbean",
        "origin": "https://harborbean.example",
        "items": [
            {
                "sku": "mug-sage",
                "name": "Stoneware mug",
                "quantity": 2,
                "unit_amount": 1900
            }
        ]
    }
}).json()
assessment_id = step1["id"]
data = httpx.post(f"{api}/v1/authorize/order_outcome_batches", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "outcome": "fraud",
    "ids": [
        assessment_id
    ]
}).json()
```

### Response 200

```json
{
  "object": "order_outcome_batch",
  "succeeded": 1,
  "failed": 0,
  "results": [
    {
      "id": "cas_01M83YKJW4K1HHM0B6E6G4YFKK",
      "status": "ok",
      "order_outcome_id": "oot_01M83YKJW6ET3RFKQW7Q6JKMNY",
      "outcome": "fraud"
    }
  ]
}
```

## Decide several orders held for review

`POST /v1/authorize/checkout_review_batches`

Approves or rejects up to 100 orders your after-approval rules held for review. Each ID answers on its own: an order that has left review fails with `review_not_open` or `review_already_decided` and the rest are decided. The permission is the single route's: the `authorize` scope, or a console session with Manage policies. A decision can't be undone.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `decision` | body | enum | yes | The decision for each order. One of `approve`, `reject`. |
| `ids` | body | array of strings | yes | The checkout assessments' IDs (`cas_`). |
| `note` | body | string | no | A note for your own records, kept with each review. |

### Returns

One answer per ID.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`manage_policies_required`](https://provenanceauth.com/docs/platform/errors.md#manage_policies_required)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -X POST "$PROVENANCE_API/v1/authorize/checkout_review_batches" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "decision": "approve", "ids": ["cas_01M7JD3RF2X8N4PQ6T0VZKWG8M"] }'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_review_batches`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({ "decision": "approve", "ids": ["cas_01M7JD3RF2X8N4PQ6T0VZKWG8M"] }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/authorize/checkout_review_batches", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "decision": "approve",
    "ids": [
        "cas_01M7JD3RF2X8N4PQ6T0VZKWG8M"
    ]
}).json()
```

### Response 200

```json
{
  "object": "checkout_review_batch",
  "succeeded": 1,
  "failed": 1,
  "results": [
    {
      "id": "cas_01M7JD3RF2X8N4PQ6T0VZKWG8M",
      "status": "ok",
      "outcome": "allow",
      "reason": "review_approved"
    },
    {
      "id": "cas_01M7JD3RF9K2M5QW8T1VZKWH3N",
      "status": "failed",
      "error": {
        "type": "invalid_request_error",
        "code": "review_not_open",
        "message": "This order is pending, not in review."
      }
    }
  ]
}
```
