SDK reference · Node SDK

prov.authorize.issuer.agentMerchants.put

prov.authorize.issuer.agentMerchants.put in Node SDK. Set the issuer's list (every program) or one card's.

Signature

prov.authorize.issuer.agentMerchants.put(params: { scope: "issuer" | "card"; programId?: string; cardToken?: string; patterns: string[]; inherit?: boolean }): Promise<IssuerAgentMerchantList>

Parameters

params{ scope: "issuer" | "card"; programId?: string; cardToken?: string; patterns: string[]; inherit?: boolean }Required

Request fields

scopeenumRequired
issuer (every program) or card. One of issuer, card.
program_idstring
The card's program (card scope only).
card_tokenstring
The processor's card token (card scope only). A card number is refused.
patternsarray of stringsRequired
Patterns over the merchant id or name.
inheritboolean
card scope only: false leaves out the issuer's and the program's lists. Default true.

Returns

Promise<IssuerAgentMerchantList> The list, replaced (same id).

HTTP operation

PUT /v1/authorize/issuer_agent_merchants: Set suspected-agent merchants for the issuer or a card

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 data = 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_7",
    "patterns": [
      "ROBOSHOP*",
      "174030075991"
    ]
  }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.