SDK reference · Python SDK
prov.authorize.issuer.card_limits.get
prov.authorize.issuer.card_limits.get in Python SDK.
Signature
prov.authorize.issuer.card_limits.get(limit_id: str) -> AnyParameters
limit_idstrRequired
Request fields
idstringpathRequired- The limit's ID (
ilim_).
Returns
Any The limit.
HTTP operation
GET /v1/authorize/issuer_card_limits/{id}: Retrieve a card limit
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 step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_card_limits`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"card_token": "card_tok_fernhill_3",
"agent_key": "token_requestor:40010030273",
"window": "month",
"cap": 50000,
"currency": "USD"
}),
})).json();
const limit = step2.id;
const step3 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_decisions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"authorization_id": "auth_fernhill_31",
"amount": 12000,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_3"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_card_limits/${limit}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_card_limits", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"card_token": "card_tok_fernhill_3",
"agent_key": "token_requestor:40010030273",
"window": "month",
"cap": 50000,
"currency": "USD"
}).json()
limit = step2["id"]
step3 = httpx.post(f"{api}/v1/authorize/issuer_decisions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"authorization_id": "auth_fernhill_31",
"amount": 12000,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_3"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_card_limits/{limit}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()