# UCP

Ask for the shopper's approval on Universal Commerce Protocol checkouts: the approval Action, the fallback, and completions verified against your own checkout.

Related guide: [UCP checkouts](https://provenanceauth.com/docs/authorize/guides/ucp.md)

## Endpoints

- `GET /v1/authorize/ucp_assessments/{id}`: [Get a UCP assessment](#get-v1-authorize-ucp-assessments-id)
- `GET /v1/authorize/ucp_completions/{id}`: [Get a UCP completion](#get-v1-authorize-ucp-completions-id)
- `GET /v1/authorize/settings/ucp`: [Get your UCP settings](#get-v1-authorize-settings-ucp)
- `GET /v1/public/businesses/{business}/ucp`: [Retrieve a hosted UCP profile](#get-v1-public-businesses-business-ucp)
- `PUT /v1/authorize/settings/ucp`: [Update your UCP settings](#put-v1-authorize-settings-ucp)
- `POST /v1/authorize/ucp_assessments`: [Assess a UCP checkout](#post-v1-authorize-ucp-assessments)
- `POST /v1/authorize/ucp_completions`: [Check a UCP completion](#post-v1-authorize-ucp-completions)

## The ucp assessment object

### Attributes

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | enum | yes | Always `ucp_assessment`. One of `ucp_assessment`. |
| `id` | string | yes | The UCP session's ID (`ucpa_`). |
| `checkout_id` | string | yes | Your UCP checkout's `id`. |
| `checkout_hash` | string | yes | The hash of the checkout state this session is for. |
| `negotiated` | object | yes | What the platform negotiated. |
| `negotiated.approval_action` | boolean | yes | The approval Action was negotiated and the extension is on. |
| `negotiated.ap2_mandate` | boolean | yes | The AP2 mandate extension was negotiated. |
| `assessment` | object \| any \| null | yes | The checkout assessment behind this session (`cas_`), with `ucp`. |
| `assessment.object` | enum | no | Always `checkout_assessment`. One of `checkout_assessment`. |
| `assessment.id` | string | no | The assessment's ID (`cas_…`). |
| `assessment.outcome` | enum | no | `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`. |
| `assessment.reason` | string | no | 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). |
| `assessment.policy` | object \| null | no | 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. |
| `assessment.policy.id` | string \| null | yes | The product's policy (`pol_…`), one per account and product, the same on every version. |
| `assessment.policy.version` | integer \| null | yes | The version that decided: null on the built-in default rules, 0 when a simulation runs a draft. |
| `assessment.policy.rule` | object | yes | The rule, and what it compared. |
| `assessment.policy.rule.id` | string | yes | The rule's ID (`rul_…`, or `rul_default_…` for a default row), kept across versions. |
| `assessment.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. |
| `assessment.policy.rule.name` | string \| null | yes | The rule's name in the builder, when it has one. |
| `assessment.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`. |
| `assessment.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`. |
| `assessment.policy.rule.conditions` | array of objects | yes | Each condition of the rule, with the value compared. |
| `assessment.policy.rule.conditions.fact` | string | yes | The fact (`order.amount`, `approval.location`, `class`, …). |
| `assessment.policy.rule.conditions.op` | string | yes | The operator. |
| `assessment.policy.rule.conditions.value` | any | yes | The value the condition compares with. |
| `assessment.policy.rule.conditions.actual` | any | yes | The value the engine compared; null when the fact was absent. |
| `assessment.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. |
| `assessment.policy.rule.conditions.metric` | string | no | A velocity condition's counter (`verify_count`, `amount_sum`). |
| `assessment.policy.rule.conditions.window` | string | no | A velocity condition's window. |
| `assessment.policy.rule.conditions.per` | string | no | A velocity condition's subject. |
| `assessment.policy.rule.conditions.set` | string | no | A canary or prediction condition's family or probe. |
| `assessment.policy.rule.conditions.baseline` | string | no | A relative canary condition's baseline. |
| `assessment.policy.rule.conditions.path` | string | no | A field condition's path in the request. |
| `assessment.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`. |
| `assessment.policy.trace.rounds` | integer | no | Rounds of fact resolution the decision took. |
| `assessment.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). |
| `assessment.policy.trace.skipped` | object | no | Facts the decision never had to read, by cost tier (`tier_3: 1`). |
| `assessment.policy.trace.truncated` | boolean | no | The path was longer than the bounds. |
| `assessment.policy.unavailable` | array of objects | no | The facts the decision found unavailable, and why. Present only when there were some. |
| `assessment.policy.unavailable.fact` | string | yes | The fact. |
| `assessment.policy.unavailable.reason` | string | yes | Why: `timeout`, `error`, `unconfigured`, `deadline` and the rest. |
| `assessment.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. |
| `assessment.policies.id` | string \| null | yes | The product's policy (`pol_…`), one per account and product, the same on every version. |
| `assessment.policies.version` | integer \| null | yes | The version that decided: null on the built-in default rules, 0 when a simulation runs a draft. |
| `assessment.policies.rule` | object | yes | The rule, and what it compared. |
| `assessment.policies.rule.id` | string | yes | The rule's ID (`rul_…`, or `rul_default_…` for a default row), kept across versions. |
| `assessment.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. |
| `assessment.policies.rule.name` | string \| null | yes | The rule's name in the builder, when it has one. |
| `assessment.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`. |
| `assessment.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`. |
| `assessment.policies.rule.conditions` | array of objects | yes | Each condition of the rule, with the value compared. |
| `assessment.policies.rule.conditions.fact` | string | yes | The fact (`order.amount`, `approval.location`, `class`, …). |
| `assessment.policies.rule.conditions.op` | string | yes | The operator. |
| `assessment.policies.rule.conditions.value` | any | yes | The value the condition compares with. |
| `assessment.policies.rule.conditions.actual` | any | yes | The value the engine compared; null when the fact was absent. |
| `assessment.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. |
| `assessment.policies.rule.conditions.metric` | string | no | A velocity condition's counter (`verify_count`, `amount_sum`). |
| `assessment.policies.rule.conditions.window` | string | no | A velocity condition's window. |
| `assessment.policies.rule.conditions.per` | string | no | A velocity condition's subject. |
| `assessment.policies.rule.conditions.set` | string | no | A canary or prediction condition's family or probe. |
| `assessment.policies.rule.conditions.baseline` | string | no | A relative canary condition's baseline. |
| `assessment.policies.rule.conditions.path` | string | no | A field condition's path in the request. |
| `assessment.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`. |
| `assessment.policies.trace.rounds` | integer | no | Rounds of fact resolution the decision took. |
| `assessment.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). |
| `assessment.policies.trace.skipped` | object | no | Facts the decision never had to read, by cost tier (`tier_3: 1`). |
| `assessment.policies.trace.truncated` | boolean | no | The path was longer than the bounds. |
| `assessment.policies.unavailable` | array of objects | no | The facts the decision found unavailable, and why. Present only when there were some. |
| `assessment.policies.unavailable.fact` | string | yes | The fact. |
| `assessment.policies.unavailable.reason` | string | yes | Why: `timeout`, `error`, `unconfigured`, `deadline` and the rest. |
| `assessment.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. |
| `assessment.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`. |
| `assessment.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`). |
| `assessment.signature.key_id` | string \| null | no | The signature's `keyid` (the key's JWK thumbprint). |
| `assessment.signature.directory` | string \| null | no | Where the key was found: the `Signature-Agent` directory URL, or `provenance_registry` for a key registered with Provenance. |
| `assessment.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. |
| `assessment.signature.platform` | object \| any \| null | no | Checkout assessments only: the agent platform Identify named for the checkout (`signed` or `declared`), or null. |
| `assessment.signature.platform.name` | enum | no | The platform's catalog name. One of `openai`, `anthropic`, `google`, `microsoft`, `apple`, `perplexity`, `meta`, `common_crawl`. |
| `assessment.signature.platform.label` | string | no | The platform's display name (`OpenAI`). |
| `assessment.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`. |
| `assessment.signature.covers` | array of strings | no | The covered components, by name (`@authority`, `@method`, `@path`, `signature-agent`, `content-digest`). Empty when nothing was signed. |
| `assessment.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. |
| `assessment.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`. |
| `assessment.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`. |
| `assessment.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`. |
| `assessment.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`, …). |
| `assessment.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. |
| `assessment.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`. |
| `assessment.authority.verified` | boolean | no | True when the token verified (ES256 against Provenance's published keys). |
| `assessment.authority.verified_against` | enum | no | What it was verified against: Provenance's published keys. One of `provenance_jwks`. |
| `assessment.authority.alg` | enum | no | The token's signing algorithm. One of `ES256`. |
| `assessment.authority.key_id` | string \| null | no | The `kid` of the key that signed the token. |
| `assessment.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`). |
| `assessment.authority.mandate_id` | string \| null | no | The mandate the token was issued under, or the grant itself; null for a token with no mandate. |
| `assessment.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). |
| `assessment.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. |
| `assessment.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`. |
| `assessment.authority.protocol` | enum | no | On `third_party_mandate`: the mandate's protocol. One of `ap2`, `acp`. |
| `assessment.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`. |
| `assessment.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). |
| `assessment.binding_hash` | string | no | The cart's canonical binding hash (what a token's `payload_hash` must equal). |
| `assessment.origin` | string | no | The cart's origin. |
| `assessment.order_id` | string | no | The cart's order ID. |
| `assessment.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). |
| `assessment.contact.name` | string | no | The shopper's name you sent (`Maya Chen`). |
| `assessment.covered` | enum | no | What covered the cart, if anything. One of `token`, `mandate`, `third_party_mandate`, `reused`, `none`. |
| `assessment.signals` | object | no | The signals your rules saw (present only when known). |
| `assessment.signals.covered` | string | no | Same as `covered`. |
| `assessment.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`. |
| `assessment.signals.confirmed` | string | no | `approval` (a person approved this order), `grant` (a standing grant) or `none` (a rule alone allowed it). |
| `assessment.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`. |
| `assessment.signals.token_age_seconds` | integer | no | Seconds since the token was minted. |
| `assessment.signals.agent` | object | no | What Identify says about the agent, when it ran. The bot score and the named signals are in `bot`. |
| `assessment.signals.agent.verified` | boolean | no | The agent's signature verified. |
| `assessment.signals.agent.class` | string | no | Identify's class, or `unknown` when it didn't run. |
| `assessment.signals.agent.id` | string | no | The registered agent's ID. |
| `assessment.signals.agent.mandate_depth` | integer | no | How many hand-offs below the person's grant the agent is. |
| `assessment.signals.agent.run_present` | boolean | no | The token belongs to an agent-team run. |
| `assessment.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. |
| `assessment.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`. |
| `assessment.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. |
| `assessment.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. |
| `assessment.signals.merchant` | object | no | The merchant facts you sent, labelled `source: "merchant"`. |
| `assessment.signals.billing` | object | no | The billing address you sent, coarse fields only (the full address is `approval_context.billing` once the person decides). |
| `assessment.signals.billing.country` | string | yes | ISO 3166-1 alpha-2. |
| `assessment.signals.billing.region` | string \| null | yes | ISO 3166-2 (`US-OR`); null when no region was sent or it isn't one we map. |
| `assessment.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. |
| `assessment.signals.billing.source` | enum | yes | Always `merchant`: your store attested it. One of `merchant`. |
| `assessment.signals.billing.unavailable` | object | no | On an assessment: why a part has no rule fact (`region: region_unrecognized`). |
| `assessment.signals.billing.unavailable.region` | enum | no | The region couldn't be mapped to ISO 3166-2. One of `region_unrecognized`. |
| `assessment.shadow` | object | no | Your shadow checkout policy's verdict, when one is set. It never changes the outcome. |
| `assessment.shadow.outcome` | string | no | The outcome the shadow would have given. |
| `assessment.shadow.reason` | string | no | Its reason. |
| `assessment.shadow.rule_id` | string \| null | no | The shadow rule that decided. |
| `assessment.shadow.policy_version` | integer | no | The shadow version. |
| `assessment.challenge` | object \| null | no | 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. |
| `assessment.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`. |
| `assessment.challenge.sent_to` | string \| null | yes | The masked contact the first message went to (`•••• 4821`, `j•••@example.com`); null for the relay. |
| `assessment.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`. |
| `assessment.challenge.expires_at` | timestamp \| null | yes | When the link stops working, or (in review) when the review times out. |
| `assessment.challenge.approve_url` | string | no | Create response only: the public page the person approves on (the agent relays it). |
| `assessment.challenge.status_url` | string | no | Create response only: where the agent polls for the cart-bound token. |
| `assessment.challenge.reused` | boolean | no | Create response only: it joined an open request for the same cart (asked once). |
| `assessment.challenge.deduped` | boolean | no | Create response only: your customer already has a pending link for this store. |
| `assessment.challenge.delivery_hint` | string | no | Create response only: where the link went, without the contact ("the phone ending 42"). |
| `assessment.approval_context` | object \| any \| null | no | 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. |
| `assessment.approval_context.object` | enum | no | The type of object. One of `approval_context`. |
| `assessment.approval_context.id` | string | no | Unique identifier for the object (`apc_…`). |
| `assessment.approval_context.subject` | object | no | What the person decided. |
| `assessment.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`. |
| `assessment.approval_context.subject.id` | string | yes | Its id (an intent token is its `jti`; a captured item is `capr_…:<index>`). |
| `assessment.approval_context.decision` | enum | no | The person's own answer; `captured` for a capture. One of `approved`, `declined`, `captured`. |
| `assessment.approval_context.decided_at` | timestamp | no | When the person decided. |
| `assessment.approval_context.method` | object | no | How the person decided. |
| `assessment.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`. |
| `assessment.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`. |
| `assessment.approval_context.method.user_verified` | boolean | yes | True when the assertion's user-verification flag was set (face, fingerprint or the screen lock). |
| `assessment.approval_context.method.step_up` | object \| null | yes | What confirmed the customer contact for a new passkey under `step_up_contact`, when it applied. |
| `assessment.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`. |
| `assessment.approval_context.method.step_up.channel` | enum | no | Where the code went, or which message carried the link. One of `sms`, `email`. |
| `assessment.approval_context.method.step_up.verified_at` | timestamp | no | When the code matched, or when the passkey approved through that link. |
| `assessment.approval_context.passkey` | object \| null | no | The passkey that decided; null for any other method. |
| `assessment.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`. |
| `assessment.approval_context.passkey.age` | object | no | Its age at the decision: whole days, and the minutes past them. |
| `assessment.approval_context.passkey.age.days` | integer | no | Whole days. |
| `assessment.approval_context.passkey.age.minutes` | integer | no | Minutes past the whole days. |
| `assessment.approval_context.passkey.created_during_approval` | boolean | no | Set up on this approval's page. |
| `assessment.approval_context.passkey.synced` | boolean \| null | no | A synced (backed-up) passkey; null when the authenticator didn't say. |
| `assessment.approval_context.passkey.provider` | string \| null | no | The provider its AAGUID names (the authenticator's own claim); null when unknown. |
| `assessment.approval_context.passkey.provider_attested` | enum | no | Always false: the provider is the authenticator's own claim. One of `false`. |
| `assessment.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). |
| `assessment.approval_context.device.os` | string \| null | no | `ios`, `ipados`, `android`, `macos`, `windows`, `linux` or `other`. |
| `assessment.approval_context.device.os_version` | string \| null | no | The OS version, for phones (desktop browsers freeze theirs). |
| `assessment.approval_context.device.browser` | string \| null | no | `safari`, `chrome`, `edge`, `firefox`, `samsung` or `other`; null in an app. |
| `assessment.approval_context.device.source` | enum | no | Where the device facts came from. One of `user_agent`, `app_attestation`. |
| `assessment.approval_context.device.verified` | boolean | no | True only when the server verified the device's attestation. |
| `assessment.approval_context.device.time_zone` | object \| null | no | The device's time zone, as reported (never verified). |
| `assessment.approval_context.device.time_zone.name` | string | no | IANA name (`America/Los_Angeles`). |
| `assessment.approval_context.device.time_zone.utc_offset_minutes` | integer | no | Its offset at the decision. |
| `assessment.approval_context.device.time_zone.source` | enum | no | Who reported it. One of `browser`, `app`. |
| `assessment.approval_context.device.time_zone.verified` | enum | no | Always false. One of `false`. |
| `assessment.approval_context.device.locale` | string \| null | no | The language tag (`en-US`). |
| `assessment.approval_context.network` | object \| null | no | The connection the decision came from: a provider's estimate of its place, and its flags. |
| `assessment.approval_context.network.country` | string \| null | no | ISO 3166-1 alpha-2. |
| `assessment.approval_context.network.region` | string \| null | no | ISO 3166-2 (`US-OR`). |
| `assessment.approval_context.network.city` | string \| null | no | The city, only while the network city switch is on. |
| `assessment.approval_context.network.city_status` | enum | no | Whether the city switch is on. One of `enabled`, `not_enabled`. |
| `assessment.approval_context.network.flags` | object | no | What the published lists and the IP lookup say about the network. |
| `assessment.approval_context.network.flags.vpn` | boolean | no | A VPN service. |
| `assessment.approval_context.network.flags.proxy` | boolean | no | A proxy. |
| `assessment.approval_context.network.flags.hosting_provider` | boolean | no | A cloud or hosting provider's range. |
| `assessment.approval_context.network.flags.tor` | boolean | no | A Tor exit. |
| `assessment.approval_context.network.flags.private_relay` | boolean | no | iCloud Private Relay (a privacy feature, never counted as a VPN). |
| `assessment.approval_context.network.asn` | integer \| null | no | The network's AS number, from the IP lookup provider; null without one. |
| `assessment.approval_context.network.source` | enum | no | Where the place and flags came from. One of `published_lists`, `ip_intel`. |
| `assessment.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. |
| `assessment.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`. |
| `assessment.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. |
| `assessment.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. |
| `assessment.approval_context.browser_details.screen_width` | integer \| null | yes | The screen's width in CSS pixels (`screen.width`). |
| `assessment.approval_context.browser_details.screen_height` | integer \| null | yes | The screen's height in CSS pixels (`screen.height`). |
| `assessment.approval_context.browser_details.color_depth` | enum | yes | Bits per pixel (`screen.colorDepth`). One of `1`, `4`, `8`, `15`, `16`, `24`, `30`, `32`, `48`. |
| `assessment.approval_context.browser_details.language` | string \| null | yes | The browser's language (`navigator.language`). |
| `assessment.approval_context.browser_details.java_enabled` | boolean \| null | yes | Whether Java is enabled (`navigator.javaEnabled()`). |
| `assessment.approval_context.browser_details.javascript_enabled` | boolean \| null | yes | Whether JavaScript ran (true when the page sent the block). |
| `assessment.approval_context.browser_details.utc_offset_minutes` | integer \| null | yes | Local time minus UTC, in minutes. |
| `assessment.approval_context.browser_details.user_agent` | string \| null | yes | The request's `User-Agent` header (at most 2,048 characters). |
| `assessment.approval_context.browser_details.accept_header` | string \| null | yes | The request's `Accept` header (at most 2,048 characters). |
| `assessment.approval_context.browser_details.source` | enum | yes | Where the fields came from. One of `browser`. |
| `assessment.approval_context.browser_details.verified` | enum | yes | Always false: as the browser reported them. One of `false`. |
| `assessment.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. |
| `assessment.approval_context.billing.line1` | string \| null | yes | The street line. |
| `assessment.approval_context.billing.line2` | string \| null | yes | The second line. |
| `assessment.approval_context.billing.city` | string \| null | yes | The city. |
| `assessment.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. |
| `assessment.approval_context.billing.postal_code` | string \| null | yes | The postal code as you sent it. |
| `assessment.approval_context.billing.country` | string | yes | ISO 3166-1 alpha-2. |
| `assessment.approval_context.billing.source` | enum | yes | Always `merchant`: your store attested it. One of `merchant`. |
| `assessment.approval_context.person` | object | no | Who decided, as far as Provenance can say without identifying them. |
| `assessment.approval_context.person.pseudonym` | string \| null | no | A per-store pseudonym for the passkey, on cart approvals. |
| `assessment.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`. |
| `assessment.approval_context.external` | object \| null | no | With `method.kind: external`: the confirmation given outside Provenance. |
| `assessment.approval_context.external.kind` | enum | no | The kind of outside confirmation. One of `ap2_user_mandate`, `spc`, `platform`. |
| `assessment.approval_context.external.issuer` | string \| null | no | Who issued it. |
| `assessment.approval_context.external.evidence_hash` | string \| null | no | The hash of the evidence verified. |
| `assessment.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`). |
| `assessment.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. |
| `assessment.receipt.object` | enum | yes | The type of object. One of `receipt`. |
| `assessment.receipt.id` | string | yes | The receipt's ID (`rcpt_`), the same as `claims.receipt_id`. |
| `assessment.receipt.claims` | object | yes | The signed claims, decoded from `token`. |
| `assessment.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). |
| `assessment.receipt.claims.reused.source` | enum | yes | Who asked first. One of `intent_token`, `agent`, `store`, `network`, `routed`. |
| `assessment.receipt.claims.confirmed_via` | object | no | Present only when the person confirmed outside Provenance (`decided_via` is then `external`). |
| `assessment.receipt.claims.confirmed_via.kind` | enum | yes | The kind of confirmation. One of `ap2_user_mandate`, `spc`, `platform`. |
| `assessment.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. |
| `assessment.receipt.claims.confirmed_via.evidence_hash` | string | yes | The SHA-256 of the evidence (the evidence itself isn't kept). |
| `assessment.receipt.claims.decided_via` | enum | no | Present only with `confirmed_via`. One of `external`. |
| `assessment.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`. |
| `assessment.receipt.claims.auto_approval` | object | no | Present only when an `auto_approve` clause gave the approval. |
| `assessment.receipt.claims.auto_approval.rule_id` | string | no | The rule the clause sits on. |
| `assessment.receipt.claims.auto_approval.clause_id` | string | no | The clause's ID. |
| `assessment.receipt.claims.auto_approval.label` | string | no | The clause's label. |
| `assessment.receipt.claims.auto_approval.policy_version` | integer \| null | no | The policy version. |
| `assessment.receipt.claims.auto_approval.decided_via` | enum | no | Always `rule`. One of `rule`. |
| `assessment.receipt.claims.auto_approval.message` | string | no | "Approved automatically by your rule '…'". |
| `assessment.receipt.claims.receipt_id` | string | no | The receipt's ID. |
| `assessment.receipt.claims.decision_id` | string | no | The decision's ID. |
| `assessment.receipt.claims.kind` | string | no | What was decided: `authorize`, `verify` or `order`. |
| `assessment.receipt.claims.jti` | string \| null | no | The intent token's ID. |
| `assessment.receipt.claims.agent_session_id` | string \| null | no | The agent session the token was minted for. |
| `assessment.receipt.claims.agent_id` | string \| null | no | The registered agent's ID. |
| `assessment.receipt.claims.approver_id` | string \| null | no | The network approver who decided. |
| `assessment.receipt.claims.device_id` | string \| null | no | The approving device's ID. |
| `assessment.receipt.claims.result` | enum | no | The result. One of `valid`, `denied`, `pending`. |
| `assessment.receipt.claims.reason` | string \| null | no | The reason given or recorded. |
| `assessment.receipt.claims.matched_rule_id` | string \| null | no | The policy rule that decided it. |
| `assessment.receipt.claims.policy_version` | integer \| null | no | The policy version that decided it; null for the default. |
| `assessment.receipt.claims.mandate_id` | string \| null | no | The mandate's ID. |
| `assessment.receipt.claims.biometric_bound` | boolean | no | Whether a passkey check was verified at authorize. |
| `assessment.receipt.claims.context_hash` | string | no | The hash of the agent's stated context, when one was bound. |
| `assessment.receipt.claims.order_id` | string | no | The clinical order's ID, on order receipts. |
| `assessment.receipt.claims.order_type` | string | no | The order type, on order receipts. |
| `assessment.receipt.claims.prescriber_id` | string | no | The prescriber's ID, on order receipts. |
| `assessment.receipt.claims.prescriber_tier` | string | no | The prescriber's verified tier, on order receipts. |
| `assessment.receipt.claims.trace_id` | string | no | The traced inference's ID, on trace-bound decisions. |
| `assessment.receipt.claims.canary_hash` | string \| null | no | The canary readings' hash, on trace-bound decisions. |
| `assessment.receipt.claims.canary_baseline_id` | string | no | The canary baseline a relative condition used, when one did. |
| `assessment.receipt.claims.deal_id` | string | no | The deal this decision belongs to, on a deal's rows. |
| `assessment.receipt.claims.record_hash` | string | no | The ledger record's hash. |
| `assessment.receipt.claims.prev_hash` | string | no | The previous ledger record's hash. |
| `assessment.receipt.claims.decided_at` | string | no | When it was decided. |
| `assessment.receipt.claims.iss` | string | no | The issuer that signed the receipt. |
| `assessment.receipt.claims.type` | enum | no | The kind of receipt. One of `agreement_completion`. |
| `assessment.receipt.claims.agreement_id` | string | no | The agreement's ID. |
| `assessment.receipt.claims.content_hash` | string | no | The SHA-256 of the agreed content. |
| `assessment.receipt.claims.content_description` | string | no | What the content is. |
| `assessment.receipt.claims.mode` | string | no | `parallel` or `sequential`. |
| `assessment.receipt.claims.status` | string | no | The agreement's status. |
| `assessment.receipt.claims.completed_at` | string \| null | no | When the last party signed. |
| `assessment.receipt.claims.parties` | array of objects | no | Each party's signing evidence. |
| `assessment.receipt.claims.parties.party_id` | string | no | The party's ID. |
| `assessment.receipt.claims.parties.label` | string | no | The party's label. |
| `assessment.receipt.claims.parties.status` | string | no | The party's status. |
| `assessment.receipt.claims.parties.signed_at` | string \| null | no | When the party signed. |
| `assessment.receipt.claims.parties.tier` | string \| null | no | The hardware tier of the device the party signed with. |
| `assessment.receipt.claims.offer_id` | string | no | The seller's offer ID. |
| `assessment.receipt.claims.offer_hash` | string | no | The offer hash the acceptance binds. |
| `assessment.receipt.claims.seller_agent_id` | string | no | The seller agent. |
| `assessment.receipt.claims.buyer_agent_id` | string \| null | no | The buyer agent. |
| `assessment.receipt.claims.buyer_subject` | string | no | The buyer's pairwise subject at this seller. |
| `assessment.receipt.claims.total` | number | no | The offer's total. |
| `assessment.receipt.claims.currency` | string | no | The currency. |
| `assessment.receipt.claims.deadline` | string | no | The delivery deadline. |
| `assessment.receipt.claims.acceptance_jti` | string | no | The acceptance token's jti. |
| `assessment.receipt.claims.accepted_at` | string \| null | no | When it was accepted. |
| `assessment.receipt.claims.buyer_approval` | object \| null | no | How the buyer's person approved (method, tier, approved_at, terms_hash). |
| `assessment.receipt.claims.seller_approval` | object \| null | no | How the seller's person approved (method, approved_at, role). |
| `assessment.receipt.claims.payment` | object \| null | no | The payment reference. |
| `assessment.receipt.claims.delivery` | object \| null | no | The recorded delivery. |
| `assessment.receipt.claims.confirmed_content_hash` | string \| null | no | The hash the buyer confirmed. |
| `assessment.receipt.claims.dispute_id` | string | no | The dispute. |
| `assessment.receipt.claims.tab_id` | string \| null | no | The tab, for a tab dispute. |
| `assessment.receipt.claims.period_day` | string \| null | no | The UTC day of a tab dispute. |
| `assessment.receipt.claims.decider` | enum | no | Who records the outcome. One of `parties`, `rail`, `arbiter`. |
| `assessment.receipt.claims.arbiter_id` | string \| null | no | The named arbiter. |
| `assessment.receipt.claims.opened_at` | string \| null | no | When it opened. |
| `assessment.receipt.claims.outcome` | string \| null | no | The outcome. |
| `assessment.receipt.claims.decided_by` | string \| null | no | Who recorded it. |
| `assessment.receipt.claims.refund` | object \| null | no | The refund reference on the rail (rail, reference, amount, currency). |
| `assessment.receipt.claims.resolved_at` | string \| null | no | When it ended. |
| `assessment.receipt.claims.v` | enum | no | The receipt format version. One of `1`. |
| `assessment.receipt.claims.check_id` | string | no | The check. |
| `assessment.receipt.claims.call_id` | string \| null | no | The registered call that matched. |
| `assessment.receipt.claims.transport` | string | no | How the call was matched. |
| `assessment.receipt.claims.agent` | object \| null | no | The agent that signed the call credential. |
| `assessment.receipt.claims.agent.id` | string | no | The agent's ID. |
| `assessment.receipt.claims.agent.kid` | string | no | The key that signed the credential (its JWK thumbprint). |
| `assessment.receipt.claims.agent.directory` | string | no | Where the key is published. |
| `assessment.receipt.claims.person` | object | no | Who approved, as in the verdict. |
| `assessment.receipt.claims.person.approved` | boolean | no | Whether a person approved the call. |
| `assessment.receipt.claims.person.approved_at` | timestamp \| null | no | When. |
| `assessment.receipt.claims.person.approved_via` | string \| null | no | How. |
| `assessment.receipt.claims.person.pseudonym` | string \| null | no | The person's ID at your business only. |
| `assessment.receipt.claims.purpose` | string \| null | no | The call's purpose. |
| `assessment.receipt.claims.window` | object \| null | no | The call's window. |
| `assessment.receipt.claims.window.from` | timestamp | no | The start. |
| `assessment.receipt.claims.window.until` | timestamp | no | The end. |
| `assessment.receipt.claims.numbers_digest` | string \| null | no | SHA-256 hex of `from\|to\|jti`. Anyone who knows both numbers can recompute it. |
| `assessment.receipt.claims.disclosure` | object \| null | no | The caller's AI-disclosure record. |
| `assessment.receipt.claims.consent` | object \| null | no | The caller's consent record. |
| `assessment.receipt.claims.checked_at` | timestamp | no | When the check ran. |
| `assessment.receipt.token` | string | yes | The receipt as an ES256 JWS. Verify it against the JWKS. |
| `assessment.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. |
| `assessment.checkout_approval_id` | string \| null | no | The cart approval this assessment opened or reused. |
| `assessment.decision_id` | string \| null | no | The assessment's row in your decision ledger (`dec_…`). |
| `assessment.traffic_assessment_id` | string \| null | no | Identify's verdict on the agent's request (`tas_…`), when one ran. |
| `assessment.visit_id` | string | no | The storefront visit you named (`visit_id`), when you sent one. |
| `assessment.payment_reference` | string | no | The payment you named (`payment_reference`), when you sent one. |
| `assessment.payment_signals` | object \| any \| null | no | The payment signals this assessment read from `payment`; null when you named none. |
| `assessment.payment_signals.shared_payment_token` | boolean | no | You named a shared payment token (`payment.shared_payment_token`), checked or not. |
| `assessment.payment_signals.checked` | boolean | no | The token was read on your Stripe account and matched its mode. |
| `assessment.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`. |
| `assessment.payment_signals.agent_profile` | string \| null | no | The agent's Stripe profile (`network_business_profile`), when the token was checked. |
| `assessment.payment_signals.usage_limit` | object \| null | no | The token's usage limit, when the token was checked. |
| `assessment.payment_signals.usage_limit.max_amount` | integer | no | The most it can pay, in minor units. |
| `assessment.payment_signals.usage_limit.currency` | string | no | Lowercase ISO 4217. |
| `assessment.payment_signals.credential_type` | enum | no | The credential type you reported from your own token resolve. One of `agentic_token`, `dpan`, `fpan`. |
| `assessment.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. |
| `assessment.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. |
| `assessment.payment_signals.risk.bot` | number | no | Stripe bot score. |
| `assessment.payment_signals.risk.card_testing` | number | no | Stripe card testing score. |
| `assessment.payment_signals.risk.stolen_card` | number | no | Stripe stolen card score. |
| `assessment.payment_signals.risk.fraudulent_dispute` | number | no | Stripe fraud dispute score. |
| `assessment.payment_signals.risk.card_issuer_decline` | number | no | Stripe bank decline score. |
| `assessment.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. |
| `assessment.ucp.version` | string | yes | The checkout's UCP version (`2026-08-25`). |
| `assessment.ucp.checkout_id` | string | yes | Your UCP checkout's `id`. |
| `assessment.ucp.checkout_hash` | string | yes | The hash of the checkout state (cart, totals, buyer and fulfilment); a changed cart is a new state. |
| `assessment.ucp.transport` | enum | yes | How the platform called your UCP server. One of `rest`, `mcp`, `a2a`. |
| `assessment.ucp.platform` | object | yes | The agent platform that placed the checkout. |
| `assessment.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. |
| `assessment.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`. |
| `assessment.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`. |
| `assessment.ucp.negotiated` | object | yes | What the platform and your server negotiated. |
| `assessment.ucp.negotiated.approval_action` | boolean | yes | `com.provenanceauth.checkout.approval` was negotiated and the extension is on. |
| `assessment.ucp.negotiated.ap2_mandate` | boolean | yes | The AP2 mandate extension was negotiated: completion then requires `ap2.checkout_mandate`. |
| `assessment.ucp.verified` | object | yes | What was verified on the request. |
| `assessment.ucp.verified.intent_signal` | string | yes | The intent token in `signals["com.provenanceauth.intent"]`: `valid`, `absent` or the reason it failed. |
| `assessment.ucp.verified.ap2_checkout_mandate` | string | yes | The AP2 checkout mandate: `accepted`, `absent` or the reason it was refused. |
| `assessment.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`. |
| `assessment.ucp.completed_by` | enum | no | Who finished an escalated checkout on your checkout page, once known. One of `person`, `agent`. |
| `assessment.created_at` | timestamp | no | When the assessment was made. |
| `assessment.updated_at` | timestamp \| null | no | When the person's decision (or your review, or the challenge's expiry) last changed it; null until then. |
| `assessment.amount` | object \| null | no | The total of the cart the assessment bound. On reads (`GET`, the list); null when the cart carried no total. |
| `assessment.amount.total` | integer | yes | The order total in the currency's minor units (cents for USD). |
| `assessment.amount.currency` | string | yes | The ISO 4217 currency, lowercase. |
| `assessment.amount.exponent` | integer | yes | The currency's decimal places (2 for USD, 0 for JPY). |
| `assessment.items` | array of objects | no | The cart's lines as you bound them, at most 50. On reads (`GET`, the list). |
| `assessment.items.name` | string | yes | The line's name. |
| `assessment.items.quantity` | integer | yes | How many. |
| `assessment.items.unit_amount` | integer \| null | yes | The price of one, in minor units. |
| `assessment.items.image_url` | string \| null | yes | The picture you gave for the line, if any. |
| `assessment.ending` | object \| any \| null | no | How the order ended, worked out. On reads (`GET`, the list); null while nothing is known yet. |
| `assessment.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`. |
| `assessment.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`. |
| `assessment.ending.at` | timestamp | no | When it ended this way: the report, the dispute, the refund, the decline, or the end of the 14 days. |
| `ucp` | object | yes | What a Universal Commerce Protocol (UCP) checkout added to the record: the UCP version, the checkout and its hash, the transport, the platform's profile host and request signature, what the platform negotiated, and what was verified. It is also on the checkout assessment (`ucp`), its approval context and its evidence pack. |
| `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`. |
| `approval` | object \| null | yes | The cart approval the rules opened, with its state now; null when none was opened. |
| `approval.id` | string | yes | The cart approval's ID (`coap_`). |
| `approval.status` | string | yes | `pending`, `in_review`, `approved`, `denied` or `expired`. |
| `approval.expires_at` | timestamp | yes | When the approval expires. |
| `action` | object \| null | yes | The Action to add to your checkout's `actions`, under its `key`, while the approval is open. Null otherwise: a resolved Action is removed. |
| `action.key` | enum | yes | The extension's name. One of `com.provenanceauth.checkout.approval`. |
| `action.instance` | object | yes | The Action instance: `id` (`pa_coap_…`, stable while the same approval is open) and `config` (`approve_url`, `status_url`, `checkout_approval_id`, `binding_hash`, `expires_at`, `require`). |
| `action.instance.id` | string | yes | The Action instance's ID. |
| `action.instance.config` | object | yes | The Action's configuration, as UCP carries it. |
| `message` | object \| null | yes | The info message to add to your checkout's `messages` with the Action; null when there is no Action. |
| `message.type` | string | yes | The message type (`info`). |
| `message.code` | string | yes | The message code. |
| `message.content` | string | yes | The text for the shopper. |
| `message.path` | string | no | The JSONPath of the Action the message refers to. |
| `fallback` | enum | yes | When the platform didn't negotiate the Action and the rules asked: `escalate` (see `escalation`) or `hold_after_order` (see `hold`). Null otherwise. One of `escalate`, `hold_after_order`. |
| `escalation` | object | no | With `fallback: escalate`: the members to set on your checkout response. Your checkout page then assesses the order with `ucp_session_id`. |
| `escalation.status` | enum | yes | The checkout status to return. One of `requires_escalation`. |
| `escalation.continue_url` | string | yes | Your checkout page, with `provenance_ucp_session` added to its query. |
| `escalation.messages` | array of objects | yes | The message to add to your checkout's `messages`. |
| `hold` | object | no | With `fallback: hold_after_order` while the approval is open: take the order, and hold it until the approval is approved. |
| `hold.checkout_approval_id` | string | no | The cart approval to wait for. |
| `hold.approve_url` | string | no | Where the shopper approves. |
| `hold.status_url` | string | no | Where the approval's state can be read. |
| `hold.expires_at` | timestamp | no | When the approval expires. |
| `warnings` | array of strings | yes | Problems that didn't fail the call, such as `ucp_platform_profile_unreachable`. |
| `replayed` | enum | no | Present on a repeat: the session is returned as it was. One of `true`. |
| `created_at` | timestamp | yes | When the session was created. |

### Example

```json
{
  "object": "ucp_assessment",
  "id": "ucpa_01M812MAKDAMQZB5X8EMCN7KKM",
  "checkout_id": "chk_saltmarsh_1001",
  "checkout_hash": "ff8d88a1e6ad9d0689066e39c20c563fe73d5db4f135d79ff9d9ba28b72f0bd0",
  "negotiated": {
    "approval_action": true,
    "ap2_mandate": false
  },
  "assessment": {
    "object": "checkout_assessment",
    "id": "cas_01M812MAKBREX1E447GJ2JQ7TW",
    "outcome": "challenge",
    "reason": "policy_rule",
    "policy": {
      "id": "pol_2CBB7D146DDF319A56B1C5C693",
      "version": null,
      "rule": {
        "id": "rul_default_no_mandate_or_approval",
        "name": "No mandate or approval",
        "phase": "assess",
        "action": "challenge",
        "conditions": [
          {
            "fact": "checkout.covered",
            "op": "eq",
            "value": "none",
            "actual": "none"
          }
        ]
      }
    },
    "signature": {
      "method": "none",
      "valid": null,
      "key_id": null,
      "directory": null,
      "agent_id": null,
      "covers": [],
      "platform": null
    },
    "authority": {
      "kind": "none"
    },
    "binding_hash": "05ad489d39a4a8853817bc00490630babfd352f81a754049f00e38b76864ce88",
    "origin": "https://saltmarsh.example",
    "order_id": "chk_saltmarsh_1001",
    "covered": "none",
    "signals": {
      "covered": "none",
      "coverage_reason": "no_token",
      "confirmed": "none",
      "presented": "none",
      "agent": {
        "verified": false,
        "class": "unknown",
        "signals_present": true,
        "signals": [],
        "recent_token_presented": false
      }
    },
    "bot": {
      "likelihood": null,
      "band": "unclassified",
      "reason": "not_checked",
      "signals": []
    },
    "approval_context": null,
    "challenge": null,
    "checkout_approval_id": "coap_01M812MAKCSF5AVJV2RWDX5B0D",
    "decision_id": "mas_01M812MAKCY4HKCYQEN68SQY76",
    "traffic_assessment_id": null,
    "payment_signals": null,
    "ucp": {
      "version": "2026-08-25",
      "checkout_id": "chk_saltmarsh_1001",
      "checkout_hash": "ff8d88a1e6ad9d0689066e39c20c563fe73d5db4f135d79ff9d9ba28b72f0bd0",
      "transport": "rest",
      "platform": {
        "profile_host": "agent.example",
        "signature": "absent"
      },
      "negotiated": {
        "approval_action": true,
        "ap2_mandate": false
      },
      "verified": {
        "intent_signal": "absent",
        "ap2_checkout_mandate": "absent"
      }
    },
    "created_at": "2026-11-22T07:30:47.533Z",
    "updated_at": null
  },
  "ucp": {
    "version": "2026-08-25",
    "checkout_id": "chk_saltmarsh_1001",
    "checkout_hash": "ff8d88a1e6ad9d0689066e39c20c563fe73d5db4f135d79ff9d9ba28b72f0bd0",
    "transport": "rest",
    "platform": {
      "profile_host": "agent.example",
      "signature": "absent"
    },
    "negotiated": {
      "approval_action": true,
      "ap2_mandate": false
    },
    "verified": {
      "intent_signal": "absent",
      "ap2_checkout_mandate": "absent"
    }
  },
  "approval": {
    "id": "coap_01M812MAKCSF5AVJV2RWDX5B0D",
    "status": "pending",
    "expires_at": "2026-11-22T07:45:47.531Z"
  },
  "action": {
    "key": "com.provenanceauth.checkout.approval",
    "instance": {
      "id": "pa_coap_01M812MAKCSF5AVJV2RWDX5B0D",
      "config": {
        "approve_url": "http://localhost:5173/approve/c/nCGEX32YBpxxSDfesYYt6w",
        "status_url": "http://localhost:8080/v1/authorize/checkout_approvals/requests/status?token=nCGEX32YBpxxSDfesYYt6w",
        "checkout_approval_id": "coap_01M812MAKCSF5AVJV2RWDX5B0D",
        "binding_hash": "c39771d8a2166fa95e566101306d89bdfba8f6018f12c839820555925b98a189",
        "expires_at": "2026-11-22T07:45:47.531Z",
        "require": {
          "biometric": true
        }
      }
    }
  },
  "message": {
    "type": "info",
    "code": "com.provenanceauth.approval_requested",
    "content": "The shopper approves this exact order with a passkey before it can be completed.",
    "path": "$.actions['com.provenanceauth.checkout.approval'][0]"
  },
  "fallback": null,
  "warnings": [],
  "replayed": true,
  "created_at": "2026-11-22T07:30:47.534Z"
}
```

## Get a UCP assessment

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

Returns one UCP assessment with its approval's state now. The Action is present only while the approval is open.

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The UCP session's ID (`ucpa_`). |

### Returns

The UCP assessment. See [the ucp 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)
- [`ucp_unconfigured`](https://provenanceauth.com/docs/platform/errors.md#ucp_unconfigured)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/authorize/ucp_assessments" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "checkout": {
      "ucp": {
        "version": "2026-08-25",
        "status": "success",
        "payment_handlers": {}
      },
      "id": "chk_saltmarsh_1002",
      "status": "incomplete",
      "currency": "USD",
      "line_items": [
        {
          "id": "li_1",
          "item": {
            "id": "sku_tide_mug",
            "title": "Tide mug",
            "price": 1800
          },
          "quantity": 2,
          "totals": [
            {
              "type": "subtotal",
              "amount": 3600
            }
          ]
        }
      ],
      "totals": [
        {
          "type": "subtotal",
          "amount": 3600
        },
        {
          "type": "total",
          "amount": 3600
        }
      ],
      "links": []
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh",
    "capabilities": [
      "dev.ucp.shopping.checkout",
      "com.provenanceauth.checkout.approval"
    ]
  }' > step.json
export UCP_SESSION_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/authorize/ucp_assessments/$UCP_SESSION_ID" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/ucp_assessments`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "checkout": {
      "ucp": {
        "version": "2026-08-25",
        "status": "success",
        "payment_handlers": {}
      },
      "id": "chk_saltmarsh_1002",
      "status": "incomplete",
      "currency": "USD",
      "line_items": [
        {
          "id": "li_1",
          "item": {
            "id": "sku_tide_mug",
            "title": "Tide mug",
            "price": 1800
          },
          "quantity": 2,
          "totals": [
            {
              "type": "subtotal",
              "amount": 3600
            }
          ]
        }
      ],
      "totals": [
        {
          "type": "subtotal",
          "amount": 3600
        },
        {
          "type": "total",
          "amount": 3600
        }
      ],
      "links": []
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh",
    "capabilities": [
      "dev.ucp.shopping.checkout",
      "com.provenanceauth.checkout.approval"
    ]
  }),
})).json();
const ucpSessionId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/ucp_assessments/${ucpSessionId}`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/ucp_assessments", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "checkout": {
        "ucp": {
            "version": "2026-08-25",
            "status": "success",
            "payment_handlers": {}
        },
        "id": "chk_saltmarsh_1002",
        "status": "incomplete",
        "currency": "USD",
        "line_items": [
            {
                "id": "li_1",
                "item": {
                    "id": "sku_tide_mug",
                    "title": "Tide mug",
                    "price": 1800
                },
                "quantity": 2,
                "totals": [
                    {
                        "type": "subtotal",
                        "amount": 3600
                    }
                ]
            }
        ],
        "totals": [
            {
                "type": "subtotal",
                "amount": 3600
            },
            {
                "type": "total",
                "amount": 3600
            }
        ],
        "links": []
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh",
    "capabilities": [
        "dev.ucp.shopping.checkout",
        "com.provenanceauth.checkout.approval"
    ]
}).json()
ucp_session_id = step1["id"]
data = httpx.get(f"{api}/v1/authorize/ucp_assessments/{ucp_session_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

```json
{
  "object": "ucp_assessment",
  "id": "ucpa_01M812MJGFWYHS77XHS5R4727H",
  "checkout_id": "chk_saltmarsh_1002",
  "checkout_hash": "476bcb3fb585444774c9a1774179ed9c65d3bfcde0e9ac8a22b6cfbd7d1ca082",
  "negotiated": {
    "approval_action": true,
    "ap2_mandate": false
  },
  "assessment": {
    "object": "checkout_assessment",
    "id": "cas_01M812MJGDGZGN35CW5GJRJ8H9",
    "outcome": "challenge",
    "reason": "policy_rule",
    "policy": {
      "id": "pol_2CBB7D146DDF319A56B1C5C693",
      "version": null,
      "rule": {
        "id": "rul_default_no_mandate_or_approval",
        "name": "No mandate or approval",
        "phase": "assess",
        "action": "challenge",
        "conditions": [
          {
            "fact": "checkout.covered",
            "op": "eq",
            "value": "none",
            "actual": "none"
          }
        ]
      }
    },
    "signature": {
      "method": "none",
      "valid": null,
      "key_id": null,
      "directory": null,
      "agent_id": null,
      "covers": [],
      "platform": null
    },
    "authority": {
      "kind": "none"
    },
    "binding_hash": "463f7985f152ca8b3661b4fea29c6631112a8cab47d68b1471f2085644a48d6e",
    "origin": "https://saltmarsh.example",
    "order_id": "chk_saltmarsh_1002",
    "covered": "none",
    "signals": {
      "covered": "none",
      "coverage_reason": "no_token",
      "confirmed": "none",
      "presented": "none",
      "agent": {
        "verified": false,
        "class": "unknown",
        "signals_present": true,
        "signals": [],
        "recent_token_presented": false
      }
    },
    "bot": {
      "likelihood": null,
      "band": "unclassified",
      "reason": "not_checked",
      "signals": []
    },
    "approval_context": null,
    "challenge": null,
    "checkout_approval_id": "coap_01M812MJGEKHT8T8WJVXMCCR4B",
    "decision_id": "mas_01M812MJGEVJKFFJB23EN9G21T",
    "traffic_assessment_id": null,
    "payment_signals": null,
    "ucp": {
      "version": "2026-08-25",
      "checkout_id": "chk_saltmarsh_1002",
      "checkout_hash": "476bcb3fb585444774c9a1774179ed9c65d3bfcde0e9ac8a22b6cfbd7d1ca082",
      "transport": "rest",
      "platform": {
        "profile_host": null,
        "signature": "absent"
      },
      "negotiated": {
        "approval_action": true,
        "ap2_mandate": false
      },
      "verified": {
        "intent_signal": "absent",
        "ap2_checkout_mandate": "absent"
      }
    },
    "created_at": "2026-11-22T07:30:55.631Z",
    "updated_at": null
  },
  "ucp": {
    "version": "2026-08-25",
    "checkout_id": "chk_saltmarsh_1002",
    "checkout_hash": "476bcb3fb585444774c9a1774179ed9c65d3bfcde0e9ac8a22b6cfbd7d1ca082",
    "transport": "rest",
    "platform": {
      "profile_host": null,
      "signature": "absent"
    },
    "negotiated": {
      "approval_action": true,
      "ap2_mandate": false
    },
    "verified": {
      "intent_signal": "absent",
      "ap2_checkout_mandate": "absent"
    }
  },
  "approval": {
    "id": "coap_01M812MJGEKHT8T8WJVXMCCR4B",
    "status": "pending",
    "expires_at": "2026-11-22T07:45:55.630Z"
  },
  "action": {
    "key": "com.provenanceauth.checkout.approval",
    "instance": {
      "id": "pa_coap_01M812MJGEKHT8T8WJVXMCCR4B",
      "config": {
        "approve_url": "http://localhost:5173/approve/c/qFUpkWOASK4bsCDYrUpRFg",
        "status_url": "http://localhost:8080/v1/authorize/checkout_approvals/requests/status?token=qFUpkWOASK4bsCDYrUpRFg",
        "checkout_approval_id": "coap_01M812MJGEKHT8T8WJVXMCCR4B",
        "binding_hash": "59a2ade9738fce908247aa16da0430f999246bb3b4041ab9375df6345dcae3e1",
        "expires_at": "2026-11-22T07:45:55.630Z",
        "require": {
          "biometric": true
        }
      }
    }
  },
  "message": {
    "type": "info",
    "code": "com.provenanceauth.approval_requested",
    "content": "The shopper approves this exact order with a passkey before it can be completed.",
    "path": "$.actions['com.provenanceauth.checkout.approval'][0]"
  },
  "fallback": null,
  "warnings": [],
  "created_at": "2026-11-22T07:30:55.631Z"
}
```

## Get a UCP completion

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

Returns one recorded completion check, with its verdicts and the session's UCP block.

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The completion's ID (`ucpc_`). |

### Returns

The completion.

### 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)
- [`ucp_unconfigured`](https://provenanceauth.com/docs/platform/errors.md#ucp_unconfigured)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/authorize/ucp_completions" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "checkout": {
      "ucp": {
        "version": "2026-08-25",
        "status": "success",
        "payment_handlers": {}
      },
      "id": "chk_saltmarsh_1004",
      "status": "ready_for_complete",
      "currency": "USD",
      "line_items": [
        {
          "id": "li_1",
          "item": {
            "id": "sku_tide_mug",
            "title": "Tide mug",
            "price": 1800
          },
          "quantity": 2,
          "totals": [
            {
              "type": "subtotal",
              "amount": 3600
            }
          ]
        }
      ],
      "totals": [
        {
          "type": "subtotal",
          "amount": 3600
        },
        {
          "type": "total",
          "amount": 3600
        }
      ],
      "links": []
    },
    "complete_request": {
      "payment": {
        "instruments": []
      }
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh"
  }' > step.json
export UCP_COMPLETION_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/authorize/ucp_completions/$UCP_COMPLETION_ID" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/ucp_completions`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "checkout": {
      "ucp": {
        "version": "2026-08-25",
        "status": "success",
        "payment_handlers": {}
      },
      "id": "chk_saltmarsh_1004",
      "status": "ready_for_complete",
      "currency": "USD",
      "line_items": [
        {
          "id": "li_1",
          "item": {
            "id": "sku_tide_mug",
            "title": "Tide mug",
            "price": 1800
          },
          "quantity": 2,
          "totals": [
            {
              "type": "subtotal",
              "amount": 3600
            }
          ]
        }
      ],
      "totals": [
        {
          "type": "subtotal",
          "amount": 3600
        },
        {
          "type": "total",
          "amount": 3600
        }
      ],
      "links": []
    },
    "complete_request": {
      "payment": {
        "instruments": []
      }
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh"
  }),
})).json();
const ucpCompletionId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/ucp_completions/${ucpCompletionId}`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/ucp_completions", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "checkout": {
        "ucp": {
            "version": "2026-08-25",
            "status": "success",
            "payment_handlers": {}
        },
        "id": "chk_saltmarsh_1004",
        "status": "ready_for_complete",
        "currency": "USD",
        "line_items": [
            {
                "id": "li_1",
                "item": {
                    "id": "sku_tide_mug",
                    "title": "Tide mug",
                    "price": 1800
                },
                "quantity": 2,
                "totals": [
                    {
                        "type": "subtotal",
                        "amount": 3600
                    }
                ]
            }
        ],
        "totals": [
            {
                "type": "subtotal",
                "amount": 3600
            },
            {
                "type": "total",
                "amount": 3600
            }
        ],
        "links": []
    },
    "complete_request": {
        "payment": {
            "instruments": []
        }
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh"
}).json()
ucp_completion_id = step1["id"]
data = httpx.get(f"{api}/v1/authorize/ucp_completions/{ucp_completion_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

```json
{
  "object": "ucp_completion",
  "id": "ucpc_01M812MRC1QZ1XXPTB5YH5K3WM",
  "ok": false,
  "reason": "intent_missing",
  "session_id": null,
  "assessment_id": null,
  "approval_id": null,
  "checkout_id": "chk_saltmarsh_1004",
  "checkout_hash": "777885f014d8e439a2386348f3d255c2a93557ca4f52443aa0c22a4dfe99cd36",
  "verified": {
    "intent_signal": "absent",
    "ap2_checkout_mandate": "absent"
  },
  "ucp": null,
  "created_at": "2026-11-22T07:31:01.633Z"
}
```

## Get your UCP settings

`GET /v1/authorize/settings/ucp`

Returns your UCP settings, the capability entry to add to your own profile and a preview of the hosted profile.

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

### Parameters

No parameters.

### Returns

The settings.

### 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)
- [`ucp_unconfigured`](https://provenanceauth.com/docs/platform/errors.md#ucp_unconfigured)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/authorize/settings/ucp" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/settings/ucp`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/authorize/settings/ucp", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```

