View as Markdown

Platform · API reference

Approval contexts

How a person decided, the same on every product. Embedded in each result that names the decision, and read alone here.

Related guide: Approval context

The approval context object

Attributes

objectenumRequired
The type of object. One of approval_context.
idstringRequired
Unique identifier for the object (apc_…).
subjectobjectRequired
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 is capr_…:<index>).
decisionenumRequired
The person's own answer; captured for a capture. One of approved, declined, captured.
decided_attimestampRequired
When the person decided.
methodobjectRequired
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
methodenum
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.
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 | nullRequired
The passkey that decided; null for any other method.
Show child attributes
statusenum
new when it was younger than the store's minimum age or set up during the approval. One of new, 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 | nullRequired
The device the person decided on, as it reported itself (or, with the app's device key, as it enrolled).
Show child attributes
osstring | null
ios, ipados, android, macos, windows, linux or other.
os_versionstring | null
The OS version, for phones (desktop browsers freeze theirs).
browserstring | null
safari, chrome, edge, firefox, samsung or other; 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 | nullRequired
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.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.
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_detailsobjectRequired
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 of 1, 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-Agent header (at most 2,048 characters).
accept_headerstring | nullRequired
The request's Accept header (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.
billingobjectRequired
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 of merchant.
personobjectRequired
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 | nullRequired
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.
unavailableobjectRequired
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).

The approval context object

{
  "object": "approval_context",
  "id": "apc_01JD5HT9QK3M8V2XR7N4B6WZTC",
  "subject": {
    "type": "checkout_approval",
    "id": "coap_01JD5HT2QZ6Y1K9F3R8M4V7NXB"
  },
  "decision": "approved",
  "decided_at": "2026-11-17T09:06:12.000Z",
  "method": {
    "kind": "passkey",
    "authenticator": "platform_passkey",
    "user_verified": true,
    "step_up": null
  },
  "passkey": {
    "status": "existing",
    "age": {
      "days": 41,
      "minutes": 312
    },
    "created_during_approval": false,
    "synced": true,
    "provider": "iCloud Keychain",
    "provider_attested": false
  },
  "device": {
    "os": "ios",
    "os_version": "26.1",
    "browser": "safari",
    "source": "user_agent",
    "verified": false,
    "time_zone": {
      "name": "America/Los_Angeles",
      "utc_offset_minutes": -480,
      "source": "browser",
      "verified": false
    },
    "locale": "en-US"
  },
  "network": {
    "country": "US",
    "region": "US-OR",
    "city": null,
    "city_status": "not_enabled",
    "flags": {
      "vpn": false,
      "proxy": false,
      "hosting_provider": false,
      "tor": false,
      "private_relay": false
    },
    "source": "ip_intel",
    "ip": null
  },
  "location_match": "matches_billing",
  "location_match_basis": [
    "network_region",
    "time_zone"
  ],
  "browser_details": null,
  "billing": {
    "line1": "18 Harrow Lane",
    "line2": null,
    "city": "Portland",
    "region": "US-OR",
    "postal_code": "97205",
    "country": "US",
    "source": "merchant"
  },
  "person": {
    "pseudonym": "hum_6f1c2a9e0b7d4c3a8e5f",
    "link": "not_applicable"
  },
  "external": null,
  "unavailable": {}
}

Retrieve an approval context

GET/v1/approval_contexts/{id}

How a person decided one cart approval, step-up approval, grant or captured item: the object that result embeds. The key needs the decided object's product scope; the IP shows only while your IP sharing switch keeps it.

Parameters

idstringpathRequired
The approval context's ID (apc_…), from the approval_context.id of the result that named the decision.

Returns

The approval context. See the approval context object.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/approval_contexts/apc_01JD5HT9QK3M8V2XR7N4B6WZTC" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "object": "approval_context",
  "id": "apc_01JD5HT9QK3M8V2XR7N4B6WZTC",
  "subject": {
    "type": "checkout_approval",
    "id": "coap_01JD5HT2QZ6Y1K9F3R8M4V7NXB"
  },
  "decision": "approved",
  "decided_at": "2026-11-17T09:06:12.000Z",
  "method": {
    "kind": "passkey",
    "authenticator": "platform_passkey",
    "user_verified": true,
    "step_up": null
  },
  "passkey": {
    "status": "existing",
    "age": {
      "days": 41,
      "minutes": 312
    },
    "created_during_approval": false,
    "synced": true,
    "provider": "iCloud Keychain",
    "provider_attested": false
  },
  "device": {
    "os": "ios",
    "os_version": "26.1",
    "browser": "safari",
    "source": "user_agent",
    "verified": false,
    "time_zone": {
      "name": "America/Los_Angeles",
      "utc_offset_minutes": -480,
      "source": "browser",
      "verified": false
    },
    "locale": "en-US"
  },
  "network": {
    "country": "US",
    "region": "US-OR",
    "city": null,
    "city_status": "not_enabled",
    "flags": {
      "vpn": false,
      "proxy": false,
      "hosting_provider": false,
      "tor": false,
      "private_relay": false
    },
    "source": "ip_intel",
    "ip": null
  },
  "location_match": "matches_billing",
  "location_match_basis": [
    "network_region",
    "time_zone"
  ],
  "browser_details": null,
  "billing": {
    "line1": "18 Harrow Lane",
    "line2": null,
    "city": "Portland",
    "region": "US-OR",
    "postal_code": "97205",
    "country": "US",
    "source": "merchant"
  },
  "person": {
    "pseudonym": "hum_6f1c2a9e0b7d4c3a8e5f",
    "link": "not_applicable"
  },
  "external": null,
  "unavailable": {}
}

Was this page helpful? Send us feedback

LLM? Read llms.txt.