SDK reference · Node SDK
prov.authorize.issuer.cardLimits.list
prov.authorize.issuer.cardLimits.list in Node SDK.
Signature
prov.authorize.issuer.cardLimits.list(params?: ListIssuerCardLimitsParams): Promise<ListResponse<IssuerCardLimit>>Parameters
paramsListIssuerCardLimitsParams
Request fields
program_idstringquery- Only this program's (
iprg_). card_tokenstringquery- Only this card (the processor's token).
agent_keystringquery- Only this agent key (or
*). sortenumquery- The order of the list:
remaining,created, with-in front for descending. Newest first when omitted. A limit for every other agent (*) has no single remaining amount and sorts last. Anext_cursorcarries its order; pass it back with the samesort. One ofremaining,-remaining,created,-created. limitintegerquery- Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery- Opaque; pass a response's
next_cursorback to get the next page.
Returns
Promise<ListResponse<IssuerCardLimit>> A page of limits.
HTTP operation
GET /v1/authorize/issuer_card_limits: List card limits
Errors
- authentication_required
- insufficient_scope
- parameter_invalid
- plan_required
- rate_limit_exceeded
- resource_missing
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 data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_card_limits?program_id=${program}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_card_limits", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"card_token": "card_tok_fernhill_3",
"agent_key": "token_requestor:40010030273",
"window": "month",
"cap": 50000,
"currency": "USD"
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_card_limits?program_id={program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()