Authorize · API reference
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
The ucp assessment object
Attributes
objectenumRequired- Always
ucp_assessment. One ofucp_assessment. idstringRequired- The UCP session's ID (
ucpa_). checkout_idstringRequired- Your UCP checkout's
id. checkout_hashstringRequired- The hash of the checkout state this session is for.
negotiatedobjectRequired- What the platform negotiated.
Show child attributes
approval_actionbooleanRequired- The approval Action was negotiated and the extension is on.
ap2_mandatebooleanRequired- The AP2 mandate extension was negotiated.
assessmentobject | any | nullRequired- The checkout assessment behind this session (
cas_), withucp.Show child attributes
objectenum- Always
checkout_assessment. One ofcheckout_assessment. idstring- The assessment's ID (
cas_…). outcomeenumallow(shown as Allowed): charge the order.challenge(Challenged): ask the person (seechallenge).reject(Rejected): don't fulfil it. See outcome words. One ofallow,challenge,reject.reasonstring- A registered reason (kind
assessmentin 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; withcovered: noneno 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_allowedandgrant_country_not_allowed(each a challenge by default),grant_counterparty_blocked,grant_category_blockedandgrant_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_replayedandholder_mismatch(a holder-bound grant presented without its holder's proof inrequest.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_blockedorprior_approval_denied. Once the person answers the challenge:person_approvedorreview_approved(approved),policy_revieworrules_unavailable(still a challenge, in your review),person_declined,policy_rule,store_revieworreview_expired(rejected). policyobject | null- 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;reasonthen says what did.Show child attributes
idstring | nullRequired- The product's policy (
pol_…), one per account and product, the same on every version. versioninteger | nullRequired- The version that decided: null on the built-in default rules, 0 when a simulation runs a draft.
ruleobjectRequired- The rule, and what it compared.
Show child attributes
idstringRequired- The rule's ID (
rul_…, orrul_default_…for a default row), kept across versions. refstring | null- The rule's short display ID (
R-103, orR-04outside checkout), the one the console shows beside the rule. Checkout rules carry their phase digit first:R-1nnat checkout,R-2nnafter the customer answers. Kept across versions and never reused in the policy. Null when the rule's text is gone. namestring | nullRequired- The rule's name in the builder, when it has one.
phaseenumRequired- When it ran:
assess, orafter_approval(a store's checkout rule run once the person decided); a Trace rule runs ataction(before a tool call) orcompletion(on model output). One ofassess,after_approval,action,completion. actionenumRequired- What the rule did: Approve, Challenge (ask a person), Reject or Review. See outcome words. One of
approve,challenge,reject,review. conditionsarray of objectsRequired- Each condition of the rule, with the value compared.
Show child attributes
factstringRequired- The fact (
order.amount,approval.location,class, …). opstringRequired- The operator.
valueanyRequired- The value the condition compares with.
actualanyRequired- The value the engine compared; null when the fact was absent.
unavailablestring- Why
actualis null:not_collected,not_recordedon a result read back from a record that didn't keep the value, orwithheldfor a raw field-timing fact (agent.typing_interval_ms,agent.checkout_fill_seconds), which rules read but no result returns. metricstring- A velocity condition's counter (
verify_count,amount_sum). windowstring- A velocity condition's window.
perstring- A velocity condition's subject.
setstring- A canary or prediction condition's family or probe.
baselinestring- A relative canary condition's baseline.
pathstring- A field condition's path in the request.
traceobject- 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, thentruncated.Show child attributes
roundsinteger- Rounds of fact resolution the decision took.
nodesarray of objectsRequired- The path's nodes.
kindiscondition,all,any,none,at_least,signal,scorecard,rule,group,floworrisk_score; groups and signals holdnodes, a scorecard itsrows. Arisk_scorenode 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_idandreason.status(the text is on the evaluation). skippedobject- Facts the decision never had to read, by cost tier (
tier_3: 1). truncatedboolean- The path was longer than the bounds.
unavailablearray of objects- The facts the decision found unavailable, and why. Present only when there were some.
Show child attributes
factstringRequired- The fact.
reasonstringRequired- Why:
timeout,error,unconfigured,deadlineand the rest.
policiesarray of objects- 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).policyis the last of them. Empty when no rule decided. An assessment settled before November 26, 2026 lists only the last rule.Show child attributes
idstring | nullRequired- The product's policy (
pol_…), one per account and product, the same on every version. versioninteger | nullRequired- The version that decided: null on the built-in default rules, 0 when a simulation runs a draft.
ruleobjectRequired- The rule, and what it compared.
Show child attributes
idstringRequired- The rule's ID (
rul_…, orrul_default_…for a default row), kept across versions. refstring | null- The rule's short display ID (
R-103, orR-04outside checkout), the one the console shows beside the rule. Checkout rules carry their phase digit first:R-1nnat checkout,R-2nnafter the customer answers. Kept across versions and never reused in the policy. Null when the rule's text is gone. namestring | nullRequired- The rule's name in the builder, when it has one.
phaseenumRequired- When it ran:
assess, orafter_approval(a store's checkout rule run once the person decided); a Trace rule runs ataction(before a tool call) orcompletion(on model output). One ofassess,after_approval,action,completion. actionenumRequired- What the rule did: Approve, Challenge (ask a person), Reject or Review. See outcome words. One of
approve,challenge,reject,review. conditionsarray of objectsRequired- Each condition of the rule, with the value compared.
Show child attributes
factstringRequired- The fact (
order.amount,approval.location,class, …). opstringRequired- The operator.
valueanyRequired- The value the condition compares with.
actualanyRequired- The value the engine compared; null when the fact was absent.
unavailablestring- Why
actualis null:not_collected,not_recordedon a result read back from a record that didn't keep the value, orwithheldfor a raw field-timing fact (agent.typing_interval_ms,agent.checkout_fill_seconds), which rules read but no result returns. metricstring- A velocity condition's counter (
verify_count,amount_sum). windowstring- A velocity condition's window.
perstring- A velocity condition's subject.
setstring- A canary or prediction condition's family or probe.
baselinestring- A relative canary condition's baseline.
pathstring- A field condition's path in the request.
traceobject- 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, thentruncated.Show child attributes
roundsinteger- Rounds of fact resolution the decision took.
nodesarray of objectsRequired- The path's nodes.
kindiscondition,all,any,none,at_least,signal,scorecard,rule,group,floworrisk_score; groups and signals holdnodes, a scorecard itsrows. Arisk_scorenode 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_idandreason.status(the text is on the evaluation). skippedobject- Facts the decision never had to read, by cost tier (
tier_3: 1). truncatedboolean- The path was longer than the bounds.
unavailablearray of objects- The facts the decision found unavailable, and why. Present only when there were some.
Show child attributes
factstringRequired- The fact.
reasonstringRequired- Why:
timeout,error,unconfigured,deadlineand the rest.
signatureobject | any | null- How the agent's request was signed, as Identify checked it (from
requestortraffic_assessment_id);method: nonewhen no request was checked. Carriesplatform: the agent platform Identify named for the checkout (signedordeclared), or null. Null on an assessment made before November 17, 2026.Show child attributes
methodenum- How the request was signed:
web_bot_auth,http_signature,network(a card network agent program's tag), ornone(no signature, or no request was checked). One ofweb_bot_auth,http_signature,network,none. validboolean | null- 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). key_idstring | null- The signature's
keyid(the key's JWK thumbprint). directorystring | null- Where the key was found: the
Signature-Agentdirectory URL, orprovenance_registryfor a key registered with Provenance. agent_idstring | null- The registered agent (
agt_…) the key belongs to, when the signature verified against a key registered with Provenance or its hosted directory. platformobject | any | null- Checkout assessments only: the agent platform Identify named for the checkout (
signedordeclared), or null.Show child attributes
nameenum- The platform's catalog name. One of
openai,anthropic,google,microsoft,apple,perplexity,meta,common_crawl. labelstring- The platform's display name (
OpenAI). sourceenumsigned(verified through the platform's signing directory) ordeclared(a known crawler's user agent). One ofsigned,declared.
coversarray of strings- The covered components, by name (
@authority,@method,@path,signature-agent,content-digest). Empty when nothing was signed.
botobject | any | null- 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.Show child attributes
likelihoodinteger | null- 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 asagent.bot_likelihood_score. bandenummedium(30 to 69) orhigh(70 and over) fromlikelihood;lowonly when it is under 30 and field timing saw a person (typedorpointer_seen); otherwiseunclassified: nothing shows a bot or a person (a score of 0 because nothing tripped is no evidence either way). A request alone is neverlow. Checkout rules read it asagent.bot_likelihood. One oflow,medium,high,unclassified.reasonenum- Why
bandisunclassified:not_checked(nothing to score),no_field_timing(the score is under 30 and no field timing ran) orno_person_signal(field timing ran and saw no typing and no pointer). Null otherwise. One ofnot_checked,no_field_timing,no_person_signal. signalsarray of enums- 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) andpointer_seen(a pointer moved, clicked or touched before submit). Each is also a checkout rule fact (agent.headless, …).
authorityobject | any | null- What covered the cart: the intent token (
provenance_intent_token) or a grant presented alone (provenance_mandate), withcart_match: matched; an AP2 or ACP mandate from an issuer you trust (third_party_mandate, naming its protocol and issuer);nonewhen nothing did, including a yes the person had already given. Null on an assessment made before November 17, 2026.Show child attributes
kindenum- What covered the action. Assessments today return
provenance_intent_token,provenance_mandate,third_party_mandate(checkout only) ornone. One ofprovenance_intent_token,provenance_mandate,third_party_mandate,spc,platform_confirmation,none. verifiedboolean- True when the token verified (ES256 against Provenance's published keys).
verified_againstenum- What it was verified against: Provenance's published keys. One of
provenance_jwks. algenum- The token's signing algorithm. One of
ES256. key_idstring | null- The
kidof the key that signed the token. issuerstring | null- The token's issuer (
iss); onthird_party_mandate, the name you listed the issuer under (or, through your own AP2 verifier, the mandate'siss). mandate_idstring | null- The mandate the token was issued under, or the grant itself; null for a token with no mandate.
mandate_chainarray of strings- 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). approval_context_idstring | null- On
provenance_intent_token: the approval context of the person's yes that minted the token, when one is known. cart_matchenum- 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), ornot_applicable(an agent action or a request, where the payload or request hash binds instead). One ofmatched,merchant_facts,not_applicable. protocolenum- On
third_party_mandate: the mandate's protocol. One ofap2,acp. verified_byenum- 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 ofissuer_jwks,merchant_verifier. evidence_hashstring | null- On
third_party_mandate: the SHA-256 (hex) of the mandate as presented, never the mandate; null when Provenance never saw it (a verdict your middleware reported).
binding_hashstring- The cart's canonical binding hash (what a token's
payload_hashmust equal). originstring- The cart's origin.
order_idstring- The cart's order ID.
contactobject- Present when you sent
contact.name: the shopper's name, on your own reads only (never the webhook, a share or a signal).Show child attributes
namestring- The shopper's name you sent (
Maya Chen).
coveredenum- What covered the cart, if anything. One of
token,mandate,third_party_mandate,reused,none. signalsobject- The signals your rules saw (present only when known).
Show child attributes
coveredstring- Same as
covered. coverage_reasonstring- 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 andreasonispolicy_ruleorpolicy_rule_approved. confirmedstringapproval(a person approved this order),grant(a standing grant) ornone(a rule alone allowed it).presentedenum- 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) ornone. The default rule "Unclassified" approves onlynone. One ofmandate,token,third_party_mandate,none. token_age_secondsinteger- Seconds since the token was minted.
agentobject- What Identify says about the agent, when it ran. The bot score and the named signals are in
bot.Show child attributes
verifiedboolean- The agent's signature verified.
classstring- Identify's class, or
unknownwhen it didn't run. idstring- The registered agent's ID.
mandate_depthinteger- How many hand-offs below the person's grant the agent is.
run_presentboolean- The token belongs to an agent-team run.
signals_presentboolean- 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. signalsarray of enums- 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 withsignals_present. order_signalsarray of enums- 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. recent_token_presentedboolean- 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 factagent.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.
merchantobject- The merchant facts you sent, labelled
source: "merchant". billingobject- The billing address you sent, coarse fields only (the full address is
approval_context.billingonce the person decides).Show child attributes
countrystringRequired- ISO 3166-1 alpha-2.
regionstring | nullRequired- ISO 3166-2 (
US-OR); null when no region was sent or it isn't one we map. postal_prefixstring | nullRequired- The US 3-digit ZIP prefix, the Canadian forward sortation area or the UK outward code; null elsewhere.
sourceenumRequired- Always
merchant: your store attested it. One ofmerchant. unavailableobject- On an assessment: why a part has no rule fact (
region: region_unrecognized).Show child attributes
regionenum- The region couldn't be mapped to ISO 3166-2. One of
region_unrecognized.
shadowobject- Your shadow checkout policy's verdict, when one is set. It never changes the outcome.
Show child attributes
outcomestring- The outcome the shadow would have given.
reasonstring- Its reason.
rule_idstring | null- The shadow rule that decided.
policy_versioninteger- The shadow version.
challengeobject | null- While
outcomeischallenge: how the person is being asked. Null otherwise. The cart approval behind it is the shopper's side; once they decide,approval_context.subjectnames it.Show child attributes
channelenumRequired- The channel the first message went by, or
agent_relaywhen the agent relays the link. One oftext,email,app_notification,agent_relay. sent_tostring | nullRequired- The masked contact the first message went to (
•••• 4821,j•••@example.com); null for the relay. statusenumRequiredpendinguntil the person answers;in_reviewwhile your review holds their yes;expiredwhen nobody answered in time. One ofpending,in_review,expired,approved,denied.expires_attimestamp | nullRequired- When the link stops working, or (in review) when the review times out.
approve_urlstring- Create response only: the public page the person approves on (the agent relays it).
status_urlstring- Create response only: where the agent polls for the cart-bound token.
reusedboolean- Create response only: it joined an open request for the same cart (asked once).
dedupedboolean- Create response only: your customer already has a pending link for this store.
delivery_hintstring- Create response only: where the link went, without the contact ("the phone ending 42").
approval_contextobject | any | null- How the person decided: the cart approval the agent's token came from, or their answer to this assessment's challenge (
subjectnames the cart approval). Null when no person decided. On the webhook,billingis always null.Show child attributes
objectenum- The type of object. One of
approval_context. idstring- Unique identifier for the object (
apc_…). subjectobject- What the person decided.
Show child attributes
typeenumRequired- 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. idstringRequired- Its id (an intent token is its
jti; a captured item iscapr_…:<index>).
decisionenum- The person's own answer;
capturedfor a capture. One ofapproved,declined,captured. decided_attimestamp- When the person decided.
methodobject- How the person decided.
Show child attributes
kindenumRequired- 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. authenticatorenumRequired- 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. user_verifiedbooleanRequired- True when the assertion's user-verification flag was set (face, fingerprint or the screen lock).
step_upobject | nullRequired- What confirmed the customer contact for a new passkey under
step_up_contact, when it applied.Show child attributes
methodenumcontact_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 ofcontact_code,link_contact.channelenum- Where the code went, or which message carried the link. One of
sms,email. verified_attimestamp- When the code matched, or when the passkey approved through that link.
passkeyobject | null- The passkey that decided; null for any other method.
Show child attributes
statusenumnewwhen it was younger than the store's minimum age or set up during the approval. One ofnew,existing.ageobject- Its age at the decision: whole days, and the minutes past them.
Show child attributes
daysinteger- Whole days.
minutesinteger- Minutes past the whole days.
created_during_approvalboolean- Set up on this approval's page.
syncedboolean | null- A synced (backed-up) passkey; null when the authenticator didn't say.
providerstring | null- The provider its AAGUID names (the authenticator's own claim); null when unknown.
provider_attestedenum- Always false: the provider is the authenticator's own claim. One of
false.
deviceobject | null- The device the person decided on, as it reported itself (or, with the app's device key, as it enrolled).
Show child attributes
osstring | nullios,ipados,android,macos,windows,linuxorother.os_versionstring | null- The OS version, for phones (desktop browsers freeze theirs).
browserstring | nullsafari,chrome,edge,firefox,samsungorother; null in an app.sourceenum- Where the device facts came from. One of
user_agent,app_attestation. verifiedboolean- True only when the server verified the device's attestation.
time_zoneobject | null- The device's time zone, as reported (never verified).
Show child attributes
namestring- IANA name (
America/Los_Angeles). utc_offset_minutesinteger- Its offset at the decision.
sourceenum- Who reported it. One of
browser,app. verifiedenum- Always false. One of
false.
localestring | null- The language tag (
en-US).
networkobject | null- The connection the decision came from: a provider's estimate of its place, and its flags.
Show child attributes
countrystring | null- ISO 3166-1 alpha-2.
regionstring | null- ISO 3166-2 (
US-OR). citystring | null- The city, only while the network city switch is on.
city_statusenum- Whether the city switch is on. One of
enabled,not_enabled. flagsobject- What the published lists and the IP lookup say about the network.
Show child attributes
vpnboolean- A VPN service.
proxyboolean- A proxy.
hosting_providerboolean- A cloud or hosting provider's range.
torboolean- A Tor exit.
private_relayboolean- iCloud Private Relay (a privacy feature, never counted as a VPN).
asninteger | null- The network's AS number, from the IP lookup provider; null without one.
sourceenum- Where the place and flags came from. One of
published_lists,ip_intel. ipstring | null- The address, only while your IP sharing switch is on and the sealed copy is kept; null otherwise.
location_matchenum- A cart approval's only: whether where the person approved from matches the billing address the store sent. The same value the
approval.locationrule fact reads:matches_billingneeds the network region (or city) to agree with nothing contradicting it, a time-zone match alone is never a match;differswhen a known comparison differs;unavailablewith its reason inunavailable.location_match(no IP lookup, no time zone);no_billingwhen the store sent no address. The distance and the per-field comparisons stay rule facts and are never returned. Absent on other approvals. One ofmatches_billing,differs,unavailable,no_billing. location_match_basisarray of enums- 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. browser_detailsobject- 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.
Show child attributes
screen_widthinteger | nullRequired- The screen's width in CSS pixels (
screen.width). screen_heightinteger | nullRequired- The screen's height in CSS pixels (
screen.height). color_depthenumRequired- Bits per pixel (
screen.colorDepth). One of1,4,8,15,16,24,30,32,48. languagestring | nullRequired- The browser's language (
navigator.language). java_enabledboolean | nullRequired- Whether Java is enabled (
navigator.javaEnabled()). javascript_enabledboolean | nullRequired- Whether JavaScript ran (true when the page sent the block).
utc_offset_minutesinteger | nullRequired- Local time minus UTC, in minutes.
user_agentstring | nullRequired- The request's
User-Agentheader (at most 2,048 characters). accept_headerstring | nullRequired- The request's
Acceptheader (at most 2,048 characters). sourceenumRequired- Where the fields came from. One of
browser. verifiedenumRequired- Always false: as the browser reported them. One of
false.
billingobject- A cart approval's context only: the full billing address you sent, to your own key and console (never on a webhook); null otherwise.
Show child attributes
line1string | nullRequired- The street line.
line2string | nullRequired- The second line.
citystring | nullRequired- The city.
regionstring | nullRequired- ISO 3166-2 (
US-OR) where the region table maps it (US, Canada, Australia); else as you sent it. postal_codestring | nullRequired- The postal code as you sent it.
countrystringRequired- ISO 3166-1 alpha-2.
sourceenumRequired- Always
merchant: your store attested it. One ofmerchant.
personobject- Who decided, as far as Provenance can say without identifying them.
Show child attributes
pseudonymstring | null- A per-store pseudonym for the passkey, on cart approvals.
linkenum- Over a grant's limit: whether the passkey is the grant's own person's. One of
same_person,unlinked,not_applicable.
externalobject | null- With
method.kind: external: the confirmation given outside Provenance.Show child attributes
kindenum- The kind of outside confirmation. One of
ap2_user_mandate,spc,platform. issuerstring | null- Who issued it.
evidence_hashstring | null- The hash of the evidence verified.
unavailableobject- 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).
receiptobject- A signed receipt. Every receipt endpoint (decisions, agreements, orders, deals, disputes, verified calls and the receipt embed) returns this object.
claimsis the signed payload, decoded;tokenis the ES256 JWS that carries it, which anyone can verify offline against the published keys.Show child attributes
objectenumRequired- The type of object. One of
receipt. idstringRequired- The receipt's ID (
rcpt_), the same asclaims.receipt_id. claimsobjectRequired- The signed claims, decoded from
token.Show child attributes
reusedobject- 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,routedwhen 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.Show child attributes
sourceenumRequired- Who asked first. One of
intent_token,agent,store,network,routed.
confirmed_viaobject- Present only when the person confirmed outside Provenance (
decided_viais thenexternal).Show child attributes
kindenumRequired- The kind of confirmation. One of
ap2_user_mandate,spc,platform. issuerstring- 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.
evidence_hashstringRequired- The SHA-256 of the evidence (the evidence itself isn't kept).
decided_viaenum- Present only with
confirmed_via. One ofexternal. approved_byenum- Present only on a checkout assessment your own Approve rule decided (
policy_rule_approved):matched_rule_idandpolicy_versionname the rule. It never means a person approved. One ofrule. auto_approvalobject- Present only when an
auto_approveclause gave the approval.Show child attributes
rule_idstring- The rule the clause sits on.
clause_idstring- The clause's ID.
labelstring- The clause's label.
policy_versioninteger | null- The policy version.
decided_viaenum- Always
rule. One ofrule. messagestring- "Approved automatically by your rule '…'".
receipt_idstring- The receipt's ID.
decision_idstring- The decision's ID.
kindstring- What was decided:
authorize,verifyororder. jtistring | null- The intent token's ID.
agent_session_idstring | null- The agent session the token was minted for.
agent_idstring | null- The registered agent's ID.
approver_idstring | null- The network approver who decided.
device_idstring | null- The approving device's ID.
resultenum- The result. One of
valid,denied,pending. reasonstring | null- The reason given or recorded.
matched_rule_idstring | null- The policy rule that decided it.
policy_versioninteger | null- The policy version that decided it; null for the default.
mandate_idstring | null- The mandate's ID.
biometric_boundboolean- Whether a passkey check was verified at authorize.
context_hashstring- The hash of the agent's stated context, when one was bound.
order_idstring- The clinical order's ID, on order receipts.
order_typestring- The order type, on order receipts.
prescriber_idstring- The prescriber's ID, on order receipts.
prescriber_tierstring- The prescriber's verified tier, on order receipts.
trace_idstring- The traced inference's ID, on trace-bound decisions.
canary_hashstring | null- The canary readings' hash, on trace-bound decisions.
canary_baseline_idstring- The canary baseline a relative condition used, when one did.
deal_idstring- The deal this decision belongs to, on a deal's rows.
record_hashstring- The ledger record's hash.
prev_hashstring- The previous ledger record's hash.
decided_atstring- When it was decided.
issstring- The issuer that signed the receipt.
typeenum- The kind of receipt. One of
agreement_completion. agreement_idstring- The agreement's ID.
content_hashstring- The SHA-256 of the agreed content.
content_descriptionstring- What the content is.
modestringparallelorsequential.statusstring- The agreement's status.
completed_atstring | null- When the last party signed.
partiesarray of objects- Each party's signing evidence.
Show child attributes
party_idstring- The party's ID.
labelstring- The party's label.
statusstring- The party's status.
signed_atstring | null- When the party signed.
tierstring | null- The hardware tier of the device the party signed with.
offer_idstring- The seller's offer ID.
offer_hashstring- The offer hash the acceptance binds.
seller_agent_idstring- The seller agent.
buyer_agent_idstring | null- The buyer agent.
buyer_subjectstring- The buyer's pairwise subject at this seller.
totalnumber- The offer's total.
currencystring- The currency.
deadlinestring- The delivery deadline.
acceptance_jtistring- The acceptance token's jti.
accepted_atstring | null- When it was accepted.
buyer_approvalobject | null- How the buyer's person approved (method, tier, approved_at, terms_hash).
seller_approvalobject | null- How the seller's person approved (method, approved_at, role).
paymentobject | null- The payment reference.
deliveryobject | null- The recorded delivery.
confirmed_content_hashstring | null- The hash the buyer confirmed.
dispute_idstring- The dispute.
tab_idstring | null- The tab, for a tab dispute.
period_daystring | null- The UTC day of a tab dispute.
deciderenum- Who records the outcome. One of
parties,rail,arbiter. arbiter_idstring | null- The named arbiter.
opened_atstring | null- When it opened.
outcomestring | null- The outcome.
decided_bystring | null- Who recorded it.
refundobject | null- The refund reference on the rail (rail, reference, amount, currency).
resolved_atstring | null- When it ended.
venum- The receipt format version. One of
1. check_idstring- The check.
call_idstring | null- The registered call that matched.
transportstring- How the call was matched.
agentobject | null- The agent that signed the call credential.
Show child attributes
idstring- The agent's ID.
kidstring- The key that signed the credential (its JWK thumbprint).
directorystring- Where the key is published.
personobject- Who approved, as in the verdict.
Show child attributes
approvedboolean- Whether a person approved the call.
approved_attimestamp | null- When.
approved_viastring | null- How.
pseudonymstring | null- The person's ID at your business only.
purposestring | null- The call's purpose.
windowobject | null- The call's window.
Show child attributes
fromtimestamp- The start.
untiltimestamp- The end.
numbers_digeststring | null- SHA-256 hex of
from|to|jti. Anyone who knows both numbers can recompute it. disclosureobject | null- The caller's AI-disclosure record.
consentobject | null- The caller's consent record.
checked_attimestamp- When the check ran.
tokenstringRequired- The receipt as an ES256 JWS. Verify it against the JWKS.
verify_urlstringRequired- A link that opens the receipt on the console's Verify a proof page; on a receipt a person outside the account reads (
/v1/personal/...,/v1/embed/agent_access/activity/{id}/receipt), the public Verify a proof guide instead, since that person has no console account.
checkout_approval_idstring | null- The cart approval this assessment opened or reused.
decision_idstring | null- The assessment's row in your decision ledger (
dec_…). traffic_assessment_idstring | null- Identify's verdict on the agent's request (
tas_…), when one ran. visit_idstring- The storefront visit you named (
visit_id), when you sent one. payment_referencestring- The payment you named (
payment_reference), when you sent one. payment_signalsobject | any | null- The payment signals this assessment read from
payment; null when you named none.Show child attributes
shared_payment_tokenboolean- You named a shared payment token (
payment.shared_payment_token), checked or not. checkedboolean- The token was read on your Stripe account and matched its mode.
unchecked_reasonenum- 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. agent_profilestring | null- The agent's Stripe profile (
network_business_profile), when the token was checked. usage_limitobject | null- The token's usage limit, when the token was checked.
Show child attributes
max_amountinteger- The most it can pay, in minor units.
currencystring- Lowercase ISO 4217.
credential_typeenum- The credential type you reported from your own token resolve. One of
agentic_token,dpan,fpan. network_tokenboolean | null- Whether the PaymentIntent's latest charge used a network token (null when not read). A network token alone never makes an agent order.
riskobject- Stripe's risk scores for the token, when it was checked, on the scale Stripe's shared payment token reference gives.
Show child attributes
botnumber- Stripe bot score.
card_testingnumber- Stripe card testing score.
stolen_cardnumber- Stripe stolen card score.
fraudulent_disputenumber- Stripe fraud dispute score.
card_issuer_declinenumber- Stripe bank decline score.
ucpobject- A Universal Commerce Protocol checkout's record (
POST /v1/authorize/ucp_assessments, orucp_session_id). Present only on a UCP checkout.Show child attributes
versionstringRequired- The checkout's UCP version (
2026-08-25). checkout_idstringRequired- Your UCP checkout's
id. checkout_hashstringRequired- The hash of the checkout state (cart, totals, buyer and fulfilment); a changed cart is a new state.
transportenumRequired- How the platform called your UCP server. One of
rest,mcp,a2a. platformobjectRequired- The agent platform that placed the checkout.
Show child attributes
profile_hoststring | nullRequired- The host of the platform's profile URL (never its path or query), or null when none was named.
signatureenumRequired- The platform's request signature:
verifiedagainst its profile's keys (or on your word,platform_signature: verified),absentorinvalid. One ofverified,absent,invalid. signature_sourceenum- Who checked the signature: Provenance (from
request_signature) or you. Present when a signature was checked. One ofprovenance,merchant.
negotiatedobjectRequired- What the platform and your server negotiated.
Show child attributes
approval_actionbooleanRequiredcom.provenanceauth.checkout.approvalwas negotiated and the extension is on.ap2_mandatebooleanRequired- The AP2 mandate extension was negotiated: completion then requires
ap2.checkout_mandate.
verifiedobjectRequired- What was verified on the request.
Show child attributes
intent_signalstringRequired- The intent token in
signals["com.provenanceauth.intent"]:valid,absentor the reason it failed. ap2_checkout_mandatestringRequired- The AP2 checkout mandate:
accepted,absentor the reason it was refused.
fallbackenum- When the platform didn't negotiate the approval Action and your rules asked: the deciding rule's
ucp_fallback. One ofescalate,hold_after_order. completed_byenum- Who finished an escalated checkout on your checkout page, once known. One of
person,agent.
created_attimestamp- When the assessment was made.
updated_attimestamp | null- When the person's decision (or your review, or the challenge's expiry) last changed it; null until then.
amountobject | null- The total of the cart the assessment bound. On reads (
GET, the list); null when the cart carried no total.Show child attributes
totalintegerRequired- The order total in the currency's minor units (cents for USD).
currencystringRequired- The ISO 4217 currency, lowercase.
exponentintegerRequired- The currency's decimal places (2 for USD, 0 for JPY).
itemsarray of objects- The cart's lines as you bound them, at most 50. On reads (
GET, the list).Show child attributes
namestringRequired- The line's name.
quantityintegerRequired- How many.
unit_amountinteger | nullRequired- The price of one, in minor units.
image_urlstring | nullRequired- The picture you gave for the line, if any.
endingobject | any | null- How the order ended, worked out. On reads (
GET, the list); null while nothing is known yet.Show child attributes
outcomeenumchargeback: 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 ofchargeback,fraud,refund_abuse,refunded,customer_denied,store_rejected,legitimate.sourceenum- Where it came from:
reportedis an outcome you reported;quiet_periodis an order that went ahead on a connection that reports disputes and heard nothing for 14 days. One ofreported,chargeback,network_report,approval_denied,staff_cancel,refund,quiet_period. attimestamp- When it ended this way: the report, the dispute, the refund, the decline, or the end of the 14 days.
ucpobjectRequired- 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.Show child attributes
versionstringRequired- The checkout's UCP version (
2026-08-25). checkout_idstringRequired- Your UCP checkout's
id. checkout_hashstringRequired- The hash of the checkout state (cart, totals, buyer and fulfilment); a changed cart is a new state.
transportenumRequired- How the platform called your UCP server. One of
rest,mcp,a2a. platformobjectRequired- The agent platform that placed the checkout.
Show child attributes
profile_hoststring | nullRequired- The host of the platform's profile URL (never its path or query), or null when none was named.
signatureenumRequired- The platform's request signature:
verifiedagainst its profile's keys (or on your word,platform_signature: verified),absentorinvalid. One ofverified,absent,invalid. signature_sourceenum- Who checked the signature: Provenance (from
request_signature) or you. Present when a signature was checked. One ofprovenance,merchant.
negotiatedobjectRequired- What the platform and your server negotiated.
Show child attributes
approval_actionbooleanRequiredcom.provenanceauth.checkout.approvalwas negotiated and the extension is on.ap2_mandatebooleanRequired- The AP2 mandate extension was negotiated: completion then requires
ap2.checkout_mandate.
verifiedobjectRequired- What was verified on the request.
Show child attributes
intent_signalstringRequired- The intent token in
signals["com.provenanceauth.intent"]:valid,absentor the reason it failed. ap2_checkout_mandatestringRequired- The AP2 checkout mandate:
accepted,absentor the reason it was refused.
fallbackenum- When the platform didn't negotiate the approval Action and your rules asked: the deciding rule's
ucp_fallback. One ofescalate,hold_after_order. completed_byenum- Who finished an escalated checkout on your checkout page, once known. One of
person,agent.
approvalobject | nullRequired- The cart approval the rules opened, with its state now; null when none was opened.
Show child attributes
idstringRequired- The cart approval's ID (
coap_). statusstringRequiredpending,in_review,approved,deniedorexpired.expires_attimestampRequired- When the approval expires.
actionobject | nullRequired- The Action to add to your checkout's
actions, under itskey, while the approval is open. Null otherwise: a resolved Action is removed.Show child attributes
keyenumRequired- The extension's name. One of
com.provenanceauth.checkout.approval. instanceobjectRequired- The Action instance:
id(pa_coap_…, stable while the same approval is open) andconfig(approve_url,status_url,checkout_approval_id,binding_hash,expires_at,require).Show child attributes
idstringRequired- The Action instance's ID.
configobjectRequired- The Action's configuration, as UCP carries it.
messageobject | nullRequired- The info message to add to your checkout's
messageswith the Action; null when there is no Action.Show child attributes
typestringRequired- The message type (
info). codestringRequired- The message code.
contentstringRequired- The text for the shopper.
pathstring- The JSONPath of the Action the message refers to.
fallbackenumRequired- When the platform didn't negotiate the Action and the rules asked:
escalate(seeescalation) orhold_after_order(seehold). Null otherwise. One ofescalate,hold_after_order. escalationobject- With
fallback: escalate: the members to set on your checkout response. Your checkout page then assesses the order withucp_session_id.Show child attributes
statusenumRequired- The checkout status to return. One of
requires_escalation. continue_urlstringRequired- Your checkout page, with
provenance_ucp_sessionadded to its query. messagesarray of objectsRequired- The message to add to your checkout's
messages.
holdobject- With
fallback: hold_after_orderwhile the approval is open: take the order, and hold it until the approval is approved.Show child attributes
checkout_approval_idstring- The cart approval to wait for.
approve_urlstring- Where the shopper approves.
status_urlstring- Where the approval's state can be read.
expires_attimestamp- When the approval expires.
warningsarray of stringsRequired- Problems that didn't fail the call, such as
ucp_platform_profile_unreachable. replayedenum- Present on a repeat: the session is returned as it was. One of
true. created_attimestampRequired- When the session was created.
The ucp assessment object
{
"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.
Parameters
idstringpathRequired- The UCP session's ID (
ucpa_).
Returns
The UCP assessment. See the ucp assessment object.
Errors
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"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();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
{
"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.
Parameters
idstringpathRequired- The completion's ID (
ucpc_).
Returns
The completion.
Errors
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"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();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
{
"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.
Parameters
No parameters.
Returns
The settings.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/authorize/settings/ucp" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/settings/ucp`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();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
{
"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.
No API key needed.
Parameters
businessstringpathRequired- The business ID (
biz_).
Returns
The hosted profile.
Errors
curl "$PROVENANCE_API/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/ucp"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/ucp`)).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/public/businesses/biz_01JDSAMPLE0SALTMARSH0DATA00/ucp").json()Response 200
{
"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.
Parameters
enabledboolean- The approval extension on or off.
hostedboolean- Serve your profile at
hosted_profile_url. cart_note_carrierboolean- Shopify stores: carry the UCP session on the cart note.
servicesobject- Your UCP services for the hosted profile, by service name.
payment_handlersobject- Your payment handlers for the hosted profile, by name.
keysarray of objects- Your public signing keys for the hosted profile.
Returns
The settings, updated.
Errors
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/nullconst 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();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
{
"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.
Parameters
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
checkoutobjectRequired- Your own UCP checkout response, exactly as you return it to the platform (at most 256 KB).
originstringRequired- Your store's configured origin (bound into the cart).
merchant_idstring- Your merchant ID, the payee an intent token binds (default: the origin's host).
platform_profilestring- The platform's profile URL (from
UCP-Agent, ormeta["ucp-agent"].profileover MCP). Only its host is kept. capabilitiesarray of strings | object- The negotiated intersection you computed: capability names, or the capabilities object. Default empty.
transportenum- How the platform called you. Default
rest. One ofrest,mcp,a2a. signalsobject- The platform's
signalson this request (read, never stored). request_signatureobject- The platform's request as you received it, to check its RFC 9421 signature against its profile's keys.
Show child attributes
methodstringRequired- The HTTP method.
urlstringRequired- The full request URL.
headersobjectRequired- The request headers (at most 100).
bodystring- The raw request body.
platform_signatureenum- You checked the platform's signature yourself; the record says you did. One of
verified. continue_urlstring- Your checkout page, for the escalation (default: your origin). The session ID is added to its query.
displayobject- How the approval page shows your store (default: your brand name, else the origin's host).
Show child attributes
merchant_namestringRequired- The store name to show.
expires_ininteger- 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.
Errors
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"
]
}'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();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
{
"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.
Parameters
checkoutobjectRequired- Your own last checkout response for this checkout, never one the platform sent back.
complete_requestobjectRequired- The platform's Complete Checkout body (
payment,ap2,signals; other members are not read). originstringRequired- Your store's configured origin.
merchant_idstring- Your merchant ID (default: the origin's host).
Returns
The completion check, recorded.
Errors
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"
}'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();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
{
"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"
}