Authorize · API reference
Issuer controls
For card issuers and their programs: decide which agent purchases to approve, ask about or decline on your own rules, per program, with spending limits per card for each agent, shadow mode, simulate and backtest before anything is answered.
Related guide: Issuer agent controls
The issuer decision object
Attributes
idstringRequired- Unique identifier for the object (
idec_). objectenumRequired- The type of object. One of
issuer_decision. program_idstringRequired- The program (
iprg_). kindenumRequired- What was asked about. One of
authorization,three_ds. sourceenumRequired- Who asked. One of
api,lithic,marqeta. authorization_idstring | null- The processor's id for the authorization.
cardobjectRequired- The card (never its number).
Show child attributes
tokenstring- The processor's card token.
last4string | null- The last four digits.
amountinteger | null- Amount in minor units.
currencystring | null- ISO 4217 currency.
merchantobject- The merchant fields the authorization carried, and its drawn tile.
Show child attributes
mccstring | null- The merchant category code.
idstring | null- The acquirer's merchant id.
namestring | null- The statement name.
countrystring | null- The merchant's country.
categoryenum- The tile the console draws for this merchant, worked out from
mcc(null when nothing fits). Never stored. One ofmoney,flight,stay,goods,software,food,ticket,ride,bill,other.
agentobjectRequired- How the purchase was placed in scope.
Show child attributes
basisenum- Why it is in scope;
nonepasses to your program's own rules. One ofnetwork_marked,provenance_grant,suspected,none. confidencenumber- 0 to 1: how sure Provenance is an agent made it (1 for marked or grant-carrying).
keystring | null- The identity limits are keyed to.
heuristicsarray of objects- The suspected-agent heuristics that matched, each with its weight.
network_programstring | nullvisa_vicormastercard_agent_pay.token_requestorstring | null- The token requestor id.
first_seenboolean | null- The first time this agent was seen on this card.
outcomeenumRequired- What the rules decided. One of
allow,reject,challenge,no_opinion. actionenumRequired- What Provenance answered.
challengenever holds an authorization: it declines withapproval_requiredunless a matching approval exists. One ofapprove,decline,no_opinion. reasonstring | null- Why:
issuer_rule_approved,issuer_rule_declined,approval_required,approval_matched,approval_pending,approval_merchant_unmatched,approval_amount_mismatch,approval_requested,agent_limit_exceeded,agent_limit_locked,suspected_log_only,shadow_modeordeadline_missed. ruleobject | null- The rule that decided (
id) and its scope (programorissuer). policy_versionsobject- The rule versions that ran in each scope (
program,issuer). shadowobject | null- What the shadow versions would have decided, when one is set.
modeenumRequired- The program's mode when it decided. One of
shadow,live. latency_msintegerRequired- Time to the answer.
failobject | null- A missed deadline or error, and the fail mode applied.
factsobject- The facts the rules read.
limitobject | any | null- What the card's limit for this agent allowed (null: no limit applied).
Show child attributes
limit_idstring- The limit that decided (
ilim_): the agent's own, the card's*limit, or the card-wide cap. agent_keystring- The agent key it was checked for, or
card:*for the card-wide cap. scopeenumagent: the agent's own limit (or*).card: the cap across every agent on the card, which was stricter. One ofagent,card.windowenum- The window. One of
day,week,month,lifetime. capinteger- The cap.
currencystring- The cap's currency.
spentinteger- Spent in the window before this purchase: held (unexpired), plus settled, minus refunded.
remainingintegercap - spent, never below 0 (theagent.limit_remainingfact).exceededboolean- Whether the purchase is over the limit.
causeenum- Why it is over. One of
cap,per_transaction,mcc_locked,merchant_locked,currency. on_exceedenum- What an over-limit purchase gets:
reject, orchallenge(the cardholder is asked). One ofreject,challenge.
reservation_idstring | null- The ledger row this decision placed (
ires_), when it held the amount. approvalobject | any | null- What the approval check found (null: no check ran).
Show child attributes
statusenummatched: an approval let it through and was used. Otherwise the closest reason none did. One ofmatched,pending,merchant_unmatched,amount_mismatch,none,challenge_sent,used_elsewhere.approval_idstring | null- The approval (
iapr_). howenum- How the merchant matched. One of
merchant_id,descriptor,table.
reviewobject | any | null- A member's verdict on a decline or an ask (null: not reviewed).
Show child attributes
verdictenumright("Right call") orshould_have_approved. One ofright,should_have_approved.notestring | null- The reviewer's note (at most 500 characters).
reviewed_bystring | null- The member's user id, or the API key's id.
reviewed_attimestamp- When it was reviewed.
networkobject | null- The agent's network from the 3-D Secure browser's address, classified on the whole address:
kind(residential, mobile, business, hosting or unknown),providerandasn. Null without an address. three_dsobject | null- A 3-D Secure decision's flow (null on an authorization):
frictionlesswhen it was approved without asking the cardholder,challengewhen the cardholder was asked, null when it was neither.Show child attributes
flowenum- The 3-D Secure flow. One of
frictionless,challenge. deviceobject | null- The browser the processor's 3-D Secure flow saw, when it sent one:
ip_prefix(the /24 or /48 prefix only),os,browser,time_zone_offset(minutes) andlocale. Never in a token.
occurred_attimestampRequired- When the processor received it.
created_attimestampRequired- When the object was created.
The issuer decision object
{
"object": "issuer_decision",
"id": "idec_01M8J1WE5G3KH98Y4M0Z9FZD3Y",
"program_id": "iprg_01M8J1WE59S39M65EV1JJ1DV1C",
"kind": "authorization",
"source": "api",
"authorization_id": "auth_7Hq2",
"card": {
"token": "card_tok_fernhill_1",
"last4": "4242"
},
"amount": 24900,
"currency": "USD",
"merchant": {
"mcc": "5732",
"id": "mid_brightbox",
"name": "Brightbox Electronics",
"country": "US",
"category": "goods"
},
"agent": {
"token_requestor": "40010030273",
"network_program": null,
"basis": "network_marked",
"confidence": 1,
"key": "token_requestor:40010030273",
"heuristics": [],
"first_seen": true
},
"outcome": "challenge",
"action": "decline",
"reason": "approval_required",
"rule": {
"id": "rul_01M8J1WE5ATCHYDXE6P4JZQ6XP",
"scope": "issuer"
},
"policy_versions": {
"program": null,
"issuer": 1
},
"shadow": null,
"mode": "live",
"latency_ms": 1,
"fail": null,
"facts": {
"auth.amount": 24900,
"auth.currency": "USD",
"auth.mcc": "5732",
"auth.merchant_id": "mid_brightbox",
"auth.merchant_name": "Brightbox Electronics",
"auth.merchant_country": "US",
"auth.channel": "ecommerce",
"auth.three_ds": null,
"card.token": "card_tok_fernhill_1",
"card.program": "iprg_01M8J1WE59S39M65EV1JJ1DV1C",
"card.country": null,
"agent.token_requestor": "40010030273",
"agent.network_program": null,
"agent.key": "token_requestor:40010030273",
"agent.basis": "network_marked",
"agent.confidence": 1,
"agent.first_seen": true,
"agent.limit_remaining": null,
"approval.matched": false,
"intent.verifiable": null,
"agent.paused_on_card": false,
"device.new_for_cardholder": null,
"network.hosting": null,
"network.kind": null,
"network.provider": null
},
"limit": null,
"reservation_id": null,
"approval": {
"status": "none",
"approval_id": null,
"how": null
},
"review": null,
"three_ds": null,
"network": null,
"occurred_at": "2026-11-22T15:04:05.000Z",
"created_at": "2026-11-28T21:44:50.097Z"
}Events
Sent to your webhook endpoints when they subscribe:
authorize.issuer_decision.madeauthorize.issuer_approval.requestedauthorize.issuer_approval.decidedauthorize.issuer_limit.reachedauthorize.issuer_card_limit.updatedauthorize.issuer_cardholder.linkedauthorize.issuer_cardholder.unlinked
Create a card program
POST/v1/authorize/issuer_programs
Creates a card program under your issuer account. It starts in shadow mode (decisions recorded, answered no_opinion), with processor_default as its fail mode and suspected agents logged and notified only. Pro and above; Manage policies.
Parameters
namestringRequired- The program's name.
processorenum- The card processor. One of
lithic,marqeta. modeenum- Default
shadow. One ofshadow,live. fail_modeenum- Default
processor_default. One ofprocessor_default,fail_open,fail_closed. suspectedobject- How a program finds suspected agents (purchases no network marked and no grant carries) and what a suspected match may do. By default a match is logged and notified only.
Show child attributes
thresholdnumber- A match below this confidence is ignored. Default 0.5.
heuristicsobject- Which heuristics run (all on by default).
Show child attributes
merchantboolean- The merchant is one of
agent_merchants. deviceboolean- 3-D Secure data shows a headless or hosted browser, or a device the cardholder never used.
velocityboolean- Several distinct merchants on one card in a short window.
networkboolean- The network flags the purchase as an agent's.
actionenumlog(default): record and notify only.ask: needs an approval.apply_rules: your rules apply as to a marked agent. One oflog,ask,apply_rules.agent_merchantsarray of strings- Patterns over the merchant id or name (
*any run,?one character). They add to your issuer's list and each card's (/v1/authorize/issuer_agent_merchants). inherit_agent_merchantsboolean- False leaves your issuer account's merchant list out of this program. Default true.
velocityobject- The velocity heuristic's window.
Show child attributes
window_secondsinteger- The window. Default 600.
distinct_merchantsinteger- Distinct merchants in the window that count. Default 4.
approvalsobject- A program's approval settings.
Show child attributes
tolerance_percentnumber- An authorization may be this much over the approved amount (0 to 0.5 of it; default 0.1).
tolerance_amountinteger- Plus this many minor units (default 0).
use_within_secondsinteger- How long after it is asked for an approval may be used (default 86400).
decoupled_three_dsboolean- Answer an ask at the 3-D Secure hooks with a challenge that a Provenance approval answers (default false).
deliveryenum- Who tells the cardholder: Provenance (
provenance, the default) or your own app's push (issuer_push: theauthorize.issuer_approval.requestedwebhook carries the link and token; with no endpoint taking it, Provenance sends to the contact given). One ofprovenance,issuer_push.
appobject | null- The issuer's mobile app, so the approval SDK can use platform passkeys on Provenance's domain: listed in
/.well-known/assetlinks.json(passkeys only) andapple-app-site-association(webcredentials), and the Android app's origin is accepted on this program's approvals. Null removes it.Show child attributes
android_packagestring | null- The Android application id (
com.bank.app); needsandroid_cert_sha256. android_cert_sha256array of strings- SHA-256 fingerprints of the app's signing certificates,
AA:BB:…(32 bytes). ios_app_idsarray of strings- iOS app ids,
TEAMID.bundle.id.
Returns
The program.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"suspected": {
"agent_merchants": [
"AGENTSHOP*"
]
}
}'const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"suspected": {
"agent_merchants": [
"AGENTSHOP*"
]
}
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"suspected": {
"agent_merchants": [
"AGENTSHOP*"
]
}
}).json()Response 201
{
"object": "issuer_program",
"id": "iprg_01M8370B3JQBAPFGRWEYQST5G3",
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "shadow",
"fail_mode": "processor_default",
"suspected": {
"threshold": 0.5,
"heuristics": {
"merchant": true,
"device": true,
"velocity": true,
"network": true
},
"action": "log",
"agent_merchants": [
"AGENTSHOP*"
],
"velocity": {
"window_seconds": 600,
"distinct_merchants": 4
}
},
"approvals": {
"tolerance_percent": 0.1,
"tolerance_amount": 0,
"use_within_seconds": 86400,
"decoupled_three_ds": false,
"delivery": "provenance"
},
"branding": null,
"app": null,
"processor_credentials": {
"configured": false,
"api_key": false,
"set_at": null
},
"created_at": "2026-11-23T03:25:44.434Z",
"updated_at": "2026-11-23T03:25:44.434Z"
}Create a cardholder link
POST/v1/authorize/issuer_programs/{id}/cardholder_links
Returns a one-time link (15 minutes) for your cardholder to add one card from this program to their Provenance home with their passkey, then set its agent limits within your maximum. We keep only a hash of the link. Needs cardholder controls on (else 409 cardholder_controls_off).
Parameters
idstringpathRequired- The program's ID (
iprg_). card_tokenstringRequired- The processor's card token (never the card number).
displayobjectRequired- What the person sees: the brand and last four.
Show child attributes
brandenumRequired- The card's brand. One of
visa,mastercard,amex,discover,jcb,unionpay,diners,other. last4stringRequired- The card's last four digits.
cardholderobject- Display only: the cardholder's name as you hold it ("Maya Chen"). Your card limit reads for this card return it as
cardholder.name; it is shown only to you.Show child attributes
namestring- One line of 1 to 100 characters.
Returns
The link.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X PUT "$PROVENANCE_API/v1/authorize/issuer_programs/$PROGRAM/cardholder_controls" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "enabled": true, "max_cap": 20000 }' > /dev/null
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_programs/$PROGRAM/cardholder_links" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"card_token": "card_tok_9f2c",
"display": {
"brand": "visa",
"last4": "4242"
},
"cardholder": {
"name": "Maya Chen"
}
}'const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs/${program}/cardholder_controls`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "enabled": true, "max_cap": 20000 }),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs/${program}/cardholder_links`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"card_token": "card_tok_9f2c",
"display": {
"brand": "visa",
"last4": "4242"
},
"cardholder": {
"name": "Maya Chen"
}
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
step2 = httpx.put(f"{api}/v1/authorize/issuer_programs/{program}/cardholder_controls", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"enabled": True,
"max_cap": 20000
}).json()
data = httpx.post(f"{api}/v1/authorize/issuer_programs/{program}/cardholder_links", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"card_token": "card_tok_9f2c",
"display": {
"brand": "visa",
"last4": "4242"
},
"cardholder": {
"name": "Maya Chen"
}
}).json()Response 201
{
"object": "issuer_cardholder_link",
"id": "ichl_01M8D2FTCW5VHGQF7FKCTB6JY6",
"program_id": "iprg_01M8D2FTCFCXJXJTPBZC4ST086",
"url": "http://localhost:5173/me/cards/claim?token=_W7MEru9iA64qh1ltck6JxnBAgHMjGzNBtCpeCwAfHg",
"expires_at": "2026-11-26T23:34:13.052Z"
}Get a card program
GET/v1/authorize/issuer_programs/{id}
Returns one of your card programs. Pro and above.
Parameters
idstringpathRequired- The program's ID (
iprg_).
Returns
The program.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/authorize/issuer_programs/$PROGRAM" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs/${program}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
data = httpx.get(f"{api}/v1/authorize/issuer_programs/{program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "issuer_program",
"id": "iprg_01M8D8YP32YQEQTZP4QA9QWXV2",
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "shadow",
"fail_mode": "processor_default",
"suspected": {
"threshold": 0.5,
"heuristics": {
"merchant": true,
"device": true,
"velocity": true,
"network": true
},
"action": "log",
"agent_merchants": [],
"velocity": {
"window_seconds": 600,
"distinct_merchants": 4
}
},
"approvals": {
"tolerance_percent": 0.1,
"tolerance_amount": 0,
"use_within_seconds": 86400,
"decoupled_three_ds": false,
"delivery": "provenance"
},
"branding": null,
"app": null,
"processor_credentials": {
"configured": false,
"api_key": false,
"set_at": null
},
"created_at": "2026-11-27T01:12:11.618Z",
"updated_at": "2026-11-27T01:12:11.618Z",
"three_ds_floor": {
"window_days": 30,
"frictionless": 0,
"challenged": 0,
"declined": 0,
"processor": 0,
"frictionless_rate": null,
"floor": 0.7,
"below_floor": false
}
}Get issuer rules
GET/v1/authorize/issuer_policies/{scope}
Returns the live rules in a scope: issuer (your rules over every program) or a program's ID (that program's rules), with the version in shadow if one is set. A scope with no rules has an empty document: every purchase in scope is no_opinion. Pro and above.
Parameters
scopestringpathRequiredissueror a program ID (iprg_).
Returns
The scope's rules.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl "$PROVENANCE_API/v1/authorize/issuer_policies/issuer" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/issuer`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/authorize/issuer_policies/issuer", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "policy",
"domain": "issuer_auth",
"scope": "issuer",
"document": {
"rules": []
},
"version": null,
"is_default": true,
"shadow_version": null
}Get an issuer rules version
GET/v1/authorize/issuer_policies/{scope}/versions/{version}
Returns one version of a scope's rules with its document: a draft, the live version or an earlier one. Pro and above.
Parameters
scopestringpathRequiredissueror a program ID (iprg_).versionintegerpathRequired- The version to read.
Returns
The version and its document.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM/versions" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": true
}
}
]
}
}' > /dev/null
curl "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM/versions/1" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}/versions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": true
}
}
]
}
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}/versions/1`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_policies/{program}/versions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": True
}
}
]
}
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_policies/{program}/versions/1", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "policy_version",
"domain": "issuer_auth",
"scope": "iprg_01M8BNDMN9Z5JE2PTQN7NSC7V9",
"version": 1,
"active": false,
"draft": true,
"note": null,
"created_by": "key_01M8BNDJXJFZ8R0QRBJS644DYB",
"created_at": "2026-11-26T10:11:35.722Z",
"document": {
"rules": [
{
"id": "rul_01M8BNDMNAJHXWJS1M309YHQPR",
"ref": "R-01",
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": true
}
}
]
}
}Get the issuer shadow report
GET/v1/authorize/issuer_policies/{scope}/shadow_report
How often the shadow version would have decided differently from the live rules, over recorded decisions (a program's, or every program's for issuer), with each change counted. Pro and above.
Parameters
scopestringpathRequiredissueror a program ID (iprg_).created_gtetimestampquery- Decisions created at or after this time.
created_ltetimestampquery- Decisions created at or before this time.
Returns
The report.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl "$PROVENANCE_API/v1/authorize/issuer_policies/issuer/shadow_report" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/issuer/shadow_report`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/authorize/issuer_policies/issuer/shadow_report", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"scope": "issuer",
"object": "shadow_report",
"domain": "issuer_auth",
"shadow_active": false,
"shadow_versions": {
"program": null,
"issuer": null
},
"from": null,
"to": null,
"evaluated": 0,
"diverged": 0,
"divergence_rate": 0,
"transitions": {}
}Get issuer rule performance
GET/v1/authorize/issuer_policies/{scope}/performance
How a scope's issuer rules performed over a window of UTC days (default: the last 30): the authorizations each rule decided, their value, the outcome shares and the four labelled results. A decline or an ask is labelled once a member reviews it; an approve has no label. Rules in the version's order, then the fallback. Pro and above.
Parameters
scopestringpathRequiredissueror a program ID (iprg_).fromstringquery- The first UTC day, YYYY-MM-DD (default: 29 days before
to). tostringquery- The last UTC day, YYYY-MM-DD (default: today). A window covers at most 366 days.
versionintegerquery- Only the decisions this scope's version made (default: every version in the window, in the live version's rule order).
currencystringquery- The ISO 4217 currency values are summed in (default: the one with the most authorizations).
Returns
The scope's totals and each rule's numbers.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl "$PROVENANCE_API/v1/authorize/issuer_policies/issuer/performance" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/issuer/performance`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/authorize/issuer_policies/issuer/performance", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "policy_performance",
"domain": "issuer_auth",
"from": "2026-11-06",
"to": "2026-12-05",
"version": null,
"currency": null,
"other_currencies": [],
"totals": {
"matched": 0,
"value_minor": null,
"outcomes": [
{
"outcome": "approve",
"count": 0,
"value_minor": null,
"currency": null,
"share": 0
},
{
"outcome": "challenge",
"count": 0,
"value_minor": null,
"currency": null,
"share": 0
},
{
"outcome": "reject",
"count": 0,
"value_minor": null,
"currency": null,
"share": 0
}
],
"results": {
"true_positive": {
"count": 0,
"value_minor": null,
"currency": null
},
"false_positive": {
"count": 0,
"value_minor": null,
"currency": null
},
"missed": {
"count": 0,
"value_minor": null,
"currency": null
},
"allowed": {
"count": 0,
"value_minor": null,
"currency": null
},
"unlabelled": {
"count": 0,
"value_minor": null,
"currency": null
}
},
"labelled": 0,
"enough_labels": false
},
"rules": [
{
"rule_id": "fallback",
"name": null,
"outcomes": [],
"matched": 0,
"value_minor": null,
"results": {
"true_positive": {
"count": 0,
"value_minor": null,
"currency": null
},
"false_positive": {
"count": 0,
"value_minor": null,
"currency": null
},
"missed": {
"count": 0,
"value_minor": null,
"currency": null
},
"allowed": {
"count": 0,
"value_minor": null,
"currency": null
},
"unlabelled": {
"count": 0,
"value_minor": null,
"currency": null
}
}
}
],
"labels_note": "A decline counts as right or wrong only when a member reviews it; the rest show as No label yet."
}Get an issuer decision
GET/v1/authorize/issuer_decisions/{id}
Returns one issuer decision with the facts its rules read. Pro and above.
Parameters
idstringpathRequired- The decision's ID (
idec_).
Returns
The decision. See the issuer decision object.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_decisions" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"amount\": 4200,
\"currency\": \"USD\",
\"card\": {
\"token\": \"card_tok_fernhill_2\"
},
\"network\": {
\"program\": \"mastercard_agent_pay\",
\"agent_id\": \"mc-agent-7\"
}
}" > step.json
export DECISION=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/authorize/issuer_decisions/$DECISION" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_decisions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"amount": 4200,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_2"
},
"network": {
"program": "mastercard_agent_pay",
"agent_id": "mc-agent-7"
}
}),
})).json();
const decision = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_decisions/${decision}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_decisions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"amount": 4200,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_2"
},
"network": {
"program": "mastercard_agent_pay",
"agent_id": "mc-agent-7"
}
}).json()
decision = step2["id"]
data = httpx.get(f"{api}/v1/authorize/issuer_decisions/{decision}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "issuer_decision",
"id": "idec_01M8J1WE5P0D2VG2DASN63G98M",
"program_id": "iprg_01M8J1WE5NZ82HB8AX0D47J1KS",
"kind": "authorization",
"source": "api",
"authorization_id": null,
"card": {
"token": "card_tok_fernhill_2",
"last4": null
},
"amount": 4200,
"currency": "USD",
"merchant": {
"mcc": null,
"id": null,
"name": null,
"country": null,
"category": null
},
"agent": {
"token_requestor": null,
"network_program": "mastercard_agent_pay",
"basis": "network_marked",
"confidence": 1,
"key": "network_agent:mc-agent-7",
"heuristics": [],
"first_seen": true
},
"outcome": "no_opinion",
"action": "no_opinion",
"reason": "shadow_mode",
"rule": null,
"policy_versions": {
"program": null,
"issuer": 1
},
"shadow": null,
"mode": "shadow",
"latency_ms": 0,
"fail": null,
"facts": {
"auth.amount": 4200,
"auth.currency": "USD",
"auth.mcc": null,
"auth.merchant_id": null,
"auth.merchant_name": null,
"auth.merchant_country": null,
"auth.channel": null,
"auth.three_ds": null,
"card.token": "card_tok_fernhill_2",
"card.program": "iprg_01M8J1WE5NZ82HB8AX0D47J1KS",
"card.country": null,
"agent.token_requestor": null,
"agent.network_program": "mastercard_agent_pay",
"agent.key": "network_agent:mc-agent-7",
"agent.basis": "network_marked",
"agent.confidence": 1,
"agent.first_seen": true,
"agent.limit_remaining": null,
"approval.matched": false,
"intent.verifiable": null,
"agent.paused_on_card": false,
"device.new_for_cardholder": null,
"network.hosting": null,
"network.kind": null,
"network.provider": null
},
"limit": null,
"reservation_id": "ires_01M8J1WE5PHPD8GP3CQSK533JY",
"approval": {
"status": "none",
"approval_id": null,
"how": null
},
"review": null,
"three_ds": null,
"network": null,
"occurred_at": "2026-11-28T21:44:50.102Z",
"created_at": "2026-11-28T21:44:50.102Z"
}Get the issuer overview
GET/v1/authorize/issuer_overview
Returns a window's numbers for your card programs (or one): agent authorizations per hour or day by outcome, the ask rate, asks the cardholder answered against the 70% floor, decision time, deadline misses, limit declines, declines to review and the rule suggestions. When the decisions can't be read it answers 503 issuer_overview_unavailable, never zeros. Pro and above.
Parameters
windowenumquery- The window: the last 24 hours (by the hour), 7 or 30 days (by the UTC day). One of
24h,7d,30d. program_idstringquery- Only this program's (
iprg_).
Returns
The overview.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_decisions" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"authorization_id\": \"auth_4Tm8\",
\"amount\": 2400,
\"currency\": \"USD\",
\"card\": {
\"token\": \"card_tok_fernhill_4\",
\"last4\": \"9021\"
},
\"merchant\": {
\"mcc\": \"5411\",
\"id\": \"mid_greenleaf\",
\"name\": \"Greenleaf Grocers\",
\"country\": \"US\"
},
\"token\": {
\"requestor_id\": \"40010030273\",
\"requestor_type\": \"AI_AGENT\"
}
}" > /dev/null
curl "$PROVENANCE_API/v1/authorize/issuer_overview?window=7d&program_id=$PROGRAM" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_decisions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"authorization_id": "auth_4Tm8",
"amount": 2400,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_4",
"last4": "9021"
},
"merchant": {
"mcc": "5411",
"id": "mid_greenleaf",
"name": "Greenleaf Grocers",
"country": "US"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_overview?window=7d&program_id=${program}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_decisions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"authorization_id": "auth_4Tm8",
"amount": 2400,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_4",
"last4": "9021"
},
"merchant": {
"mcc": "5411",
"id": "mid_greenleaf",
"name": "Greenleaf Grocers",
"country": "US"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_overview?window=7d&program_id={program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "issuer_overview",
"window": "7d",
"program_id": "iprg_01M9219RZQBRNJTPKW34VXRBCN",
"from": "2026-11-28T02:42:29.498Z",
"to": "2026-12-05T02:42:29.498Z",
"bucket": "day",
"series": [
{
"start": "2026-11-29T00:00:00.000Z",
"allowed": 0,
"challenged": 0,
"rejected": 0,
"amount": 0
},
{
"start": "2026-11-30T00:00:00.000Z",
"allowed": 0,
"challenged": 0,
"rejected": 0,
"amount": 0
},
{
"start": "2026-12-01T00:00:00.000Z",
"allowed": 0,
"challenged": 0,
"rejected": 0,
"amount": 0
},
"… 4 more"
],
"totals": {
"authorizations": 1,
"previous_authorizations": 0,
"allowed": 1,
"challenged": 0,
"rejected": 0,
"no_rule": 1,
"amount": 2400,
"currency": "USD"
},
"ask_rate": 0,
"asks": {
"asked": 0,
"settled": 0,
"answered": 0,
"share": null,
"floor": 0.7
},
"decision_ms": {
"median": 0,
"p99": 0
},
"deadline_misses": {
"window": 0,
"last_24h": 0
},
"limit_declines": 0,
"needs_you": {
"to_review": 0,
"deadline_misses": 0,
"suggestions": 0
},
"suggestions": [],
"programs": {
"live": 1,
"shadow": 0
},
"card_limits": {
"limits": 0,
"cards": 0
},
"truncated": false
}Retrieve a card limit
GET/v1/authorize/issuer_card_limits/{id}
Returns one card limit with this window's spend and what is left. Pro and above.
Parameters
idstringpathRequired- The limit's ID (
ilim_).
Returns
The limit.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_card_limits" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"card_token\": \"card_tok_fernhill_3\",
\"agent_key\": \"token_requestor:40010030273\",
\"window\": \"month\",
\"cap\": 50000,
\"currency\": \"USD\"
}" > step.json
export LIMIT=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_decisions" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"authorization_id\": \"auth_fernhill_31\",
\"amount\": 12000,
\"currency\": \"USD\",
\"card\": {
\"token\": \"card_tok_fernhill_3\"
},
\"token\": {
\"requestor_id\": \"40010030273\",
\"requestor_type\": \"AI_AGENT\"
}
}" > /dev/null
curl "$PROVENANCE_API/v1/authorize/issuer_card_limits/$LIMIT" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_card_limits`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"card_token": "card_tok_fernhill_3",
"agent_key": "token_requestor:40010030273",
"window": "month",
"cap": 50000,
"currency": "USD"
}),
})).json();
const limit = step2.id;
const step3 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_decisions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"authorization_id": "auth_fernhill_31",
"amount": 12000,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_3"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_card_limits/${limit}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_card_limits", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"card_token": "card_tok_fernhill_3",
"agent_key": "token_requestor:40010030273",
"window": "month",
"cap": 50000,
"currency": "USD"
}).json()
limit = step2["id"]
step3 = httpx.post(f"{api}/v1/authorize/issuer_decisions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"authorization_id": "auth_fernhill_31",
"amount": 12000,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_3"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_card_limits/{limit}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "issuer_card_limit",
"id": "ilim_01M8B27A9J109WK4MTWM4BE3DS",
"program_id": "iprg_01M8B27A9J6WR2B0M7KKN5RJ4B",
"card_token": "card_tok_fernhill_3",
"agent_key": "token_requestor:40010030273",
"window": "month",
"cap": 50000,
"currency": "USD",
"per_transaction": null,
"locks": {
"mccs": [],
"merchants": []
},
"on_exceed": "reject",
"set_by": "issuer",
"version": 1,
"spent": 12000,
"remaining": 38000,
"window_start": "2026-11-01T00:00:00.000Z",
"created_at": "2026-11-26T04:36:05.554Z",
"updated_at": "2026-11-26T04:36:05.554Z"
}Retrieve an issuer approval
GET/v1/authorize/issuer_approvals/{id}
Returns one issuer approval; its status follows the cart approval behind it. Pro and above.
Parameters
idstringpathRequired- The approval's ID (
iapr_).
Returns
The approval.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_approvals" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"card_token\": \"card_tok_fernhill_4\",
\"agent_key\": \"token_requestor:40010030273\",
\"cart\": {
\"order_id\": \"ord_fernhill_43\",
\"total\": 24900,
\"currency\": \"USD\",
\"merchant_id\": \"brightbox\",
\"origin\": \"https://brightbox.example\",
\"items\": [
{
\"sku\": \"tv-55\",
\"name\": \"55-inch television\",
\"quantity\": 1,
\"unit_amount\": 24900
}
]
}
}" > step.json
export APPROVAL=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/authorize/issuer_approvals/$APPROVAL" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_approvals`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"card_token": "card_tok_fernhill_4",
"agent_key": "token_requestor:40010030273",
"cart": {
"order_id": "ord_fernhill_43",
"total": 24900,
"currency": "USD",
"merchant_id": "brightbox",
"origin": "https://brightbox.example",
"items": [
{
"sku": "tv-55",
"name": "55-inch television",
"quantity": 1,
"unit_amount": 24900
}
]
}
}),
})).json();
const approval = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_approvals/${approval}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_approvals", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"card_token": "card_tok_fernhill_4",
"agent_key": "token_requestor:40010030273",
"cart": {
"order_id": "ord_fernhill_43",
"total": 24900,
"currency": "USD",
"merchant_id": "brightbox",
"origin": "https://brightbox.example",
"items": [
{
"sku": "tv-55",
"name": "55-inch television",
"quantity": 1,
"unit_amount": 24900
}
]
}
}).json()
approval = step2["id"]
data = httpx.get(f"{api}/v1/authorize/issuer_approvals/{approval}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "issuer_approval",
"id": "iapr_01M8J1WE8H9YHNJ4AERS1J4QK1",
"program_id": "iprg_01M8J1WE8G8H4D9R3MRRRQA6G2",
"card_token": "card_tok_fernhill_4",
"agent_key": "token_requestor:40010030273",
"status": "pending",
"amount": 24900,
"currency": "USD",
"merchant": {
"domain": "brightbox.example",
"ids": [],
"descriptors": []
},
"tolerance": {
"percent": 0.1,
"amount": 0
},
"checkout_approval_id": "coap_01M8J1WE8GA03GQVRBM21Z1B7K",
"decision_id": null,
"used_by_decision_id": null,
"decided_at": null,
"used_at": null,
"use_by": "2026-11-29T21:44:50.193Z",
"three_ds": null,
"delivery": {
"mode": "provenance",
"via": "link_only"
},
"approval_context": null,
"created_at": "2026-11-28T21:44:50.193Z",
"updated_at": "2026-11-28T21:44:50.193Z",
"decided_via": null,
"decided_method": null,
"person_decision": null,
"decline_reason": null,
"decline_note": null
}Get a fresh approval link
POST/v1/authorize/issuer_approvals/{id}/link
Returns a fresh link to the approval for your app or push to show the cardholder (a decoupled 3-D Secure challenge's approval included). Earlier links keep working. 400 once the cardholder has answered. Pro and above.
Parameters
idstringpathRequired- The approval's ID (
iapr_).
Returns
The link.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_approvals" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"card_token\": \"card_tok_fernhill_4\",
\"agent_key\": \"token_requestor:40010030273\",
\"cart\": {
\"order_id\": \"ord_fernhill_44\",
\"total\": 24900,
\"currency\": \"USD\",
\"merchant_id\": \"brightbox\",
\"origin\": \"https://brightbox.example\",
\"items\": [
{
\"sku\": \"tv-55\",
\"name\": \"55-inch television\",
\"quantity\": 1,
\"unit_amount\": 24900
}
]
}
}" > step.json
export APPROVAL=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_approvals/$APPROVAL/link" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_approvals`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"card_token": "card_tok_fernhill_4",
"agent_key": "token_requestor:40010030273",
"cart": {
"order_id": "ord_fernhill_44",
"total": 24900,
"currency": "USD",
"merchant_id": "brightbox",
"origin": "https://brightbox.example",
"items": [
{
"sku": "tv-55",
"name": "55-inch television",
"quantity": 1,
"unit_amount": 24900
}
]
}
}),
})).json();
const approval = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_approvals/${approval}/link`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_approvals", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"card_token": "card_tok_fernhill_4",
"agent_key": "token_requestor:40010030273",
"cart": {
"order_id": "ord_fernhill_44",
"total": 24900,
"currency": "USD",
"merchant_id": "brightbox",
"origin": "https://brightbox.example",
"items": [
{
"sku": "tv-55",
"name": "55-inch television",
"quantity": 1,
"unit_amount": 24900
}
]
}
}).json()
approval = step2["id"]
data = httpx.post(f"{api}/v1/authorize/issuer_approvals/{approval}/link", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "issuer_approval_link",
"issuer_approval_id": "iapr_01M834BSZHG0CNTY1A5N8KD117",
"approve_url": "http://localhost:5173/approve/c/aXmeH8B8bIkiEY4t7JkjdQ",
"expires_at": "2026-11-23T02:54:34.385Z"
}Update a card program
PATCH/v1/authorize/issuer_programs/{id}
Changes the fields you send: name, processor, mode, fail mode, suspected-agent settings (merged), approval settings, or the issuer's app for the approval SDK. With processor credentials set, live needs the Enterprise plan (402 issuer_live_plan_required); shadow works on Pro and Growth. Pro and above; Manage policies.
Parameters
idstringpathRequired- The program's ID (
iprg_). namestring- The program's name.
processorenum- The card processor. One of
lithic,marqeta. modeenum- Shadow or live. One of
shadow,live. fail_modeenum- The fail mode. One of
processor_default,fail_open,fail_closed. suspectedobject- How a program finds suspected agents (purchases no network marked and no grant carries) and what a suspected match may do. By default a match is logged and notified only.
Show child attributes
thresholdnumber- A match below this confidence is ignored. Default 0.5.
heuristicsobject- Which heuristics run (all on by default).
Show child attributes
merchantboolean- The merchant is one of
agent_merchants. deviceboolean- 3-D Secure data shows a headless or hosted browser, or a device the cardholder never used.
velocityboolean- Several distinct merchants on one card in a short window.
networkboolean- The network flags the purchase as an agent's.
actionenumlog(default): record and notify only.ask: needs an approval.apply_rules: your rules apply as to a marked agent. One oflog,ask,apply_rules.agent_merchantsarray of strings- Patterns over the merchant id or name (
*any run,?one character). They add to your issuer's list and each card's (/v1/authorize/issuer_agent_merchants). inherit_agent_merchantsboolean- False leaves your issuer account's merchant list out of this program. Default true.
velocityobject- The velocity heuristic's window.
Show child attributes
window_secondsinteger- The window. Default 600.
distinct_merchantsinteger- Distinct merchants in the window that count. Default 4.
approvalsobject- A program's approval settings.
Show child attributes
tolerance_percentnumber- An authorization may be this much over the approved amount (0 to 0.5 of it; default 0.1).
tolerance_amountinteger- Plus this many minor units (default 0).
use_within_secondsinteger- How long after it is asked for an approval may be used (default 86400).
decoupled_three_dsboolean- Answer an ask at the 3-D Secure hooks with a challenge that a Provenance approval answers (default false).
deliveryenum- Who tells the cardholder: Provenance (
provenance, the default) or your own app's push (issuer_push: theauthorize.issuer_approval.requestedwebhook carries the link and token; with no endpoint taking it, Provenance sends to the contact given). One ofprovenance,issuer_push.
appobject | null- The issuer's mobile app, so the approval SDK can use platform passkeys on Provenance's domain: listed in
/.well-known/assetlinks.json(passkeys only) andapple-app-site-association(webcredentials), and the Android app's origin is accepted on this program's approvals. Null removes it.Show child attributes
android_packagestring | null- The Android application id (
com.bank.app); needsandroid_cert_sha256. android_cert_sha256array of strings- SHA-256 fingerprints of the app's signing certificates,
AA:BB:…(32 bytes). ios_app_idsarray of strings- iOS app ids,
TEAMID.bundle.id.
Returns
The program.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -X PATCH "$PROVENANCE_API/v1/authorize/issuer_programs/$PROGRAM" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"mode": "live",
"suspected": {
"action": "apply_rules",
"threshold": 0.6
}
}'const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs/${program}`, {
method: "PATCH",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"mode": "live",
"suspected": {
"action": "apply_rules",
"threshold": 0.6
}
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
data = httpx.patch(f"{api}/v1/authorize/issuer_programs/{program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"mode": "live",
"suspected": {
"action": "apply_rules",
"threshold": 0.6
}
}).json()Response 200
{
"object": "issuer_program",
"id": "iprg_01M8370B3YDSSW7TJVWRGBEMKB",
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live",
"fail_mode": "processor_default",
"suspected": {
"threshold": 0.6,
"heuristics": {
"merchant": true,
"device": true,
"velocity": true,
"network": true
},
"action": "apply_rules",
"agent_merchants": [],
"velocity": {
"window_seconds": 600,
"distinct_merchants": 4
}
},
"approvals": {
"tolerance_percent": 0.1,
"tolerance_amount": 0,
"use_within_seconds": 86400,
"decoupled_three_ds": false,
"delivery": "provenance"
},
"branding": null,
"app": null,
"processor_credentials": {
"configured": false,
"api_key": false,
"set_at": null
},
"created_at": "2026-11-23T03:25:44.446Z",
"updated_at": "2026-11-23T03:25:44.447Z"
}Set a program's processor credentials
POST/v1/authorize/issuer_programs/{id}/processor_credentials
Sets or rotates how the program's processor proves its decision hook requests. Lithic: send the ASA (and 3DS) HMAC secret Lithic gave you (whsec_…); it is kept sealed and never read back. Marqeta: send an empty body and configure the Basic credentials returned (the password is shown once). Returns the hook URLs. Pro and above; Manage policies.
Parameters
idstringpathRequired- The program's ID (
iprg_). webhook_secretstring- Lithic only: the HMAC secret (
whsec_…). events_webhook_secretstring- Lithic only: the transaction-event webhook's secret, when it differs.
api_keystring- Lithic only: an API key, to answer decoupled 3-D Secure challenges (sealed, never read back).
Returns
The credentials are set.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_programs/$PROGRAM/processor_credentials" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "webhook_secret": "whsec_c2FuZGJveC1vbmx5LWZha2Utc2VjcmV0LTE3MQ==" }'const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs/${program}/processor_credentials`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "webhook_secret": "whsec_c2FuZGJveC1vbmx5LWZha2Utc2VjcmV0LTE3MQ==" }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
data = httpx.post(f"{api}/v1/authorize/issuer_programs/{program}/processor_credentials", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"webhook_secret": "whsec_c2FuZGJveC1vbmx5LWZha2Utc2VjcmV0LTE3MQ=="
}).json()Response 200
{
"object": "issuer_processor_credentials",
"program_id": "iprg_01M8D8YP3SVQ56XGJHVPBXK0BD",
"processor": "lithic",
"configured": true,
"set_at": "2026-11-27T01:12:11.642Z",
"hook_urls": {
"lithic_asa": "/v1/authorize/issuer_events/iprg_01M8D8YP3SVQ56XGJHVPBXK0BD/lithic_asa",
"lithic_three_ds": "/v1/authorize/issuer_events/iprg_01M8D8YP3SVQ56XGJHVPBXK0BD/lithic_three_ds",
"lithic_transactions": "/v1/authorize/issuer_events/iprg_01M8D8YP3SVQ56XGJHVPBXK0BD/lithic_transactions"
}
}Set a program's approval branding
PUT/v1/authorize/issuer_programs/{id}/branding
Sets the program's approval branding (name, logo, colours, help link; your account branding's contrast floors) for its page, emails and texts. Partial; null clears a field. powered_by: false leaves out "Powered by Provenance" on the Enterprise plan (else 402); the security line shows in its place. Pro and above.
Parameters
idstringpathRequired- The program's ID (
iprg_). namestring | null- The display name (at most 40 characters, no link or phone number, never "Provenance").
primarystring | null- The button colour,
#RRGGBB(white text on it at 4.5:1 or more). secondarystring | null- The page background,
#RRGGBB(the page text on it at 7:1 or more). accentstring | null- The link colour,
#RRGGBB(4.5:1 or more on white and on the secondary colour). help_urlstring | null- An https link to your help page.
powered_byboolean- False leaves out "Powered by Provenance" (Enterprise). Default true.
page_themeenum- The theme the program's approval pages open in. Default
dark. One ofdark,light. theme_switchboolean- Whether the cardholder may switch the page's theme. Default true.
logoobject | null- A new logo, or null to remove it.
Show child attributes
data_base64string- A PNG, JPEG or WebP image, base64 (at most 200 KB and 1024 px on a side; SVG isn't accepted).
Returns
The program, with its branding.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"approvals": {
"delivery": "issuer_push"
}
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -X PUT "$PROVENANCE_API/v1/authorize/issuer_programs/$PROGRAM/branding" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill Bank",
"primary": "#1D4ED8",
"help_url": "https://help.fernhill.example/cards",
"powered_by": false,
"page_theme": "dark",
"theme_switch": true
}'const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"approvals": {
"delivery": "issuer_push"
}
}),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs/${program}/branding`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill Bank",
"primary": "#1D4ED8",
"help_url": "https://help.fernhill.example/cards",
"powered_by": false,
"page_theme": "dark",
"theme_switch": true
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"approvals": {
"delivery": "issuer_push"
}
}).json()
program = step1["id"]
data = httpx.put(f"{api}/v1/authorize/issuer_programs/{program}/branding", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill Bank",
"primary": "#1D4ED8",
"help_url": "https://help.fernhill.example/cards",
"powered_by": False,
"page_theme": "dark",
"theme_switch": True
}).json()Response 200
{
"object": "issuer_program",
"id": "iprg_01M84P41329JCJGXVK8YGN37HH",
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "shadow",
"fail_mode": "processor_default",
"suspected": {
"threshold": 0.5,
"heuristics": {
"merchant": true,
"device": true,
"velocity": true,
"network": true
},
"action": "log",
"agent_merchants": [],
"velocity": {
"window_seconds": 600,
"distinct_merchants": 4
}
},
"approvals": {
"tolerance_percent": 0.1,
"tolerance_amount": 0,
"use_within_seconds": 86400,
"decoupled_three_ds": false,
"delivery": "issuer_push"
},
"branding": {
"name": "Fernhill Bank",
"logo_url": null,
"primary": "#1D4ED8",
"secondary": null,
"accent": null,
"help_url": "https://help.fernhill.example/cards",
"powered_by": false,
"page_theme": "dark",
"theme_switch": true
},
"app": null,
"processor_credentials": {
"configured": false,
"api_key": false,
"set_at": null
},
"created_at": "2026-11-23T17:09:08.322Z",
"updated_at": "2026-11-23T17:09:08.324Z"
}Set a program's cardholder controls
PUT/v1/authorize/issuer_programs/{id}/cardholder_controls
Turns cardholder controls on or off for a program, with your maximum per agent. With them on, your cardholders set their cards' agent limits from Provenance, within max_cap and never above a limit you set (the stricter wins); their writes are your card limits, set_by: cardholder. Needs Manage policies.
Parameters
idstringpathRequired- The program's ID (
iprg_). enabledbooleanRequired- True turns cardholder controls on.
max_capinteger | null- The most a cardholder may set for one agent, in minor units per window (null: no maximum of its own).
allow_card_wide_capboolean- True lets cardholders set a cap across every agent on the card.
allow_new_agentsboolean- True lets cardholders limit an agent you haven't seen on the card.
Returns
The program's cardholder controls.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -X PUT "$PROVENANCE_API/v1/authorize/issuer_programs/$PROGRAM/cardholder_controls" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "enabled": true, "max_cap": 20000, "allow_new_agents": true }'const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs/${program}/cardholder_controls`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "enabled": true, "max_cap": 20000, "allow_new_agents": true }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
data = httpx.put(f"{api}/v1/authorize/issuer_programs/{program}/cardholder_controls", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"enabled": True,
"max_cap": 20000,
"allow_new_agents": True
}).json()Response 200
{
"object": "cardholder_controls",
"program_id": "iprg_01M882BXSH7F8ZXJDK6XW9X33Q",
"enabled": true,
"max_cap": 20000,
"allow_card_wide_cap": false,
"allow_new_agents": true
}Set suspected-agent merchants for the issuer or a card
PUT/v1/authorize/issuer_agent_merchants
Sets the merchant patterns that mark a purchase as a suspected agent's, for your issuer account (scope: issuer, every program) or one card (scope: card). They add to the program's own list; inherit: false on a card leaves the broader lists out for it. One list per scope: a second write replaces it (200). Pro and above; Manage policies.
Parameters
scopeenumRequiredissuer(every program) orcard. One ofissuer,card.program_idstring- The card's program (
cardscope only). card_tokenstring- The processor's card token (
cardscope only). A card number is refused. patternsarray of stringsRequired- Patterns over the merchant id or name.
inheritbooleancardscope only: false leaves out the issuer's and the program's lists. Default true.
Returns
The list, replaced (same id).
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -X PUT "$PROVENANCE_API/v1/authorize/issuer_agent_merchants" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"scope\": \"card\",
\"program_id\": \"$PROGRAM\",
\"card_token\": \"card_tok_fernhill_7\",
\"patterns\": [
\"ROBOSHOP*\",
\"174030075991\"
]
}"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_agent_merchants`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"scope": "card",
"program_id": program,
"card_token": "card_tok_fernhill_7",
"patterns": [
"ROBOSHOP*",
"174030075991"
]
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
data = httpx.put(f"{api}/v1/authorize/issuer_agent_merchants", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"scope": "card",
"program_id": program,
"card_token": "card_tok_fernhill_7",
"patterns": [
"ROBOSHOP*",
"174030075991"
]
}).json()Response 200
{
"object": "issuer_agent_merchant_list",
"id": "iaml_01M838TY08YX57W8KM7BVQKXV3",
"scope": "card",
"program_id": "iprg_01M838TY01NF7N914M5JK2Y22D",
"card_token": "card_tok_fernhill_7",
"patterns": [
"ROBOSHOP*"
],
"inherit": false,
"created_at": "2026-11-23T03:57:44.328Z",
"updated_at": "2026-11-23T04:02:10.511Z"
}Set a card limit for an agent
POST/v1/authorize/issuer_card_limits
Sets one agent's spending limit on one card: a cap per day, week, month or lifetime, an optional per-purchase cap, merchant locks, and decline or ask when a purchase is over it. Agent key * covers each agent without its own limit. Setting it again replaces it (200, same id). Pro and above; Manage policies.
Parameters
program_idstringRequired- The program (
iprg_). card_tokenstringRequired- The processor's card token (a card number is refused).
agent_keystringRequired- The agent key as decisions show it (
agent.key), or*. windowenumRequired- The window. One of
day,week,month,lifetime. capintegerRequired- The cap, in minor units.
currencystringRequired- The cap's currency.
per_transactioninteger | null- The most one purchase may be.
locksobject- Allow-lists (empty: any).
Show child attributes
mccsarray of strings- Merchant category codes.
merchantsarray of strings- Globs over the merchant id or descriptor.
on_exceedenum- Default
decline. One ofdecline,ask.
Returns
An existing limit was replaced.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_card_limits" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"card_token\": \"card_tok_fernhill_3\",
\"agent_key\": \"token_requestor:40010030273\",
\"window\": \"month\",
\"cap\": 50000,
\"currency\": \"USD\",
\"per_transaction\": 25000,
\"locks\": {
\"mccs\": [
\"5732\",
\"5734\"
]
}
}"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_card_limits`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"card_token": "card_tok_fernhill_3",
"agent_key": "token_requestor:40010030273",
"window": "month",
"cap": 50000,
"currency": "USD",
"per_transaction": 25000,
"locks": {
"mccs": [
"5732",
"5734"
]
}
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
data = httpx.post(f"{api}/v1/authorize/issuer_card_limits", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"card_token": "card_tok_fernhill_3",
"agent_key": "token_requestor:40010030273",
"window": "month",
"cap": 50000,
"currency": "USD",
"per_transaction": 25000,
"locks": {
"mccs": [
"5732",
"5734"
]
}
}).json()Response 200
{
"object": "issuer_card_limit",
"id": "ilim_01M832WPDCWJSWX7MX5TNGMH35",
"program_id": "iprg_01M832WPD4ZS4C1Z20PN5A3W9D",
"card_token": "card_tok_fernhill_3",
"agent_key": "token_requestor:40010030273",
"window": "month",
"cap": 50000,
"currency": "USD",
"per_transaction": 25000,
"locks": {
"mccs": [
"5732",
"5734"
],
"merchants": []
},
"on_exceed": "reject",
"spent": 0,
"remaining": 50000,
"window_start": "2026-11-01T00:00:00.000Z",
"created_at": "2026-11-23T02:13:50.636Z",
"updated_at": "2026-11-23T02:13:50.636Z"
}List the issuer facts
GET/v1/authorize/issuer_facts
The facts an issuer rule can read, each with its type, where it comes from and what it means, and the weight of each suspected-agent heuristic. A fact your processor doesn't send is null, and a rule on a null fact doesn't match. Pro and above.
Parameters
No parameters.
Returns
The fact catalog.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl "$PROVENANCE_API/v1/authorize/issuer_facts" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_facts`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/authorize/issuer_facts", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "list",
"data": [
{
"object": "issuer_fact",
"fact": "auth.amount",
"type": "number",
"source": "authorization",
"meaning": "Amount in minor units (cents)"
},
{
"object": "issuer_fact",
"fact": "auth.currency",
"type": "string",
"source": "authorization",
"meaning": "ISO 4217 currency"
},
{
"object": "issuer_fact",
"fact": "auth.mcc",
"type": "string",
"source": "authorization",
"meaning": "Merchant category code"
},
"… 22 more"
],
"has_more": false,
"heuristic_weights": {
"merchant": 0.5,
"device_automated": 0.6,
"device_unknown": 0.2,
"velocity": 0.4,
"network": 0.7
}
}List card programs
GET/v1/authorize/issuer_programs
Returns your card programs, oldest first. Pro and above.
Parameters
limitintegerquery- Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery- Opaque; pass a response's
next_cursorback to get the next page.
Returns
A page of programs.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > /dev/null
curl "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "list",
"data": [
{
"object": "issuer_program",
"id": "iprg_01M8370B3JQBAPFGRWEYQST5G3",
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "shadow",
"fail_mode": "processor_default",
"suspected": {
"threshold": 0.5,
"heuristics": {
"merchant": true,
"device": true,
"velocity": true,
"network": true
},
"action": "log",
"agent_merchants": [
"AGENTSHOP*"
],
"velocity": {
"window_seconds": 600,
"distinct_merchants": 4
}
},
"approvals": {
"tolerance_percent": 0.1,
"tolerance_amount": 0,
"use_within_seconds": 86400,
"decoupled_three_ds": false,
"delivery": "provenance"
},
"branding": null,
"app": null,
"processor_credentials": {
"configured": false,
"api_key": false,
"set_at": null
},
"created_at": "2026-11-23T03:25:44.434Z",
"updated_at": "2026-11-23T03:25:44.434Z"
},
{
"object": "issuer_program",
"id": "iprg_01M8370B3RM2B683QANBY0PJPY",
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "shadow",
"fail_mode": "processor_default",
"suspected": {
"threshold": 0.5,
"heuristics": {
"merchant": true,
"device": true,
"velocity": true,
"network": true
},
"action": "log",
"agent_merchants": [],
"velocity": {
"window_seconds": 600,
"distinct_merchants": 4
}
},
"approvals": {
"tolerance_percent": 0.1,
"tolerance_amount": 0,
"use_within_seconds": 86400,
"decoupled_three_ds": false,
"delivery": "provenance"
},
"branding": null,
"app": null,
"processor_credentials": {
"configured": false,
"api_key": false,
"set_at": null
},
"created_at": "2026-11-23T03:25:44.440Z",
"updated_at": "2026-11-23T03:25:44.440Z"
}
],
"has_more": false,
"next_cursor": null
}List issuer rule versions
GET/v1/authorize/issuer_policies/{scope}/versions
Every version of a scope's rules, newest first: which is live, which are drafts and which is in shadow. Pro and above.
Parameters
scopestringpathRequiredissueror a program ID (iprg_).limitintegerquery- Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery- Opaque; pass a response's
next_cursorback to get the next page.
Returns
A page of versions.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X PUT "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"document": {
"rules": [
{
"when": [
{
"fact": "auth.mcc",
"op": "eq",
"value": "7995"
}
],
"require": {
"deny": true
}
}
]
}
}' > /dev/null
curl "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM/versions" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"document": {
"rules": [
{
"when": [
{
"fact": "auth.mcc",
"op": "eq",
"value": "7995"
}
],
"require": {
"deny": true
}
}
]
}
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}/versions`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
step2 = httpx.put(f"{api}/v1/authorize/issuer_policies/{program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"document": {
"rules": [
{
"when": [
{
"fact": "auth.mcc",
"op": "eq",
"value": "7995"
}
],
"require": {
"deny": True
}
}
]
}
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_policies/{program}/versions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "list",
"data": [
{
"object": "policy_version",
"domain": "issuer_auth",
"scope": "iprg_01M82YKHJFPSJP1K70KSYM7FX0",
"version": 1,
"active": true,
"note": null,
"created_by": "key_01M82YKH39SH61QR93X9E26SXN",
"created_at": "2026-11-23T00:58:56.464Z"
}
],
"has_more": false,
"next_cursor": null
}List issuer decisions
GET/v1/authorize/issuer_decisions
Returns your issuer decisions, newest first, filtered by program, basis, card token or time. Pro and above.
Parameters
program_idstringquery- Only this program's (
iprg_). basisenumquery- Only this basis. One of
network_marked,provenance_grant,suspected,none. card_tokenstringquery- Only this card (the processor's token).
created_gtetimestampquery- Created at or after.
created_ltetimestampquery- Created at or before.
outcomeenumquery- Only decisions the rules decided this way (
approve,declineandaskare still accepted). One ofallow,reject,challenge,no_opinion,approve,decline,ask. agent_keystringquery- Only this agent's (
agent.key). qstringquery- Text in the decision or authorization id, the merchant's id or name, the card's token or last four, or the agent key.
reviewenumqueryto_review: a decline nobody reviewed that the cardholder approved afterwards or whose agent was only suspected;reviewedornot_reviewed; or one verdict. One ofto_review,reviewed,not_reviewed,right,should_have_approved.sortenumquery- The order of the list:
created,amount, with-in front for descending. Newest first when omitted. Anext_cursorcarries its order; pass it back with the samesort. One ofcreated,-created,amount,-amount. limitintegerquery- Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery- Opaque; pass a response's
next_cursorback to get the next page.
Returns
A page of decisions.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl "$PROVENANCE_API/v1/authorize/issuer_decisions?basis=network_marked" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_decisions?basis=network_marked`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/authorize/issuer_decisions?basis=network_marked", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "list",
"data": [
{
"object": "issuer_decision",
"id": "idec_01M8J1WE5G3KH98Y4M0Z9FZD3Y",
"program_id": "iprg_01M8J1WE59S39M65EV1JJ1DV1C",
"kind": "authorization",
"source": "api",
"authorization_id": "auth_7Hq2",
"card": {
"token": "card_tok_fernhill_1",
"last4": "4242"
},
"amount": 24900,
"currency": "USD",
"merchant": {
"mcc": "5732",
"id": "mid_brightbox",
"name": "Brightbox Electronics",
"country": "US",
"category": "goods"
},
"agent": {
"token_requestor": "40010030273",
"network_program": null,
"basis": "network_marked",
"confidence": 1,
"key": "token_requestor:40010030273",
"heuristics": [],
"first_seen": true
},
"outcome": "challenge",
"action": "decline",
"reason": "approval_required",
"rule": {
"id": "rul_01M8J1WE5ATCHYDXE6P4JZQ6XP",
"scope": "issuer"
},
"policy_versions": {
"program": null,
"issuer": 1
},
"shadow": null,
"mode": "live",
"latency_ms": 1,
"fail": null,
"facts": {
"auth.amount": 24900,
"auth.currency": "USD",
"auth.mcc": "5732",
"auth.merchant_id": "mid_brightbox",
"auth.merchant_name": "Brightbox Electronics",
"auth.merchant_country": "US",
"auth.channel": "ecommerce",
"auth.three_ds": null,
"card.token": "card_tok_fernhill_1",
"card.program": "iprg_01M8J1WE59S39M65EV1JJ1DV1C",
"card.country": null,
"agent.token_requestor": "40010030273",
"agent.network_program": null,
"agent.key": "token_requestor:40010030273",
"agent.basis": "network_marked",
"agent.confidence": 1,
"agent.first_seen": true,
"agent.limit_remaining": null,
"approval.matched": false,
"intent.verifiable": null,
"agent.paused_on_card": false,
"device.new_for_cardholder": null,
"network.hosting": null,
"network.kind": null,
"network.provider": null
},
"limit": null,
"reservation_id": null,
"approval": {
"status": "none",
"approval_id": null,
"how": null
},
"review": null,
"three_ds": null,
"network": null,
"occurred_at": "2026-11-22T15:04:05.000Z",
"created_at": "2026-11-28T21:44:50.097Z"
}
],
"has_more": false,
"next_cursor": null
}List suspected-agent merchant lists
GET/v1/authorize/issuer_agent_merchants
Your issuer's list and each card's, oldest first. Filter by scope, program_id or card_token. Pro and above.
Parameters
scopeenumquery- Only this scope. One of
issuer,card. program_idstringquery- Only this program's cards.
card_tokenstringquery- Only this card.
limitintegerquery- Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery- Opaque; pass a response's
next_cursorback to get the next page.
Returns
The lists.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X PUT "$PROVENANCE_API/v1/authorize/issuer_agent_merchants" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"scope\": \"card\",
\"program_id\": \"$PROGRAM\",
\"card_token\": \"card_tok_fernhill_8\",
\"patterns\": [
\"ROBOSHOP*\"
],
\"inherit\": false
}" > /dev/null
curl "$PROVENANCE_API/v1/authorize/issuer_agent_merchants?program_id=$PROGRAM" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_agent_merchants`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"scope": "card",
"program_id": program,
"card_token": "card_tok_fernhill_8",
"patterns": [
"ROBOSHOP*"
],
"inherit": false
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_agent_merchants?program_id=${program}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
step2 = httpx.put(f"{api}/v1/authorize/issuer_agent_merchants", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"scope": "card",
"program_id": program,
"card_token": "card_tok_fernhill_8",
"patterns": [
"ROBOSHOP*"
],
"inherit": False
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_agent_merchants?program_id={program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "list",
"data": [
{
"object": "issuer_agent_merchant_list",
"id": "iaml_01M838TY0B4S0JCJPT8YKZH634",
"scope": "card",
"program_id": "iprg_01M838TY0AYQ50W2G8DPPZMX9E",
"card_token": "card_tok_fernhill_8",
"patterns": [
"ROBOSHOP*"
],
"inherit": false,
"created_at": "2026-11-23T03:57:44.331Z",
"updated_at": "2026-11-23T03:57:44.331Z"
}
],
"has_more": false,
"next_cursor": null
}List card limits
GET/v1/authorize/issuer_card_limits
Returns your card limits per agent, oldest first, each with this window's spend. Filter by program, card token or agent key. Pro and above.
Parameters
program_idstringquery- Only this program's (
iprg_). card_tokenstringquery- Only this card (the processor's token).
agent_keystringquery- Only this agent key (or
*). sortenumquery- The order of the list:
remaining,created, with-in front for descending. Newest first when omitted. A limit for every other agent (*) has no single remaining amount and sorts last. Anext_cursorcarries its order; pass it back with the samesort. One ofremaining,-remaining,created,-created. limitintegerquery- Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery- Opaque; pass a response's
next_cursorback to get the next page.
Returns
A page of limits.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_card_limits" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"card_token\": \"card_tok_fernhill_3\",
\"agent_key\": \"token_requestor:40010030273\",
\"window\": \"month\",
\"cap\": 50000,
\"currency\": \"USD\"
}" > /dev/null
curl "$PROVENANCE_API/v1/authorize/issuer_card_limits?program_id=$PROGRAM" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_card_limits`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"card_token": "card_tok_fernhill_3",
"agent_key": "token_requestor:40010030273",
"window": "month",
"cap": 50000,
"currency": "USD"
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_card_limits?program_id=${program}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_card_limits", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"card_token": "card_tok_fernhill_3",
"agent_key": "token_requestor:40010030273",
"window": "month",
"cap": 50000,
"currency": "USD"
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_card_limits?program_id={program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "list",
"data": [
{
"object": "issuer_card_limit",
"id": "ilim_01M8B27A9GM6PZ11QM67BM1PGZ",
"program_id": "iprg_01M8B27A9GYKSNMX8QG16CYP6Q",
"card_token": "card_tok_fernhill_3",
"agent_key": "token_requestor:40010030273",
"window": "month",
"cap": 50000,
"currency": "USD",
"per_transaction": null,
"locks": {
"mccs": [],
"merchants": []
},
"on_exceed": "reject",
"set_by": "issuer",
"version": 1,
"spent": 0,
"remaining": 50000,
"window_start": "2026-11-01T00:00:00.000Z",
"created_at": "2026-11-26T04:36:05.552Z",
"updated_at": "2026-11-26T04:36:05.552Z"
}
],
"has_more": false,
"next_cursor": null
}List paused agents
GET/v1/authorize/issuer_agent_pauses
Lists the agents paused on your cards, by the cardholder or by your staff.
Parameters
program_idstringquery- Only this program.
card_tokenstringquery- Only this card.
Returns
The pauses.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_agent_pauses" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"card_token\": \"card_tok_fernhill_9\",
\"agent_key\": \"token_requestor:40010030273\",
\"reason\": \"Reported by the cardholder\"
}" > /dev/null
curl "$PROVENANCE_API/v1/authorize/issuer_agent_pauses?program_id=$PROGRAM" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_agent_pauses`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"card_token": "card_tok_fernhill_9",
"agent_key": "token_requestor:40010030273",
"reason": "Reported by the cardholder"
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_agent_pauses?program_id=${program}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_agent_pauses", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"card_token": "card_tok_fernhill_9",
"agent_key": "token_requestor:40010030273",
"reason": "Reported by the cardholder"
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_agent_pauses?program_id={program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "list",
"data": [
{
"object": "issuer_agent_pause",
"id": "ilim_01M8J1WE74Z879HBXB4X2GK5GR",
"program_id": "iprg_01M8J1WE73R8AGMXD8FZ1X1Y4W",
"card_token": "card_tok_fernhill_9",
"agent_key": "token_requestor:40010030273",
"paused_by": "issuer",
"reason": "Reported by the cardholder",
"created_at": "2026-11-28T21:44:50.148Z"
}
],
"has_more": false,
"next_cursor": null
}List the reservation ledger
GET/v1/authorize/issuer_reservations
Returns the reservation ledger behind your card limits, newest first: one row per authorization held for an agent on a card, with what is held, settled and refunded. Filter by program, card token or agent key. Pro and above.
Parameters
program_idstringquery- Only this program's (
iprg_). card_tokenstringquery- Only this card (the processor's token).
agent_keystringquery- Only this agent key.
limitintegerquery- Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery- Opaque; pass a response's
next_cursorback to get the next page.
Returns
A page of ledger rows.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_decisions" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"authorization_id\": \"auth_fernhill_32\",
\"amount\": 12000,
\"currency\": \"USD\",
\"card\": {
\"token\": \"card_tok_fernhill_3\"
},
\"token\": {
\"requestor_id\": \"40010030273\",
\"requestor_type\": \"AI_AGENT\"
}
}" > /dev/null
curl "$PROVENANCE_API/v1/authorize/issuer_reservations?program_id=$PROGRAM" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_decisions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"authorization_id": "auth_fernhill_32",
"amount": 12000,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_3"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_reservations?program_id=${program}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_decisions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"authorization_id": "auth_fernhill_32",
"amount": 12000,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_3"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_reservations?program_id={program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "list",
"data": [
{
"object": "issuer_reservation",
"id": "ires_01M832WPDWBNC6PQTH4EXNVP7F",
"program_id": "iprg_01M832WPDVN02RWEHQK673FHW6",
"card_token": "card_tok_fernhill_3",
"agent_key": "token_requestor:40010030273",
"authorization_id": "auth_fernhill_32",
"decision_id": "idec_01M832WPDWG62RMYX53QDVEE67",
"limit_id": null,
"currency": "USD",
"authorized": 12000,
"held": 12000,
"settled": 0,
"refunded": 0,
"status": "held",
"occurred_at": "2026-11-23T02:13:50.652Z",
"expires_at": "2026-11-30T02:13:50.652Z",
"updated_at": "2026-11-23T02:13:50.652Z"
}
],
"has_more": false,
"next_cursor": null
}List issuer approvals
GET/v1/authorize/issuer_approvals
Returns your issuer approvals, newest first, filtered by program, card token or status. Pro and above.
Parameters
program_idstringquery- Only this program's (
iprg_). card_tokenstringquery- Only this card (the processor's token).
statusenumquery- Only this status. One of
pending,approved,declined,expired,used. limitintegerquery- Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery- Opaque; pass a response's
next_cursorback to get the next page.
Returns
A page of approvals.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_approvals" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"card_token\": \"card_tok_fernhill_4\",
\"agent_key\": \"token_requestor:40010030273\",
\"cart\": {
\"order_id\": \"ord_fernhill_42\",
\"total\": 24900,
\"currency\": \"USD\",
\"merchant_id\": \"brightbox\",
\"origin\": \"https://brightbox.example\",
\"items\": [
{
\"sku\": \"tv-55\",
\"name\": \"55-inch television\",
\"quantity\": 1,
\"unit_amount\": 24900
}
]
}
}" > /dev/null
curl "$PROVENANCE_API/v1/authorize/issuer_approvals?program_id=$PROGRAM" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_approvals`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"card_token": "card_tok_fernhill_4",
"agent_key": "token_requestor:40010030273",
"cart": {
"order_id": "ord_fernhill_42",
"total": 24900,
"currency": "USD",
"merchant_id": "brightbox",
"origin": "https://brightbox.example",
"items": [
{
"sku": "tv-55",
"name": "55-inch television",
"quantity": 1,
"unit_amount": 24900
}
]
}
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_approvals?program_id=${program}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_approvals", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"card_token": "card_tok_fernhill_4",
"agent_key": "token_requestor:40010030273",
"cart": {
"order_id": "ord_fernhill_42",
"total": 24900,
"currency": "USD",
"merchant_id": "brightbox",
"origin": "https://brightbox.example",
"items": [
{
"sku": "tv-55",
"name": "55-inch television",
"quantity": 1,
"unit_amount": 24900
}
]
}
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_approvals?program_id={program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "list",
"data": [
{
"object": "issuer_approval",
"id": "iapr_01M8J1WE8BYQD6PN95VMMCSMT8",
"program_id": "iprg_01M8J1WE8AJTXT3RBZKBYE4JRT",
"card_token": "card_tok_fernhill_4",
"agent_key": "token_requestor:40010030273",
"status": "pending",
"amount": 24900,
"currency": "USD",
"merchant": {
"domain": "brightbox.example",
"ids": [],
"descriptors": []
},
"tolerance": {
"percent": 0.1,
"amount": 0
},
"checkout_approval_id": "coap_01M8J1WE8BX5K3N97KX5QW9DK9",
"decision_id": null,
"used_by_decision_id": null,
"decided_at": null,
"used_at": null,
"use_by": "2026-11-29T21:44:50.187Z",
"three_ds": null,
"delivery": {
"mode": "provenance",
"via": "link_only"
},
"approval_context": null,
"created_at": "2026-11-28T21:44:50.187Z",
"updated_at": "2026-11-28T21:44:50.187Z",
"decided_via": null,
"decided_method": null,
"person_decision": null,
"decline_reason": null,
"decline_note": null
}
],
"has_more": false,
"next_cursor": null
}List the merchant table
GET/v1/authorize/issuer_merchants
Returns the merchant-matching table, oldest first, for a program or all of yours. Pro and above.
Parameters
program_idstringquery- Only this program's (
iprg_). limitintegerquery- Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery- Opaque; pass a response's
next_cursorback to get the next page.
Returns
A page of rows.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_merchants" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"domain\": \"brightbox.example\",
\"merchant_ids\": [
\"174030075991\"
]
}" > /dev/null
curl "$PROVENANCE_API/v1/authorize/issuer_merchants?program_id=$PROGRAM" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_merchants`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"domain": "brightbox.example",
"merchant_ids": [
"174030075991"
]
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_merchants?program_id=${program}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_merchants", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"domain": "brightbox.example",
"merchant_ids": [
"174030075991"
]
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_merchants?program_id={program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "list",
"data": [
{
"object": "issuer_merchant",
"id": "imer_01M834BSZRY45X5297ST5QJQNC",
"program_id": "iprg_01M834BSZQ1FKRQBYJRP4HQXTV",
"domain": "brightbox.example",
"merchant_ids": [
"174030075991"
],
"descriptors": [],
"created_at": "2026-11-23T02:39:34.392Z",
"updated_at": "2026-11-23T02:39:34.392Z"
}
],
"has_more": false,
"next_cursor": null
}Remove a suspected-agent merchant list
DELETE/v1/authorize/issuer_agent_merchants/{id}
Removes the issuer's list or a card's. Pro and above; Manage policies.
Parameters
idstringpathRequired- The list's ID (
iaml_).
Returns
The list was removed.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X PUT "$PROVENANCE_API/v1/authorize/issuer_agent_merchants" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"scope\": \"card\",
\"program_id\": \"$PROGRAM\",
\"card_token\": \"card_tok_fernhill_9\",
\"patterns\": [
\"ROBOSHOP*\"
]
}" > step.json
export LIST=$(jq -r '.id' step.json)
curl -X DELETE "$PROVENANCE_API/v1/authorize/issuer_agent_merchants/$LIST" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_agent_merchants`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"scope": "card",
"program_id": program,
"card_token": "card_tok_fernhill_9",
"patterns": [
"ROBOSHOP*"
]
}),
})).json();
const list = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_agent_merchants/${list}`, {
method: "DELETE",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
step2 = httpx.put(f"{api}/v1/authorize/issuer_agent_merchants", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"scope": "card",
"program_id": program,
"card_token": "card_tok_fernhill_9",
"patterns": [
"ROBOSHOP*"
]
}).json()
list = step2["id"]
data = httpx.delete(f"{api}/v1/authorize/issuer_agent_merchants/{list}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "issuer_agent_merchant_list",
"id": "iaml_01M838TY0EE5815KS49GFYGE0A",
"deleted": true
}Remove a card limit
DELETE/v1/authorize/issuer_card_limits/{id}
Removes a card limit. The reservation ledger keeps its rows, so a limit set again counts the window's spend so far. Pro and above; Manage policies.
Parameters
idstringpathRequired- The limit's ID (
ilim_).
Returns
The limit was removed.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_card_limits" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"card_token\": \"card_tok_fernhill_3\",
\"agent_key\": \"*\",
\"window\": \"day\",
\"cap\": 10000,
\"currency\": \"USD\"
}" > step.json
export LIMIT=$(jq -r '.id' step.json)
curl -X DELETE "$PROVENANCE_API/v1/authorize/issuer_card_limits/$LIMIT" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_card_limits`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"card_token": "card_tok_fernhill_3",
"agent_key": "*",
"window": "day",
"cap": 10000,
"currency": "USD"
}),
})).json();
const limit = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_card_limits/${limit}`, {
method: "DELETE",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_card_limits", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"card_token": "card_tok_fernhill_3",
"agent_key": "*",
"window": "day",
"cap": 10000,
"currency": "USD"
}).json()
limit = step2["id"]
data = httpx.delete(f"{api}/v1/authorize/issuer_card_limits/{limit}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "issuer_card_limit",
"id": "ilim_01M8B27A9PKM878XMK0BSYP0J0",
"deleted": true
}Remove a merchant table row
DELETE/v1/authorize/issuer_merchants/{id}
Removes a row of the merchant-matching table. Pro and above; Manage policies.
Parameters
idstringpathRequired- The row's ID (
imer_).
Returns
The row was removed.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_merchants" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"domain\": \"brightbox.example\",
\"merchant_ids\": [
\"174030075991\"
]
}" > step.json
export ROW=$(jq -r '.id' step.json)
curl -X DELETE "$PROVENANCE_API/v1/authorize/issuer_merchants/$ROW" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_merchants`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"domain": "brightbox.example",
"merchant_ids": [
"174030075991"
]
}),
})).json();
const row = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_merchants/${row}`, {
method: "DELETE",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_merchants", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"domain": "brightbox.example",
"merchant_ids": [
"174030075991"
]
}).json()
row = step2["id"]
data = httpx.delete(f"{api}/v1/authorize/issuer_merchants/{row}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "issuer_merchant",
"id": "imer_01M834BSZS72ENDR48VMA9VSMA",
"deleted": true
}Save and publish issuer rules
PUT/v1/authorize/issuer_policies/{scope}
Saves a new version of a scope's rules and makes it live. Rules read the issuer facts only and run in order; the first that decides wins. A program's rules and the issuer's both run and the stricter outcome wins. Pro and above; Manage policies.
Parameters
scopestringpathRequiredissueror a program ID (iprg_).documentobjectRequired{ rules: [...] }, each rule awhenover issuer facts and one ofno_challenge(or the olderfrictionless),approval,denyornotifyinrequire.notestring- A note on the version.
Returns
The new version, live.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -X PUT "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"document": {
"rules": [
{
"label": "Agent purchases over $200",
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 20000
},
{
"fact": "agent.key",
"op": "is_not_empty",
"value": true
}
],
"require": {
"approval": true
}
},
{
"label": "A new agent on the card",
"when": [
{
"fact": "agent.first_seen",
"op": "eq",
"value": true
}
],
"require": {
"approval": true
}
}
]
},
"note": "Ask over $200 and for a new agent"
}'const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"document": {
"rules": [
{
"label": "Agent purchases over $200",
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 20000
},
{
"fact": "agent.key",
"op": "is_not_empty",
"value": true
}
],
"require": {
"approval": true
}
},
{
"label": "A new agent on the card",
"when": [
{
"fact": "agent.first_seen",
"op": "eq",
"value": true
}
],
"require": {
"approval": true
}
}
]
},
"note": "Ask over $200 and for a new agent"
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
data = httpx.put(f"{api}/v1/authorize/issuer_policies/{program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"document": {
"rules": [
{
"label": "Agent purchases over $200",
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 20000
},
{
"fact": "agent.key",
"op": "is_not_empty",
"value": True
}
],
"require": {
"approval": True
}
},
{
"label": "A new agent on the card",
"when": [
{
"fact": "agent.first_seen",
"op": "eq",
"value": True
}
],
"require": {
"approval": True
}
}
]
},
"note": "Ask over $200 and for a new agent"
}).json()Response 201
{
"object": "policy_version",
"domain": "issuer_auth",
"scope": "iprg_01M82YKHJCQTPPX8TETZ2JSRX2",
"version": 1,
"active": true,
"note": "Ask over $200 and for a new agent",
"created_by": "key_01M82YKH39SH61QR93X9E26SXN",
"created_at": "2026-11-23T00:58:56.462Z",
"document": {
"rules": [
{
"id": "rul_01M82YKHJES9ANP7G40P32DV3A",
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 20000
},
{
"fact": "agent.key",
"op": "is_not_empty",
"value": true
}
],
"require": {
"approval": true
},
"label": "Agent purchases over $200"
},
{
"id": "rul_01M82YKHJEG16JV7F90P79CXPR",
"when": [
{
"fact": "agent.first_seen",
"op": "eq",
"value": true
}
],
"require": {
"approval": true
},
"label": "A new agent on the card"
}
]
}
}Save an issuer rules draft
POST/v1/authorize/issuer_policies/{scope}/versions
Saves a version of a scope's rules without making it live, to run in shadow or publish later. Pro and above; Manage policies.
Parameters
scopestringpathRequiredissueror a program ID (iprg_).documentobjectRequired{ rules: [...] }.notestring- A note on the version.
Returns
The draft.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM/versions" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": true
}
}
]
},
"note": "Decline over $500"
}'const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}/versions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": true
}
}
]
},
"note": "Decline over $500"
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
data = httpx.post(f"{api}/v1/authorize/issuer_policies/{program}/versions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": True
}
}
]
},
"note": "Decline over $500"
}).json()Response 201
{
"object": "policy_version",
"domain": "issuer_auth",
"scope": "iprg_01M82YKHJK7WCJ8EK8FE2E5FFJ",
"version": 1,
"active": false,
"draft": true,
"note": "Decline over $500",
"created_by": "key_01M82YKH39SH61QR93X9E26SXN",
"created_at": "2026-11-23T00:58:56.468Z",
"document": {
"rules": [
{
"id": "rul_01M82YKHJM3YAGE4A1AP4PHFNF",
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": true
}
}
]
}
}Publish an issuer rules version
POST/v1/authorize/issuer_policies/{scope}/versions/{version}/publish
Makes a version of a scope's rules live: a draft, or an earlier version. Sends authorize.policy.published with the scope. Pro and above; Manage policies.
Parameters
scopestringpathRequiredissueror a program ID (iprg_).versionintegerpathRequired- The version to publish.
Returns
The version, live.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM/versions" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": true
}
}
]
}
}' > /dev/null
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM/versions/1/publish" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}/versions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": true
}
}
]
}
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}/versions/1/publish`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_policies/{program}/versions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": True
}
}
]
}
}).json()
data = httpx.post(f"{api}/v1/authorize/issuer_policies/{program}/versions/1/publish", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "policy_version",
"domain": "issuer_auth",
"scope": "iprg_01M82YKHJMSJJNQ1ZF66WCMJ28",
"version": 1,
"active": true,
"note": null,
"created_by": "key_01M82YKH39SH61QR93X9E26SXN",
"created_at": "2026-11-23T00:58:56.469Z"
}Run an issuer rules version in shadow
POST/v1/authorize/issuer_policies/{scope}/versions/{version}/shadow
Runs a version of a scope's rules beside the live one on every decision, recorded on the decision's shadow and never answered. One shadow per scope. Pro and above; Manage policies.
Parameters
scopestringpathRequiredissueror a program ID (iprg_).versionintegerpathRequired- The version to shadow.
Returns
The version, in shadow.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM/versions" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": true
}
}
]
}
}' > /dev/null
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM/versions/1/shadow" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}/versions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": true
}
}
]
}
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}/versions/1/shadow`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_policies/{program}/versions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": True
}
}
]
}
}).json()
data = httpx.post(f"{api}/v1/authorize/issuer_policies/{program}/versions/1/shadow", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "policy_version",
"domain": "issuer_auth",
"scope": "iprg_01M82YKHJQB4VJV2XP9SMC1Z6H",
"version": 1,
"active": false,
"draft": true,
"shadow": true,
"note": null,
"created_by": "key_01M82YKH39SH61QR93X9E26SXN",
"created_at": "2026-11-23T00:58:56.471Z"
}Stop an issuer rules shadow
DELETE/v1/authorize/issuer_policies/{scope}/versions/{version}/shadow
Stops running the scope's shadow version (the version stays in the history). Pro and above; Manage policies.
Parameters
scopestringpathRequiredissueror a program ID (iprg_).versionintegerpathRequired- The version in shadow.
Returns
The shadow stopped.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Fernhill agent cards", "processor": "lithic" }' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM/versions" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": true
}
}
]
}
}' > /dev/null
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM/versions/1/shadow" \
-H "Authorization: Bearer $PROVENANCE_KEY" > /dev/null
curl -X DELETE "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM/versions/1/shadow" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({ "name": "Fernhill agent cards", "processor": "lithic" }),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}/versions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": true
}
}
]
}
}),
})).json();
const step3 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}/versions/1/shadow`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}/versions/1/shadow`, {
method: "DELETE",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_policies/{program}/versions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 50000
}
],
"require": {
"deny": True
}
}
]
}
}).json()
step3 = httpx.post(f"{api}/v1/authorize/issuer_policies/{program}/versions/1/shadow", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()
data = httpx.delete(f"{api}/v1/authorize/issuer_policies/{program}/versions/1/shadow", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"object": "policy_shadow",
"domain": "issuer_auth",
"scope": "iprg_01M82YKHJS814ZM1PGPX4JMRXT",
"shadow": false
}Simulate an authorization
POST/v1/authorize/issuer_policies/{scope}/simulate
Runs one authorization through the scope classifier and both scopes' rules, with document in place of this scope's live rules if you send one. Writes nothing. The issuer scope needs program_id (whose settings it runs under). Pro and above.
Parameters
scopestringpathRequiredissueror a program ID (iprg_).authorizationobjectRequired- One authorization as your processor sent it, in a processor-neutral shape. Never a card number: the processor's card token and at most the last four digits.
Show child attributes
program_idstring- The program (
iprg_). Required on a decision; on a simulate or backtest it is the scope's program. authorization_idstring- The processor's id for the authorization.
kindenum- An authorization (the default) or a 3-D Secure request. One of
authorization,three_ds. occurred_attimestamp- When the processor received it.
amountintegerRequired- Amount in minor units (cents).
currencystringRequired- ISO 4217 currency.
cardobjectRequired- The card, by the processor's token.
Show child attributes
tokenstringRequired- The processor's card token (never the card number).
last4string- The last four digits.
countrystring- Card country (ISO 3166 alpha-2).
merchantobject- The merchant fields on the authorization.
Show child attributes
mccstring- Merchant category code.
idstring- Acquirer merchant id.
namestring- Merchant descriptor.
countrystring- Merchant country.
channelenum- The channel. One of
card_not_present,ecommerce,recurring,card_present. three_dsobject- 3-D Secure data on this authorization, if any.
Show child attributes
resultenum- The 3-D Secure result. One of
authenticated,attempted,failed,not_authenticated. headless_browserboolean- The browser was headless.
hosted_browserboolean- The browser ran in a hosted environment.
cardholder_device_knownboolean- The cardholder used this device before.
tokenobject- Network token data.
Show child attributes
requestor_idstring- The token requestor id.
requestor_typestring- The token requestor type (
AI_AGENTmarks an agent).
networkobject- What the network says about the purchase.
Show child attributes
programenum- The network's agent program. One of
visa_vic,mastercard_agent_pay. agent_idstring- The network's agent identifier.
agent_flagboolean- The network flags the purchase as an agent's.
provenanceobject- A Provenance grant the purchase carries.
Show child attributes
grant_idstring- The grant (
grt_); counts only when it resolves and is active.
intentobject- Whether an AP2 mandate or Verifiable Intent chain verified for the purchase.
Show child attributes
verifiableboolean- It verified.
labelenum- Backtest only: what you know the purchase was. One of
agent,human.
documentobject- A draft of this scope's rules (
{ rules: [...] }). program_idstring- The issuer scope only: the program (
iprg_).
Returns
What the decision would be.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM/simulate" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 20000
}
],
"require": {
"approval": true
}
}
]
},
"authorization": {
"amount": 24900,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_1",
"last4": "4242"
},
"merchant": {
"mcc": "5732",
"id": "mid_brightbox",
"name": "Brightbox Electronics",
"country": "US"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}
}'const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}/simulate`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 20000
}
],
"require": {
"approval": true
}
}
]
},
"authorization": {
"amount": 24900,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_1",
"last4": "4242"
},
"merchant": {
"mcc": "5732",
"id": "mid_brightbox",
"name": "Brightbox Electronics",
"country": "US"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
data = httpx.post(f"{api}/v1/authorize/issuer_policies/{program}/simulate", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 20000
}
],
"require": {
"approval": True
}
}
]
},
"authorization": {
"amount": 24900,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_1",
"last4": "4242"
},
"merchant": {
"mcc": "5732",
"id": "mid_brightbox",
"name": "Brightbox Electronics",
"country": "US"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}
}).json()Response 200
{
"object": "policy_simulation",
"domain": "issuer_auth",
"program_id": "iprg_01M8B27A8K2HP6B2YBYYE4XAQV",
"agent": {
"token_requestor": "40010030273",
"network_program": null,
"basis": "network_marked",
"confidence": 1,
"key": "token_requestor:40010030273",
"heuristics": [],
"first_seen": true
},
"facts": {
"auth.amount": 24900,
"auth.currency": "USD",
"auth.mcc": "5732",
"auth.merchant_id": "mid_brightbox",
"auth.merchant_name": "Brightbox Electronics",
"auth.merchant_country": "US",
"auth.channel": null,
"auth.three_ds": null,
"card.token": "card_tok_fernhill_1",
"card.program": "iprg_01M8B27A8K2HP6B2YBYYE4XAQV",
"card.country": null,
"agent.token_requestor": "40010030273",
"agent.network_program": null,
"agent.key": "token_requestor:40010030273",
"agent.basis": "network_marked",
"agent.confidence": 1,
"agent.first_seen": true,
"agent.limit_remaining": null,
"approval.matched": false,
"intent.verifiable": null
},
"outcome": "challenge",
"action": "decline",
"reason": "approval_required",
"rule": {
"id": "rul_01M8B27A8Q7PA19F94NPMK5KVB",
"scope": "program"
},
"limit": null,
"approval": {
"status": "none",
"approval_id": null,
"how": null
},
"notified": [],
"policy_versions": {
"program": 0,
"issuer": null
}
}Backtest issuer rules
POST/v1/authorize/issuer_policies/{scope}/backtest
Replays up to 10,000 authorizations from your history, in time order, through the scope classifier and the rules: counts by basis, outcomes, answers and money, a draft compared with the live rules, and, for rows you label, how many human purchases each suspected-agent threshold would catch. Pro and above.
Parameters
scopestringpathRequiredissueror a program ID (iprg_).authorizationsarray of objectsRequired- The history.
Show child attributes
program_idstring- The program (
iprg_). Required on a decision; on a simulate or backtest it is the scope's program. authorization_idstring- The processor's id for the authorization.
kindenum- An authorization (the default) or a 3-D Secure request. One of
authorization,three_ds. occurred_attimestamp- When the processor received it.
amountintegerRequired- Amount in minor units (cents).
currencystringRequired- ISO 4217 currency.
cardobjectRequired- The card, by the processor's token.
Show child attributes
tokenstringRequired- The processor's card token (never the card number).
last4string- The last four digits.
countrystring- Card country (ISO 3166 alpha-2).
merchantobject- The merchant fields on the authorization.
Show child attributes
mccstring- Merchant category code.
idstring- Acquirer merchant id.
namestring- Merchant descriptor.
countrystring- Merchant country.
channelenum- The channel. One of
card_not_present,ecommerce,recurring,card_present. three_dsobject- 3-D Secure data on this authorization, if any.
Show child attributes
resultenum- The 3-D Secure result. One of
authenticated,attempted,failed,not_authenticated. headless_browserboolean- The browser was headless.
hosted_browserboolean- The browser ran in a hosted environment.
cardholder_device_knownboolean- The cardholder used this device before.
tokenobject- Network token data.
Show child attributes
requestor_idstring- The token requestor id.
requestor_typestring- The token requestor type (
AI_AGENTmarks an agent).
networkobject- What the network says about the purchase.
Show child attributes
programenum- The network's agent program. One of
visa_vic,mastercard_agent_pay. agent_idstring- The network's agent identifier.
agent_flagboolean- The network flags the purchase as an agent's.
provenanceobject- A Provenance grant the purchase carries.
Show child attributes
grant_idstring- The grant (
grt_); counts only when it resolves and is active.
intentobject- Whether an AP2 mandate or Verifiable Intent chain verified for the purchase.
Show child attributes
verifiableboolean- It verified.
labelenum- Backtest only: what you know the purchase was. One of
agent,human.
documentobject- A draft of this scope's rules to compare with the live ones.
program_idstring- The issuer scope only: the program whose settings and rules to use.
Returns
The backtest.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"suspected": {
"agent_merchants": [
"AGENTSHOP*"
]
}
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM/backtest" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 20000
}
],
"require": {
"approval": true
}
}
]
},
"authorizations": [
{
"occurred_at": "2026-11-01T10:00:00Z",
"amount": 24900,
"currency": "USD",
"card": {
"token": "card_tok_1"
},
"token": {
"requestor_type": "AI_AGENT",
"requestor_id": "40010030273"
},
"label": "agent"
},
{
"occurred_at": "2026-11-01T11:00:00Z",
"amount": 1800,
"currency": "USD",
"card": {
"token": "card_tok_2"
},
"label": "human"
},
{
"occurred_at": "2026-11-01T12:00:00Z",
"amount": 6400,
"currency": "USD",
"card": {
"token": "card_tok_3"
},
"merchant": {
"id": "AGENTSHOP-1"
},
"three_ds": {
"headless_browser": true
},
"label": "agent"
}
]
}'const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"suspected": {
"agent_merchants": [
"AGENTSHOP*"
]
}
}),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}/backtest`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 20000
}
],
"require": {
"approval": true
}
}
]
},
"authorizations": [
{
"occurred_at": "2026-11-01T10:00:00Z",
"amount": 24900,
"currency": "USD",
"card": {
"token": "card_tok_1"
},
"token": {
"requestor_type": "AI_AGENT",
"requestor_id": "40010030273"
},
"label": "agent"
},
{
"occurred_at": "2026-11-01T11:00:00Z",
"amount": 1800,
"currency": "USD",
"card": {
"token": "card_tok_2"
},
"label": "human"
},
{
"occurred_at": "2026-11-01T12:00:00Z",
"amount": 6400,
"currency": "USD",
"card": {
"token": "card_tok_3"
},
"merchant": {
"id": "AGENTSHOP-1"
},
"three_ds": {
"headless_browser": true
},
"label": "agent"
}
]
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"suspected": {
"agent_merchants": [
"AGENTSHOP*"
]
}
}).json()
program = step1["id"]
data = httpx.post(f"{api}/v1/authorize/issuer_policies/{program}/backtest", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"document": {
"rules": [
{
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 20000
}
],
"require": {
"approval": True
}
}
]
},
"authorizations": [
{
"occurred_at": "2026-11-01T10:00:00Z",
"amount": 24900,
"currency": "USD",
"card": {
"token": "card_tok_1"
},
"token": {
"requestor_type": "AI_AGENT",
"requestor_id": "40010030273"
},
"label": "agent"
},
{
"occurred_at": "2026-11-01T11:00:00Z",
"amount": 1800,
"currency": "USD",
"card": {
"token": "card_tok_2"
},
"label": "human"
},
{
"occurred_at": "2026-11-01T12:00:00Z",
"amount": 6400,
"currency": "USD",
"card": {
"token": "card_tok_3"
},
"merchant": {
"id": "AGENTSHOP-1"
},
"three_ds": {
"headless_browser": True
},
"label": "agent"
}
]
}).json()Response 200
{
"scope": "iprg_01M8D8YP374BP7GXWDD7T8FEQ0",
"program_id": "iprg_01M8D8YP374BP7GXWDD7T8FEQ0",
"object": "issuer_backtest",
"replayed": 3,
"from": "2026-11-01T10:00:00Z",
"to": "2026-11-01T12:00:00Z",
"basis": {
"network_marked": 1,
"provenance_grant": 0,
"suspected": 1,
"none": 1
},
"current": {
"outcomes": {
"allow": 0,
"reject": 0,
"challenge": 0,
"no_opinion": 3
},
"actions": {
"approve": 0,
"decline": 0,
"no_opinion": 3
},
"amounts": {
"allow": 0,
"reject": 0,
"challenge": 0,
"no_opinion": 33100
}
},
"draft": {
"outcomes": {
"allow": 0,
"reject": 0,
"challenge": 1,
"no_opinion": 2
},
"actions": {
"approve": 0,
"decline": 1,
"no_opinion": 2
},
"amounts": {
"allow": 0,
"reject": 0,
"challenge": 24900,
"no_opinion": 8200
}
},
"changed": 1,
"transitions": {
"no_opinion->challenge": 1
},
"suspected": {
"threshold": 0.5,
"action": "log",
"labelled": {
"agent": 2,
"human": 1
},
"thresholds": [
{
"threshold": 0.3,
"suspected": 1,
"labelled_agent": 1,
"labelled_human": 0
},
{
"threshold": 0.5,
"suspected": 1,
"labelled_agent": 1,
"labelled_human": 0
},
{
"threshold": 0.7,
"suspected": 1,
"labelled_agent": 1,
"labelled_human": 0
},
{
"threshold": 0.9,
"suspected": 0,
"labelled_agent": 0,
"labelled_human": 0
}
]
}
}Decide an authorization
POST/v1/authorize/issuer_decisions
Decides one authorization on the program's rules and the issuer's: approve, decline or no_opinion (your processor's own rules decide). Never holds the authorization for a person. A shadow-mode program answers no_opinion and records what it would have answered. A card number anywhere is refused. Metered per agent decision; Pro and above.
Parameters
program_idstring- The program (
iprg_). Required on a decision; on a simulate or backtest it is the scope's program. authorization_idstring- The processor's id for the authorization.
kindenum- An authorization (the default) or a 3-D Secure request. One of
authorization,three_ds. occurred_attimestamp- When the processor received it.
amountintegerRequired- Amount in minor units (cents).
currencystringRequired- ISO 4217 currency.
cardobjectRequired- The card, by the processor's token.
Show child attributes
tokenstringRequired- The processor's card token (never the card number).
last4string- The last four digits.
countrystring- Card country (ISO 3166 alpha-2).
merchantobject- The merchant fields on the authorization.
Show child attributes
mccstring- Merchant category code.
idstring- Acquirer merchant id.
namestring- Merchant descriptor.
countrystring- Merchant country.
channelenum- The channel. One of
card_not_present,ecommerce,recurring,card_present. three_dsobject- 3-D Secure data on this authorization, if any.
Show child attributes
resultenum- The 3-D Secure result. One of
authenticated,attempted,failed,not_authenticated. headless_browserboolean- The browser was headless.
hosted_browserboolean- The browser ran in a hosted environment.
cardholder_device_knownboolean- The cardholder used this device before.
tokenobject- Network token data.
Show child attributes
requestor_idstring- The token requestor id.
requestor_typestring- The token requestor type (
AI_AGENTmarks an agent).
networkobject- What the network says about the purchase.
Show child attributes
programenum- The network's agent program. One of
visa_vic,mastercard_agent_pay. agent_idstring- The network's agent identifier.
agent_flagboolean- The network flags the purchase as an agent's.
provenanceobject- A Provenance grant the purchase carries.
Show child attributes
grant_idstring- The grant (
grt_); counts only when it resolves and is active.
intentobject- Whether an AP2 mandate or Verifiable Intent chain verified for the purchase.
Show child attributes
verifiableboolean- It verified.
labelenum- Backtest only: what you know the purchase was. One of
agent,human.
Returns
The decision. See the issuer decision object.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X PUT "$PROVENANCE_API/v1/authorize/issuer_policies/issuer" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"document": {
"rules": [
{
"label": "Agent purchases over $200",
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 20000
}
],
"require": {
"approval": true
}
}
]
}
}' > /dev/null
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_decisions" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"authorization_id\": \"auth_7Hq2\",
\"occurred_at\": \"2026-11-22T15:04:05Z\",
\"amount\": 24900,
\"currency\": \"USD\",
\"card\": {
\"token\": \"card_tok_fernhill_1\",
\"last4\": \"4242\"
},
\"merchant\": {
\"mcc\": \"5732\",
\"id\": \"mid_brightbox\",
\"name\": \"Brightbox Electronics\",
\"country\": \"US\"
},
\"channel\": \"ecommerce\",
\"token\": {
\"requestor_id\": \"40010030273\",
\"requestor_type\": \"AI_AGENT\"
}
}"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/issuer`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"document": {
"rules": [
{
"label": "Agent purchases over $200",
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 20000
}
],
"require": {
"approval": true
}
}
]
}
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_decisions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"authorization_id": "auth_7Hq2",
"occurred_at": "2026-11-22T15:04:05Z",
"amount": 24900,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_1",
"last4": "4242"
},
"merchant": {
"mcc": "5732",
"id": "mid_brightbox",
"name": "Brightbox Electronics",
"country": "US"
},
"channel": "ecommerce",
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.put(f"{api}/v1/authorize/issuer_policies/issuer", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"document": {
"rules": [
{
"label": "Agent purchases over $200",
"when": [
{
"fact": "auth.amount",
"op": "gt",
"value": 20000
}
],
"require": {
"approval": True
}
}
]
}
}).json()
data = httpx.post(f"{api}/v1/authorize/issuer_decisions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"authorization_id": "auth_7Hq2",
"occurred_at": "2026-11-22T15:04:05Z",
"amount": 24900,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_1",
"last4": "4242"
},
"merchant": {
"mcc": "5732",
"id": "mid_brightbox",
"name": "Brightbox Electronics",
"country": "US"
},
"channel": "ecommerce",
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}).json()Response 201
{
"object": "issuer_decision",
"id": "idec_01M8J1WE5G3KH98Y4M0Z9FZD3Y",
"program_id": "iprg_01M8J1WE59S39M65EV1JJ1DV1C",
"kind": "authorization",
"source": "api",
"authorization_id": "auth_7Hq2",
"card": {
"token": "card_tok_fernhill_1",
"last4": "4242"
},
"amount": 24900,
"currency": "USD",
"merchant": {
"mcc": "5732",
"id": "mid_brightbox",
"name": "Brightbox Electronics",
"country": "US",
"category": "goods"
},
"agent": {
"token_requestor": "40010030273",
"network_program": null,
"basis": "network_marked",
"confidence": 1,
"key": "token_requestor:40010030273",
"heuristics": [],
"first_seen": true
},
"outcome": "challenge",
"action": "decline",
"reason": "approval_required",
"rule": {
"id": "rul_01M8J1WE5ATCHYDXE6P4JZQ6XP",
"scope": "issuer"
},
"policy_versions": {
"program": null,
"issuer": 1
},
"shadow": null,
"mode": "live",
"latency_ms": 1,
"fail": null,
"facts": {
"auth.amount": 24900,
"auth.currency": "USD",
"auth.mcc": "5732",
"auth.merchant_id": "mid_brightbox",
"auth.merchant_name": "Brightbox Electronics",
"auth.merchant_country": "US",
"auth.channel": "ecommerce",
"auth.three_ds": null,
"card.token": "card_tok_fernhill_1",
"card.program": "iprg_01M8J1WE59S39M65EV1JJ1DV1C",
"card.country": null,
"agent.token_requestor": "40010030273",
"agent.network_program": null,
"agent.key": "token_requestor:40010030273",
"agent.basis": "network_marked",
"agent.confidence": 1,
"agent.first_seen": true,
"agent.limit_remaining": null,
"approval.matched": false,
"intent.verifiable": null,
"agent.paused_on_card": false,
"device.new_for_cardholder": null,
"network.hosting": null,
"network.kind": null,
"network.provider": null
},
"limit": null,
"reservation_id": null,
"approval": {
"status": "none",
"approval_id": null,
"how": null
},
"review": null,
"three_ds": null,
"network": null,
"occurred_at": "2026-11-22T15:04:05.000Z",
"created_at": "2026-11-28T21:44:50.097Z"
}Review an issuer decline
POST/v1/authorize/issuer_decisions/{id}/review
Marks a declined or asked decision right or should_have_approved, once (else 409 issuer_review_not_open). The verdict feeds the rule suggestions; the decision never changes. Needs Manage policies. Pro and above. See the issuer guide.
Parameters
idstringpathRequired- The decision's ID (
idec_). verdictenumRequiredrightorshould_have_approved. One ofright,should_have_approved.notestring | null- Plain text kept with the verdict.
Returns
The decision with its review. See the issuer decision object.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X PUT "$PROVENANCE_API/v1/authorize/issuer_policies/$PROGRAM" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"document": {
"rules": [
{
"label": "No gambling",
"when": [
{
"fact": "auth.mcc",
"op": "eq",
"value": "7995"
}
],
"require": {
"deny": true
}
}
]
}
}' > /dev/null
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_decisions" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"authorization_id\": \"auth_9Kd3\",
\"amount\": 4000,
\"currency\": \"USD\",
\"card\": {
\"token\": \"card_tok_fernhill_3\",
\"last4\": \"4417\"
},
\"merchant\": {
\"mcc\": \"7995\",
\"id\": \"mid_lucky_lanes\",
\"name\": \"Lucky Lanes\",
\"country\": \"US\"
},
\"token\": {
\"requestor_id\": \"40010030273\",
\"requestor_type\": \"AI_AGENT\"
}
}" > step.json
export DECISION=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_decisions/$DECISION/review" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"verdict": "should_have_approved",
"note": "The cardholder buys from this shop every month."
}'const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_policies/${program}`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"document": {
"rules": [
{
"label": "No gambling",
"when": [
{
"fact": "auth.mcc",
"op": "eq",
"value": "7995"
}
],
"require": {
"deny": true
}
}
]
}
}),
})).json();
const step3 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_decisions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"authorization_id": "auth_9Kd3",
"amount": 4000,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_3",
"last4": "4417"
},
"merchant": {
"mcc": "7995",
"id": "mid_lucky_lanes",
"name": "Lucky Lanes",
"country": "US"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}),
})).json();
const decision = step3.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_decisions/${decision}/review`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"verdict": "should_have_approved",
"note": "The cardholder buys from this shop every month."
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.put(f"{api}/v1/authorize/issuer_policies/{program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"document": {
"rules": [
{
"label": "No gambling",
"when": [
{
"fact": "auth.mcc",
"op": "eq",
"value": "7995"
}
],
"require": {
"deny": True
}
}
]
}
}).json()
step3 = httpx.post(f"{api}/v1/authorize/issuer_decisions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"authorization_id": "auth_9Kd3",
"amount": 4000,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_3",
"last4": "4417"
},
"merchant": {
"mcc": "7995",
"id": "mid_lucky_lanes",
"name": "Lucky Lanes",
"country": "US"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}).json()
decision = step3["id"]
data = httpx.post(f"{api}/v1/authorize/issuer_decisions/{decision}/review", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"verdict": "should_have_approved",
"note": "The cardholder buys from this shop every month."
}).json()Response 200
{
"object": "issuer_decision",
"id": "idec_01M9219RZMGC7XMDM4NT1JEBR9",
"program_id": "iprg_01M9219RZKCHDRXB2KDQ1QJHV9",
"kind": "authorization",
"source": "api",
"authorization_id": "auth_9Kd3",
"card": {
"token": "card_tok_fernhill_3",
"last4": "4417"
},
"amount": 4000,
"currency": "USD",
"merchant": {
"mcc": "7995",
"id": "mid_lucky_lanes",
"name": "Lucky Lanes",
"country": "US",
"category": "other"
},
"agent": {
"token_requestor": "40010030273",
"network_program": null,
"basis": "network_marked",
"confidence": 1,
"key": "token_requestor:40010030273",
"heuristics": [],
"first_seen": true
},
"outcome": "reject",
"action": "decline",
"reason": "issuer_rule_declined",
"rule": {
"id": "rul_01M9219RZKTFP0P44FMW8JT70G",
"scope": "program"
},
"policy_versions": {
"program": 1,
"issuer": 1
},
"shadow": null,
"mode": "live",
"latency_ms": 0,
"fail": null,
"facts": {
"auth.amount": 4000,
"auth.currency": "USD",
"auth.mcc": "7995",
"auth.merchant_id": "mid_lucky_lanes",
"auth.merchant_name": "Lucky Lanes",
"auth.merchant_country": "US",
"auth.channel": null,
"auth.three_ds": null,
"card.token": "card_tok_fernhill_3",
"card.program": "iprg_01M9219RZKCHDRXB2KDQ1QJHV9",
"card.country": null,
"card.last4": "4417",
"agent.token_requestor": "40010030273",
"agent.network_program": null,
"agent.key": "token_requestor:40010030273",
"agent.basis": "network_marked",
"agent.confidence": 1,
"agent.first_seen": true,
"agent.limit_remaining": null,
"approval.matched": false,
"intent.verifiable": null,
"agent.paused_on_card": false,
"device.new_for_cardholder": null,
"network.hosting": null,
"network.kind": null,
"network.provider": null
},
"limit": null,
"reservation_id": null,
"approval": {
"status": "none",
"approval_id": null,
"how": null
},
"review": {
"verdict": "should_have_approved",
"note": "The cardholder buys from this shop every month.",
"reviewed_by": "key_01M9219NTNT9ZWWQHAVY7G9W9B",
"reviewed_at": "2026-12-05T02:42:29.494Z"
},
"three_ds": null,
"network": null,
"occurred_at": "2026-12-05T02:42:29.492Z",
"created_at": "2026-12-05T02:42:29.492Z"
}Pause one agent on a card
POST/v1/authorize/issuer_agent_pauses
Pauses one agent on one card: its authorizations decline with reason agent_paused_on_card until the pause is lifted. Pausing an agent that is already paused returns the pause (200). The card-wide pause still wins.
Parameters
program_idstringRequired- The card program.
card_tokenstringRequired- The processor's card token (never the card number).
agent_keystringRequired- The agent's key (
agent.keyon a decision). reasonstringRequired- Why, kept on the pause.
Returns
The pause.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_agent_pauses" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"card_token\": \"card_tok_fernhill_9\",
\"agent_key\": \"token_requestor:40010030273\",
\"reason\": \"Reported by the cardholder\"
}"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_agent_pauses`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"card_token": "card_tok_fernhill_9",
"agent_key": "token_requestor:40010030273",
"reason": "Reported by the cardholder"
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
data = httpx.post(f"{api}/v1/authorize/issuer_agent_pauses", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"card_token": "card_tok_fernhill_9",
"agent_key": "token_requestor:40010030273",
"reason": "Reported by the cardholder"
}).json()Response 201
{
"object": "issuer_agent_pause",
"id": "ilim_01M8J1WE72B165PK7AKPWV1ZE7",
"program_id": "iprg_01M8J1WE6XYWYEMATEYABXZEMH",
"card_token": "card_tok_fernhill_9",
"agent_key": "token_requestor:40010030273",
"paused_by": "issuer",
"reason": "Reported by the cardholder",
"created_at": "2026-11-28T21:44:50.146Z"
}Lift a pause on one agent
DELETE/v1/authorize/issuer_agent_pauses/{id}
Lifts a pause on one agent: its previous limit on the card is restored, or the pause is removed when it had none. A pause the cardholder set needs a reason.
Parameters
idstringpathRequired- The pause's ID (
ilim_…). reasonstringquery- Why it is lifted; required when the cardholder paused it.
Returns
The pause was lifted.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_agent_pauses" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"card_token\": \"card_tok_fernhill_10\",
\"agent_key\": \"token_requestor:40010030273\",
\"reason\": \"Reported by the cardholder\"
}" > step.json
export PAUSE=$(jq -r '.id' step.json)
curl -X DELETE "$PROVENANCE_API/v1/authorize/issuer_agent_pauses/$PAUSE" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_agent_pauses`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"card_token": "card_tok_fernhill_10",
"agent_key": "token_requestor:40010030273",
"reason": "Reported by the cardholder"
}),
})).json();
const pause = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_agent_pauses/${pause}`, {
method: "DELETE",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_agent_pauses", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"card_token": "card_tok_fernhill_10",
"agent_key": "token_requestor:40010030273",
"reason": "Reported by the cardholder"
}).json()
pause = step2["id"]
data = httpx.delete(f"{api}/v1/authorize/issuer_agent_pauses/{pause}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()Response 200
{
"id": "ilim_01M8J1WE77JF8MNJ4J2Y79PAF0",
"object": "issuer_agent_pause",
"deleted": true
}Send transaction events
POST/v1/authorize/issuer_programs/{id}/card_events
Applies transaction events to the reservation ledger, for a processor without an adapter or to replay a history. Each event_id applies once (a redelivery is duplicate). An authorization decided but never held is placed from the decision (reconciled); an unknown one is unmatched. Pro and above.
Parameters
idstringpathRequired- The program's ID (
iprg_). eventsarray of objectsRequired- The events, applied in order.
Show child attributes
event_idstringRequired- The processor's id for the event.
kindenumRequired- What happened. One of
authorization,decline,incremental,reversal,expiry,clearing,refund. authorization_idstringRequired- The authorization it belongs to.
amountinteger- Minor units (the incremental, reversed, cleared or refunded amount).
currencystring- ISO 4217 currency.
occurred_attimestamp- When it happened.
finalboolean- Clearing only: false when more clearings follow.
Returns
What each event did.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_decisions" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"authorization_id\": \"auth_fernhill_33\",
\"amount\": 12000,
\"currency\": \"USD\",
\"card\": {
\"token\": \"card_tok_fernhill_3\"
},
\"token\": {
\"requestor_id\": \"40010030273\",
\"requestor_type\": \"AI_AGENT\"
}
}" > /dev/null
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_programs/$PROGRAM/card_events" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"events": [
{
"event_id": "evt_fernhill_331",
"kind": "clearing",
"authorization_id": "auth_fernhill_33",
"amount": 11800
},
{
"event_id": "evt_fernhill_332",
"kind": "refund",
"authorization_id": "auth_fernhill_33",
"amount": 1800
}
]
}'const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_decisions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"authorization_id": "auth_fernhill_33",
"amount": 12000,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_3"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs/${program}/card_events`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"events": [
{
"event_id": "evt_fernhill_331",
"kind": "clearing",
"authorization_id": "auth_fernhill_33",
"amount": 11800
},
{
"event_id": "evt_fernhill_332",
"kind": "refund",
"authorization_id": "auth_fernhill_33",
"amount": 1800
}
]
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_decisions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"authorization_id": "auth_fernhill_33",
"amount": 12000,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_3"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}).json()
data = httpx.post(f"{api}/v1/authorize/issuer_programs/{program}/card_events", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"events": [
{
"event_id": "evt_fernhill_331",
"kind": "clearing",
"authorization_id": "auth_fernhill_33",
"amount": 11800
},
{
"event_id": "evt_fernhill_332",
"kind": "refund",
"authorization_id": "auth_fernhill_33",
"amount": 1800
}
]
}).json()Response 200
{
"object": "issuer_card_event_receipt",
"received": 2,
"ignored": 0,
"events": [
{
"event_id": "evt_fernhill_331",
"kind": "clearing",
"authorization_id": "auth_fernhill_33",
"result": "applied",
"duplicate": false,
"reservation_id": "ires_01M832WPE00Z5HJ54CM6YQGHW5"
},
{
"event_id": "evt_fernhill_332",
"kind": "refund",
"authorization_id": "auth_fernhill_33",
"result": "applied",
"duplicate": false,
"reservation_id": "ires_01M832WPE00Z5HJ54CM6YQGHW5"
}
]
}Ask the cardholder to approve a cart
POST/v1/authorize/issuer_approvals
Asks the cardholder to approve an agent's cart for one card, with the cart approval's page and passkey. The authorization that follows uses it once if its merchant and amount fit. With decision_id (a declined decision) the retry matches that merchant, and the page shows the card line from the program's name and that card's last four ("Larkmoor debit ···· 4242"). Pro and above.
Parameters
program_idstringRequired- The program (
iprg_). card_tokenstringRequired- The processor's card token (a card number is refused).
agent_keystringRequired- The agent key (
agent.key). cartobjectRequired- The cart, as cart approvals take it; its
originis the store. displayobjectmerchant_nameto show (default: the store's domain).merchantobject- Acquirer merchant
idsand descriptor patterns (descriptors) the store is known by. decision_idstring- The declined decision this answers: its merchant is copied.
expires_ininteger- Seconds the cardholder has to answer (60 to 3600).
deliveryobject- As on cart approvals (default: the link is returned, nothing is sent).
contactobject- As on cart approvals.
customer_sourceenum- As on cart approvals. One of
merchant_account. channelsobject- As on cart approvals.
billing_addressobject- The cardholder's billing (home) address on file, when you send it: the approval's
approval_context.location_matchsays whether the answer matched it. Kept sealed with the approval.Show child attributes
line1string | null- The street line.
line2string | null- The second line (apartment, suite, unit).
citystring | null- The city.
regionstring | null- The state, province or region: a code (
OR,US-OR) or a name (Oregon). US states, Canadian provinces and territories and Australian states map to ISO 3166-2; any other region is kept for comparison only and its region fact is absent (region_unrecognized). postal_codestring | null- The postal or ZIP code.
countrystringRequired- ISO 3166-1 alpha-2 (
US). Required. locationobject | null- The address's point, when your store has one. Sealed with the address. With it, the distance facts (
approval.distance_km_billing,approval.min_distance_km_billing) work without a geocoder; without it, the server's geocoder finds the postal code's centre, or the distance facts are absent (geocoder_not_configured).Show child attributes
latnumberRequired- Latitude, in degrees.
lngnumberRequired- Longitude, in degrees.
Returns
The approval was asked for.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_approvals" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"card_token\": \"card_tok_fernhill_4\",
\"agent_key\": \"token_requestor:40010030273\",
\"cart\": {
\"order_id\": \"ord_fernhill_41\",
\"total\": 24900,
\"currency\": \"USD\",
\"merchant_id\": \"brightbox\",
\"origin\": \"https://brightbox.example\",
\"items\": [
{
\"sku\": \"tv-55\",
\"name\": \"55-inch television\",
\"quantity\": 1,
\"unit_amount\": 24900
}
]
},
\"display\": {
\"merchant_name\": \"Brightbox Electronics\"
}
}"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_approvals`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"card_token": "card_tok_fernhill_4",
"agent_key": "token_requestor:40010030273",
"cart": {
"order_id": "ord_fernhill_41",
"total": 24900,
"currency": "USD",
"merchant_id": "brightbox",
"origin": "https://brightbox.example",
"items": [
{
"sku": "tv-55",
"name": "55-inch television",
"quantity": 1,
"unit_amount": 24900
}
]
},
"display": {
"merchant_name": "Brightbox Electronics"
}
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
data = httpx.post(f"{api}/v1/authorize/issuer_approvals", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"card_token": "card_tok_fernhill_4",
"agent_key": "token_requestor:40010030273",
"cart": {
"order_id": "ord_fernhill_41",
"total": 24900,
"currency": "USD",
"merchant_id": "brightbox",
"origin": "https://brightbox.example",
"items": [
{
"sku": "tv-55",
"name": "55-inch television",
"quantity": 1,
"unit_amount": 24900
}
]
},
"display": {
"merchant_name": "Brightbox Electronics"
}
}).json()Response 201
{
"object": "issuer_approval",
"id": "iapr_01M8J1WE85VMWF65XESRGDY2KT",
"program_id": "iprg_01M8J1WE81HPMKKEJDBCAYD4TQ",
"card_token": "card_tok_fernhill_4",
"agent_key": "token_requestor:40010030273",
"status": "pending",
"amount": 24900,
"currency": "USD",
"merchant": {
"domain": "brightbox.example",
"ids": [],
"descriptors": []
},
"tolerance": {
"percent": 0.1,
"amount": 0
},
"checkout_approval_id": "coap_01M8J1WE848DJ6Q8C70WXCJPFG",
"decision_id": null,
"used_by_decision_id": null,
"decided_at": null,
"used_at": null,
"use_by": "2026-11-29T21:44:50.181Z",
"three_ds": null,
"delivery": {
"mode": "provenance",
"via": "link_only"
},
"approval_context": null,
"created_at": "2026-11-28T21:44:50.181Z",
"updated_at": "2026-11-28T21:44:50.181Z",
"approve_url": "http://localhost:5173/approve/c/eW_xJNz2RDtDpiZE0Za91w",
"status_url": "http://localhost:8080/v1/authorize/checkout_approvals/requests/status?token=eW_xJNz2RDtDpiZE0Za91w",
"decided_via": null,
"decided_method": null,
"person_decision": null,
"decline_reason": null,
"decline_note": null
}Map a store to its merchant ids
POST/v1/authorize/issuer_merchants
Maps a store domain to the acquirer merchant ids and descriptor patterns its authorizations carry, so an approval for a cart at that store matches its authorization. Setting the same domain again replaces it (200, same id). Pro and above; Manage policies.
Parameters
program_idstringRequired- The program (
iprg_). domainstringRequired- The store's domain.
merchant_idsarray of strings- Acquirer merchant ids.
descriptorsarray of strings- Descriptor patterns (
*any run).
Returns
The row was replaced.
Errors
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/authorize/issuer_programs" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}' > step.json
export PROGRAM=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/issuer_merchants" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d "{
\"program_id\": \"$PROGRAM\",
\"domain\": \"brightbox.example\",
\"merchant_ids\": [
\"174030075991\"
],
\"descriptors\": [
\"BRIGHTBOX*\"
]
}"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_merchants`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"domain": "brightbox.example",
"merchant_ids": [
"174030075991"
],
"descriptors": [
"BRIGHTBOX*"
]
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
data = httpx.post(f"{api}/v1/authorize/issuer_merchants", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"domain": "brightbox.example",
"merchant_ids": [
"174030075991"
],
"descriptors": [
"BRIGHTBOX*"
]
}).json()Response 200
{
"object": "issuer_merchant",
"id": "imer_01M834BSZP62SK3MNWR51PJ1M1",
"program_id": "iprg_01M834BSZNR1EZA2QP7P2902HG",
"domain": "brightbox.example",
"merchant_ids": [
"174030075991"
],
"descriptors": [
"BRIGHTBOX*"
],
"created_at": "2026-11-23T02:39:34.390Z",
"updated_at": "2026-11-23T02:39:34.390Z"
}