### Response 200

```json
{
  "object": "ucp_settings",
  "enabled": true,
  "hosted": false,
  "cart_note_carrier": false,
  "services": {},
  "payment_handlers": {},
  "keys": [],
  "capability": null,
  "hosted_profile_url": null,
  "preview": null,
  "updated_at": "2026-11-22T07:31:04.582Z"
}
```

## Retrieve a hosted UCP profile

`GET /v1/public/businesses/{business}/ucp`

The UCP profile Provenance hosts for a business, by business ID (`biz_…`), while hosting is on. No API key needed; cached for 5 minutes. Rewrite your `/.well-known/ucp` to it.

Auth: none. No API key needed.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `business` | path | string | yes | The business ID (`biz_`). |

### Returns

The hosted profile.

### Errors

- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`ucp_profile_not_published`](https://provenanceauth.com/docs/platform/errors.md#ucp_profile_not_published)
- [`ucp_unconfigured`](https://provenanceauth.com/docs/platform/errors.md#ucp_unconfigured)

### Request

**curl**

```bash
curl "$PROVENANCE_API/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/ucp"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/ucp`)).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/ucp").json()
```

### Response 200

```json
{
  "ucp": {
    "version": "2026-08-25",
    "services": {
      "dev.ucp.shopping": [
        {
          "version": "2026-08-25",
          "transport": "rest",
          "endpoint": "https://saltmarsh.example/ucp/v1"
        }
      ]
    },
    "capabilities": {
      "com.provenanceauth.checkout.approval": [
        {
          "version": "2026-11-22",
          "extends": "dev.ucp.shopping.checkout",
          "spec": "https://provenanceauth.com/docs/authorize/guides/ucp",
          "schema": "https://provenanceauth.com/schemas/ucp/checkout-approval/2026-11-22.json",
          "config": {
            "jwks_uri": "https://api.provenanceauth.com/.well-known/jwks.json",
            "profile_url": "https://api.provenanceauth.com/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/profile",
            "approval_origins": [
              "https://app.provenanceauth.com"
            ]
          }
        }
      ]
    },
    "payment_handlers": {}
  },
  "keys": [
    {
      "kid": "saltmarsh-1",
      "kty": "EC",
      "crv": "P-256",
      "x": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU",
      "y": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0"
    }
  ]
}
```

## Update your UCP settings

`PUT /v1/authorize/settings/ucp`

Turns the extension or the hosted profile on or off, sets the cart-note carrier, and stores the hosted profile's parts. Members you leave out keep their value. Keys must be public JWKs; a key with private members is refused. Turning hosting on creates your business ID if you have none.

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `enabled` | body | boolean | no | The approval extension on or off. |
| `hosted` | body | boolean | no | Serve your profile at `hosted_profile_url`. |
| `cart_note_carrier` | body | boolean | no | Shopify stores: carry the UCP session on the cart note. |
| `services` | body | object | no | Your UCP services for the hosted profile, by service name. |
| `payment_handlers` | body | object | no | Your payment handlers for the hosted profile, by name. |
| `keys` | body | array of objects | no | Your public signing keys for the hosted profile. |

### Returns

The settings, updated.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_role`](https://provenanceauth.com/docs/platform/errors.md#insufficient_role)
- [`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)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`ucp_private_key_refused`](https://provenanceauth.com/docs/platform/errors.md#ucp_private_key_refused)
- [`ucp_unconfigured`](https://provenanceauth.com/docs/platform/errors.md#ucp_unconfigured)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X PUT "$PROVENANCE_API/v1/authorize/settings/ucp" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "hosted": true,
    "services": {
      "dev.ucp.shopping": [
        {
          "version": "2026-08-25",
          "transport": "rest",
          "endpoint": "https://saltmarsh.example/ucp/v1"
        }
      ]
    },
    "payment_handlers": {},
    "keys": [
      {
        "kid": "saltmarsh-1",
        "kty": "EC",
        "crv": "P-256",
        "x": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU",
        "y": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0"
      }
    ]
  }'
curl -s -X PUT "$PROVENANCE_API/v1/authorize/settings/ucp" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "hosted": false, "services": {}, "keys": [] }' > /dev/null
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/settings/ucp`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "hosted": true,
    "services": {
      "dev.ucp.shopping": [
        {
          "version": "2026-08-25",
          "transport": "rest",
          "endpoint": "https://saltmarsh.example/ucp/v1"
        }
      ]
    },
    "payment_handlers": {},
    "keys": [
      {
        "kid": "saltmarsh-1",
        "kty": "EC",
        "crv": "P-256",
        "x": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU",
        "y": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0"
      }
    ]
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/authorize/settings/ucp", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "hosted": True,
    "services": {
        "dev.ucp.shopping": [
            {
                "version": "2026-08-25",
                "transport": "rest",
                "endpoint": "https://saltmarsh.example/ucp/v1"
            }
        ]
    },
    "payment_handlers": {},
    "keys": [
        {
            "kid": "saltmarsh-1",
            "kty": "EC",
            "crv": "P-256",
            "x": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU",
            "y": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0"
        }
    ]
}).json()
```

### Response 200

```json
{
  "object": "ucp_settings",
  "enabled": true,
  "hosted": true,
  "cart_note_carrier": false,
  "services": {
    "dev.ucp.shopping": [
      {
        "version": "2026-08-25",
        "transport": "rest",
        "endpoint": "https://saltmarsh.example/ucp/v1"
      }
    ]
  },
  "payment_handlers": {},
  "keys": [
    {
      "kid": "saltmarsh-1",
      "kty": "EC",
      "crv": "P-256",
      "x": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU",
      "y": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0"
    }
  ],
  "capability": null,
  "hosted_profile_url": "http://127.0.0.1:56046/v1/public/businesses/biz_01M812MY1GWZBPE11R6WD24DZM/ucp",
  "preview": null,
  "updated_at": "2026-11-22T07:31:07.440Z"
}
```

## Assess a UCP checkout

`POST /v1/authorize/ucp_assessments`

Send your own UCP checkout response before you return it. It runs through your checkout rules; when they ask, the response carries the approval Action and its message to add (negotiated) or the fallback. The same checkout state returns the same session and Action (200, `Idempotent-Replayed`). Metered as one `verified_order` per cart.

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). |
| `checkout` | body | object | yes | Your own UCP checkout response, exactly as you return it to the platform (at most 256 KB). |
| `origin` | body | string | yes | Your store's configured origin (bound into the cart). |
| `merchant_id` | body | string | no | Your merchant ID, the payee an intent token binds (default: the origin's host). |
| `platform_profile` | body | string | no | The platform's profile URL (from `UCP-Agent`, or `meta["ucp-agent"].profile` over MCP). Only its host is kept. |
| `capabilities` | body | array of strings \| object | no | The negotiated intersection you computed: capability names, or the capabilities object. Default empty. |
| `transport` | body | enum | no | How the platform called you. Default `rest`. One of `rest`, `mcp`, `a2a`. |
| `signals` | body | object | no | The platform's `signals` on this request (read, never stored). |
| `request_signature` | body | object | no | The platform's request as you received it, to check its RFC 9421 signature against its profile's keys. |
| `request_signature.method` | body | string | yes | The HTTP method. |
| `request_signature.url` | body | string | yes | The full request URL. |
| `request_signature.headers` | body | object | yes | The request headers (at most 100). |
| `request_signature.body` | body | string | no | The raw request body. |
| `platform_signature` | body | enum | no | You checked the platform's signature yourself; the record says you did. One of `verified`. |
| `continue_url` | body | string | no | Your checkout page, for the escalation (default: your origin). The session ID is added to its query. |
| `display` | body | object | no | How the approval page shows your store (default: your brand name, else the origin's host). |
| `display.merchant_name` | body | string | yes | The store name to show. |
| `expires_in` | body | integer | no | How long the approval stays open, in seconds. |

### Returns

A repeat (the same Idempotency-Key, or the same checkout state): the session as it is, with `replayed: true`. See [the ucp assessment object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`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)
- [`trial_ended`](https://provenanceauth.com/docs/platform/errors.md#trial_ended)
- [`ucp_checkout_invalid`](https://provenanceauth.com/docs/platform/errors.md#ucp_checkout_invalid)
- [`ucp_unconfigured`](https://provenanceauth.com/docs/platform/errors.md#ucp_unconfigured)
- [`ucp_version_unsupported`](https://provenanceauth.com/docs/platform/errors.md#ucp_version_unsupported)
- [`usage_limit_reached`](https://provenanceauth.com/docs/platform/errors.md#usage_limit_reached)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/authorize/ucp_assessments" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Idempotency-Key: ucp-chk-saltmarsh-1001" \
  -H "Content-Type: application/json" \
  -d '{
    "checkout": {
      "ucp": {
        "version": "2026-08-25",
        "status": "success",
        "payment_handlers": {}
      },
      "id": "chk_saltmarsh_1001",
      "status": "incomplete",
      "currency": "USD",
      "line_items": [
        {
          "id": "li_1",
          "item": {
            "id": "sku_tide_mug",
            "title": "Tide mug",
            "price": 1800
          },
          "quantity": 2,
          "totals": [
            {
              "type": "subtotal",
              "amount": 3600
            }
          ]
        }
      ],
      "totals": [
        {
          "type": "subtotal",
          "amount": 3600
        },
        {
          "type": "total",
          "amount": 3600
        }
      ],
      "links": []
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh",
    "platform_profile": "https://agent.example/profiles/ucp",
    "capabilities": [
      "dev.ucp.shopping.checkout",
      "com.provenanceauth.checkout.approval"
    ]
  }'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/ucp_assessments`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json", "Idempotency-Key": "ucp-chk-saltmarsh-1001" },
  body: JSON.stringify({
    "checkout": {
      "ucp": {
        "version": "2026-08-25",
        "status": "success",
        "payment_handlers": {}
      },
      "id": "chk_saltmarsh_1001",
      "status": "incomplete",
      "currency": "USD",
      "line_items": [
        {
          "id": "li_1",
          "item": {
            "id": "sku_tide_mug",
            "title": "Tide mug",
            "price": 1800
          },
          "quantity": 2,
          "totals": [
            {
              "type": "subtotal",
              "amount": 3600
            }
          ]
        }
      ],
      "totals": [
        {
          "type": "subtotal",
          "amount": 3600
        },
        {
          "type": "total",
          "amount": 3600
        }
      ],
      "links": []
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh",
    "platform_profile": "https://agent.example/profiles/ucp",
    "capabilities": [
      "dev.ucp.shopping.checkout",
      "com.provenanceauth.checkout.approval"
    ]
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/authorize/ucp_assessments", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Idempotency-Key": "ucp-chk-saltmarsh-1001"}, json={
    "checkout": {
        "ucp": {
            "version": "2026-08-25",
            "status": "success",
            "payment_handlers": {}
        },
        "id": "chk_saltmarsh_1001",
        "status": "incomplete",
        "currency": "USD",
        "line_items": [
            {
                "id": "li_1",
                "item": {
                    "id": "sku_tide_mug",
                    "title": "Tide mug",
                    "price": 1800
                },
                "quantity": 2,
                "totals": [
                    {
                        "type": "subtotal",
                        "amount": 3600
                    }
                ]
            }
        ],
        "totals": [
            {
                "type": "subtotal",
                "amount": 3600
            },
            {
                "type": "total",
                "amount": 3600
            }
        ],
        "links": []
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh",
    "platform_profile": "https://agent.example/profiles/ucp",
    "capabilities": [
        "dev.ucp.shopping.checkout",
        "com.provenanceauth.checkout.approval"
    ]
}).json()
```

### Response 200

```json
{
  "object": "ucp_assessment",
  "id": "ucpa_01M812MAKDAMQZB5X8EMCN7KKM",
  "checkout_id": "chk_saltmarsh_1001",
  "checkout_hash": "ff8d88a1e6ad9d0689066e39c20c563fe73d5db4f135d79ff9d9ba28b72f0bd0",
  "negotiated": {
    "approval_action": true,
    "ap2_mandate": false
  },
  "assessment": {
    "object": "checkout_assessment",
    "id": "cas_01M812MAKBREX1E447GJ2JQ7TW",
    "outcome": "challenge",
    "reason": "policy_rule",
    "policy": {
      "id": "pol_2CBB7D146DDF319A56B1C5C693",
      "version": null,
      "rule": {
        "id": "rul_default_no_mandate_or_approval",
        "name": "No mandate or approval",
        "phase": "assess",
        "action": "challenge",
        "conditions": [
          {
            "fact": "checkout.covered",
            "op": "eq",
            "value": "none",
            "actual": "none"
          }
        ]
      }
    },
    "signature": {
      "method": "none",
      "valid": null,
      "key_id": null,
      "directory": null,
      "agent_id": null,
      "covers": [],
      "platform": null
    },
    "authority": {
      "kind": "none"
    },
    "binding_hash": "05ad489d39a4a8853817bc00490630babfd352f81a754049f00e38b76864ce88",
    "origin": "https://saltmarsh.example",
    "order_id": "chk_saltmarsh_1001",
    "covered": "none",
    "signals": {
      "covered": "none",
      "coverage_reason": "no_token",
      "confirmed": "none",
      "presented": "none",
      "agent": {
        "verified": false,
        "class": "unknown",
        "signals_present": true,
        "signals": [],
        "recent_token_presented": false
      }
    },
    "bot": {
      "likelihood": null,
      "band": "unclassified",
      "reason": "not_checked",
      "signals": []
    },
    "approval_context": null,
    "challenge": null,
    "checkout_approval_id": "coap_01M812MAKCSF5AVJV2RWDX5B0D",
    "decision_id": "mas_01M812MAKCY4HKCYQEN68SQY76",
    "traffic_assessment_id": null,
    "payment_signals": null,
    "ucp": {
      "version": "2026-08-25",
      "checkout_id": "chk_saltmarsh_1001",
      "checkout_hash": "ff8d88a1e6ad9d0689066e39c20c563fe73d5db4f135d79ff9d9ba28b72f0bd0",
      "transport": "rest",
      "platform": {
        "profile_host": "agent.example",
        "signature": "absent"
      },
      "negotiated": {
        "approval_action": true,
        "ap2_mandate": false
      },
      "verified": {
        "intent_signal": "absent",
        "ap2_checkout_mandate": "absent"
      }
    },
    "created_at": "2026-11-22T07:30:47.533Z",
    "updated_at": null
  },
  "ucp": {
    "version": "2026-08-25",
    "checkout_id": "chk_saltmarsh_1001",
    "checkout_hash": "ff8d88a1e6ad9d0689066e39c20c563fe73d5db4f135d79ff9d9ba28b72f0bd0",
    "transport": "rest",
    "platform": {
      "profile_host": "agent.example",
      "signature": "absent"
    },
    "negotiated": {
      "approval_action": true,
      "ap2_mandate": false
    },
    "verified": {
      "intent_signal": "absent",
      "ap2_checkout_mandate": "absent"
    }
  },
  "approval": {
    "id": "coap_01M812MAKCSF5AVJV2RWDX5B0D",
    "status": "pending",
    "expires_at": "2026-11-22T07:45:47.531Z"
  },
  "action": {
    "key": "com.provenanceauth.checkout.approval",
    "instance": {
      "id": "pa_coap_01M812MAKCSF5AVJV2RWDX5B0D",
      "config": {
        "approve_url": "http://localhost:5173/approve/c/nCGEX32YBpxxSDfesYYt6w",
        "status_url": "http://localhost:8080/v1/authorize/checkout_approvals/requests/status?token=nCGEX32YBpxxSDfesYYt6w",
        "checkout_approval_id": "coap_01M812MAKCSF5AVJV2RWDX5B0D",
        "binding_hash": "c39771d8a2166fa95e566101306d89bdfba8f6018f12c839820555925b98a189",
        "expires_at": "2026-11-22T07:45:47.531Z",
        "require": {
          "biometric": true
        }
      }
    }
  },
  "message": {
    "type": "info",
    "code": "com.provenanceauth.approval_requested",
    "content": "The shopper approves this exact order with a passkey before it can be completed.",
    "path": "$.actions['com.provenanceauth.checkout.approval'][0]"
  },
  "fallback": null,
  "warnings": [],
  "replayed": true,
  "created_at": "2026-11-22T07:30:47.534Z"
}
```

## Check a UCP completion

`POST /v1/authorize/ucp_completions`

Send your own last checkout response and the platform's Complete Checkout body. It checks, in order, the AP2 checkout mandate (when negotiated), the intent token signal, then the session's own outcome, and answers `ok` or why not. Every check is recorded. Metered as one `verified_order` only when the checkout wasn't assessed.

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `checkout` | body | object | yes | Your own last checkout response for this checkout, never one the platform sent back. |
| `complete_request` | body | object | yes | The platform's Complete Checkout body (`payment`, `ap2`, `signals`; other members are not read). |
| `origin` | body | string | yes | Your store's configured origin. |
| `merchant_id` | body | string | no | Your merchant ID (default: the origin's host). |

### Returns

The completion check, recorded.

### 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)
- [`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)
- [`trial_ended`](https://provenanceauth.com/docs/platform/errors.md#trial_ended)
- [`ucp_checkout_invalid`](https://provenanceauth.com/docs/platform/errors.md#ucp_checkout_invalid)
- [`ucp_unconfigured`](https://provenanceauth.com/docs/platform/errors.md#ucp_unconfigured)
- [`ucp_version_unsupported`](https://provenanceauth.com/docs/platform/errors.md#ucp_version_unsupported)
- [`usage_limit_reached`](https://provenanceauth.com/docs/platform/errors.md#usage_limit_reached)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/authorize/ucp_assessments" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "checkout": {
      "ucp": {
        "version": "2026-08-25",
        "status": "success",
        "payment_handlers": {}
      },
      "id": "chk_saltmarsh_1003",
      "status": "incomplete",
      "currency": "USD",
      "line_items": [
        {
          "id": "li_1",
          "item": {
            "id": "sku_tide_mug",
            "title": "Tide mug",
            "price": 1800
          },
          "quantity": 2,
          "totals": [
            {
              "type": "subtotal",
              "amount": 3600
            }
          ]
        }
      ],
      "totals": [
        {
          "type": "subtotal",
          "amount": 3600
        },
        {
          "type": "total",
          "amount": 3600
        }
      ],
      "links": []
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh",
    "capabilities": [
      "dev.ucp.shopping.checkout",
      "com.provenanceauth.checkout.approval"
    ]
  }' > /dev/null
curl -X POST "$PROVENANCE_API/v1/authorize/ucp_completions" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "checkout": {
      "ucp": {
        "version": "2026-08-25",
        "status": "success",
        "payment_handlers": {}
      },
      "id": "chk_saltmarsh_1003",
      "status": "incomplete",
      "currency": "USD",
      "line_items": [
        {
          "id": "li_1",
          "item": {
            "id": "sku_tide_mug",
            "title": "Tide mug",
            "price": 1800
          },
          "quantity": 2,
          "totals": [
            {
              "type": "subtotal",
              "amount": 3600
            }
          ]
        }
      ],
      "totals": [
        {
          "type": "subtotal",
          "amount": 3600
        },
        {
          "type": "total",
          "amount": 3600
        }
      ],
      "links": []
    },
    "complete_request": {
      "payment": {
        "instruments": []
      }
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh"
  }'
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/ucp_assessments`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "checkout": {
      "ucp": {
        "version": "2026-08-25",
        "status": "success",
        "payment_handlers": {}
      },
      "id": "chk_saltmarsh_1003",
      "status": "incomplete",
      "currency": "USD",
      "line_items": [
        {
          "id": "li_1",
          "item": {
            "id": "sku_tide_mug",
            "title": "Tide mug",
            "price": 1800
          },
          "quantity": 2,
          "totals": [
            {
              "type": "subtotal",
              "amount": 3600
            }
          ]
        }
      ],
      "totals": [
        {
          "type": "subtotal",
          "amount": 3600
        },
        {
          "type": "total",
          "amount": 3600
        }
      ],
      "links": []
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh",
    "capabilities": [
      "dev.ucp.shopping.checkout",
      "com.provenanceauth.checkout.approval"
    ]
  }),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/ucp_completions`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "checkout": {
      "ucp": {
        "version": "2026-08-25",
        "status": "success",
        "payment_handlers": {}
      },
      "id": "chk_saltmarsh_1003",
      "status": "incomplete",
      "currency": "USD",
      "line_items": [
        {
          "id": "li_1",
          "item": {
            "id": "sku_tide_mug",
            "title": "Tide mug",
            "price": 1800
          },
          "quantity": 2,
          "totals": [
            {
              "type": "subtotal",
              "amount": 3600
            }
          ]
        }
      ],
      "totals": [
        {
          "type": "subtotal",
          "amount": 3600
        },
        {
          "type": "total",
          "amount": 3600
        }
      ],
      "links": []
    },
    "complete_request": {
      "payment": {
        "instruments": []
      }
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh"
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/ucp_assessments", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "checkout": {
        "ucp": {
            "version": "2026-08-25",
            "status": "success",
            "payment_handlers": {}
        },
        "id": "chk_saltmarsh_1003",
        "status": "incomplete",
        "currency": "USD",
        "line_items": [
            {
                "id": "li_1",
                "item": {
                    "id": "sku_tide_mug",
                    "title": "Tide mug",
                    "price": 1800
                },
                "quantity": 2,
                "totals": [
                    {
                        "type": "subtotal",
                        "amount": 3600
                    }
                ]
            }
        ],
        "totals": [
            {
                "type": "subtotal",
                "amount": 3600
            },
            {
                "type": "total",
                "amount": 3600
            }
        ],
        "links": []
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh",
    "capabilities": [
        "dev.ucp.shopping.checkout",
        "com.provenanceauth.checkout.approval"
    ]
}).json()
data = httpx.post(f"{api}/v1/authorize/ucp_completions", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "checkout": {
        "ucp": {
            "version": "2026-08-25",
            "status": "success",
            "payment_handlers": {}
        },
        "id": "chk_saltmarsh_1003",
        "status": "incomplete",
        "currency": "USD",
        "line_items": [
            {
                "id": "li_1",
                "item": {
                    "id": "sku_tide_mug",
                    "title": "Tide mug",
                    "price": 1800
                },
                "quantity": 2,
                "totals": [
                    {
                        "type": "subtotal",
                        "amount": 3600
                    }
                ]
            }
        ],
        "totals": [
            {
                "type": "subtotal",
                "amount": 3600
            },
            {
                "type": "total",
                "amount": 3600
            }
        ],
        "links": []
    },
    "complete_request": {
        "payment": {
            "instruments": []
        }
    },
    "origin": "https://saltmarsh.example",
    "merchant_id": "saltmarsh"
}).json()
```

### Response 201

```json
{
  "object": "ucp_completion",
  "id": "ucpc_01M812MNFJFKJ815K14AETFSKM",
  "ok": false,
  "reason": "approval_pending",
  "session_id": "ucpa_01M812MNF92A25PCZYDAD2E9DS",
  "assessment_id": "cas_01M812MNF8GVBVYR5C5FKNEM5W",
  "approval_id": "coap_01M812MNF9BMN0Z8APY06KJ0KR",
  "checkout_id": "chk_saltmarsh_1003",
  "checkout_hash": "9e0996a8c8febf3cb14337f6e1b5a9257929212dd8d59d68f606e56c67ca29c2",
  "verified": {
    "intent_signal": "absent",
    "ap2_checkout_mandate": "absent"
  },
  "ucp": {
    "version": "2026-08-25",
    "checkout_id": "chk_saltmarsh_1003",
    "checkout_hash": "9e0996a8c8febf3cb14337f6e1b5a9257929212dd8d59d68f606e56c67ca29c2",
    "transport": "rest",
    "platform": {
      "profile_host": null,
      "signature": "absent"
    },
    "negotiated": {
      "approval_action": true,
      "ap2_mandate": false
    },
    "verified": {
      "intent_signal": "absent",
      "ap2_checkout_mandate": "absent"
    }
  },
  "created_at": "2026-11-22T07:30:58.674Z"
}
```
