View as Markdown

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 of money, 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; none passes to your program's own rules. One of network_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 | null
visa_vic or mastercard_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. challenge never holds an authorization: it declines with approval_required unless a matching approval exists. One of approve, 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_mode or deadline_missed.
ruleobject | null
The rule that decided (id) and its scope (program or issuer).
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.
scopeenum
agent: the agent's own limit (or *). card: the cap across every agent on the card, which was stricter. One of agent, 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.
remaininginteger
cap - spent, never below 0 (the agent.limit_remaining fact).
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, or challenge (the cardholder is asked). One of reject, 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
statusenum
matched: an approval let it through and was used. Otherwise the closest reason none did. One of matched, 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
verdictenum
right ("Right call") or should_have_approved. One of right, 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), provider and asn. Null without an address.
three_dsobject | null
A 3-D Secure decision's flow (null on an authorization): frictionless when it was approved without asking the cardholder, challenge when 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) and locale. 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.made
  • authorize.issuer_approval.requested
  • authorize.issuer_approval.decided
  • authorize.issuer_limit.reached
  • authorize.issuer_card_limit.updated
  • authorize.issuer_cardholder.linked
  • authorize.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 of shadow, live.
fail_modeenum
Default processor_default. 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.
actionenum
log (default): record and notify only. ask: needs an approval. apply_rules: your rules apply as to a marked agent. One of log, 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: the authorize.issuer_approval.requested webhook carries the link and token; with no endpoint taking it, Provenance sends to the contact given). One of provenance, 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) and apple-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); needs android_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*"
      ]
    }
  }'

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"
    }
  }'

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"

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

scopestringpathRequired
issuer or 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"

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

scopestringpathRequired
issuer or 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"

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

scopestringpathRequired
issuer or 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"

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

scopestringpathRequired
issuer or 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"

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"

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"

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"

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"

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"

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.
actionenum
log (default): record and notify only. ask: needs an approval. apply_rules: your rules apply as to a marked agent. One of log, 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: the authorize.issuer_approval.requested webhook carries the link and token; with no endpoint taking it, Provenance sends to the contact given). One of provenance, 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) and apple-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); needs android_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
    }
  }'

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==" }'

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 of dark, 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
  }'

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 }'

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

scopeenumRequired
issuer (every program) or card. One of issuer, card.
program_idstring
The card's program (card scope only).
card_tokenstring
The processor's card token (card scope only). A card number is refused.
patternsarray of stringsRequired
Patterns over the merchant id or name.
inheritboolean
card scope 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\"
    ]
  }"

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 of decline, 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\"
      ]
    }
  }"

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"

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_cursor back 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"

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

scopestringpathRequired
issuer or a program ID (iprg_).
limitintegerquery
Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery
Opaque; pass a response's next_cursor back 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"

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, decline and ask are still accepted). One of allow, 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.
reviewenumquery
to_review: a decline nobody reviewed that the cardholder approved afterwards or whose agent was only suspected; reviewed or not_reviewed; or one verdict. One of to_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. A next_cursor carries its order; pass it back with the same sort. One of created, -created, amount, -amount.
limitintegerquery
Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery
Opaque; pass a response's next_cursor back 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"

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_cursor back 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"

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. A next_cursor carries its order; pass it back with the same sort. One of remaining, -remaining, created, -created.
limitintegerquery
Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery
Opaque; pass a response's next_cursor back 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"

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"

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_cursor back 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"

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_cursor back 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"

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_cursor back 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"

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"

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"

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"

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

scopestringpathRequired
issuer or a program ID (iprg_).
documentobjectRequired
{ rules: [...] }, each rule a when over issuer facts and one of no_challenge (or the older frictionless), approval, deny or notify in require.
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"
  }'

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

scopestringpathRequired
issuer or 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"
  }'

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

scopestringpathRequired
issuer or 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"

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

scopestringpathRequired
issuer or 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"

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

scopestringpathRequired
issuer or 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"

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

scopestringpathRequired
issuer or 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_AGENT marks 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"
      }
    }
  }'

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

scopestringpathRequired
issuer or 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_AGENT marks 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"
      }
    ]
  }'

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_AGENT marks 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\"
    }
  }"

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_).
verdictenumRequired
right or should_have_approved. One of right, 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."
  }'

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.key on 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\"
  }"

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"

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
      }
    ]
  }'

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 origin is the store.
displayobject
merchant_name to show (default: the store's domain).
merchantobject
Acquirer merchant ids and 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_match says 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\"
    }
  }"

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*\"
    ]
  }"

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"
}

Was this page helpful? Send us feedback

LLM? Read llms.txt.