SDK reference · Python SDK

prov.authorize.issuer.card_limits.set

prov.authorize.issuer.card_limits.set in Python SDK. Create or replace the limit for one agent on one card (agent_key * or card:* too).

Signature

prov.authorize.issuer.card_limits.set(**body: Any = …) -> Any

Parameters

**bodyAny

Request fields

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

Any An existing limit was replaced.

HTTP operation

POST /v1/authorize/issuer_card_limits: Set a card limit for an agent

Errors

Example

const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "name": "Fernhill agent cards",
    "processor": "lithic",
    "mode": "live"
  }),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_card_limits`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "program_id": program,
    "card_token": "card_tok_fernhill_3",
    "agent_key": "token_requestor:40010030273",
    "window": "month",
    "cap": 50000,
    "currency": "USD",
    "per_transaction": 25000,
    "locks": {
      "mccs": [
        "5732",
        "5734"
      ]
    }
  }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.