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 = …) -> Any

Parameters

**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_cursor back 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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.