SDK reference · Node SDK
prov.authorize.issuer.overview
prov.authorize.issuer.overview in Node SDK. Slice 8: a window's numbers (24h, 7d, 30d), for every program or one.
Signature
prov.authorize.issuer.overview(params?: { window?: IssuerOverviewWindow; programId?: string }): Promise<IssuerOverview>Parameters
params{ window?: IssuerOverviewWindow; programId?: string }
Request fields
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
Promise<IssuerOverview> The overview.
HTTP operation
GET /v1/authorize/issuer_overview: Get the issuer overview
Errors
- authentication_required
- insufficient_scope
- issuer_overview_unavailable
- 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_decisions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"authorization_id": "auth_4Tm8",
"amount": 2400,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_4",
"last4": "9021"
},
"merchant": {
"mcc": "5411",
"id": "mid_greenleaf",
"name": "Greenleaf Grocers",
"country": "US"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_overview?window=7d&program_id=${program}`, {
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
step2 = httpx.post(f"{api}/v1/authorize/issuer_decisions", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"authorization_id": "auth_4Tm8",
"amount": 2400,
"currency": "USD",
"card": {
"token": "card_tok_fernhill_4",
"last4": "9021"
},
"merchant": {
"mcc": "5411",
"id": "mid_greenleaf",
"name": "Greenleaf Grocers",
"country": "US"
},
"token": {
"requestor_id": "40010030273",
"requestor_type": "AI_AGENT"
}
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_overview?window=7d&program_id={program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()