SDK reference · Python SDK
prov.authorize.issuer.agent_merchants.list
prov.authorize.issuer.agent_merchants.list in Python SDK.
Signature
prov.authorize.issuer.agent_merchants.list(**query: Any = …) -> AnyParameters
**queryAny
Request fields
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_cursorback to get the next page.
Returns
Any The lists.
HTTP operation
GET /v1/authorize/issuer_agent_merchants: List suspected-agent merchant lists
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" }),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_agent_merchants`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"scope": "card",
"program_id": program,
"card_token": "card_tok_fernhill_8",
"patterns": [
"ROBOSHOP*"
],
"inherit": false
}),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_agent_merchants?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"
}).json()
program = step1["id"]
step2 = httpx.put(f"{api}/v1/authorize/issuer_agent_merchants", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"scope": "card",
"program_id": program,
"card_token": "card_tok_fernhill_8",
"patterns": [
"ROBOSHOP*"
],
"inherit": False
}).json()
data = httpx.get(f"{api}/v1/authorize/issuer_agent_merchants?program_id={program}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()