SDK reference · Node SDK
prov.authorize.issuer.agentMerchants.remove
prov.authorize.issuer.agentMerchants.remove in Node SDK.
Signature
prov.authorize.issuer.agentMerchants.remove(id: string): Promise<{ object: "issuer_agent_merchant_list"; id: string; deleted: true }>Parameters
idstringRequired
Request fields
idstringpathRequired- The list's ID (
iaml_).
Returns
Promise<{ object: "issuer_agent_merchant_list"; id: string; deleted: true }> The list was removed.
HTTP operation
DELETE /v1/authorize/issuer_agent_merchants/{id}: Remove a suspected-agent merchant list
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_9",
"patterns": [
"ROBOSHOP*"
]
}),
})).json();
const list = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_agent_merchants/${list}`, {
method: "DELETE",
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_9",
"patterns": [
"ROBOSHOP*"
]
}).json()
list = step2["id"]
data = httpx.delete(f"{api}/v1/authorize/issuer_agent_merchants/{list}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()