SDK reference · Node SDK

prov.authorize.issuer.merchants.remove

prov.authorize.issuer.merchants.remove in Node SDK.

Signature

prov.authorize.issuer.merchants.remove(id: string): Promise<{ object: "issuer_merchant"; id: string; deleted: true }>

Parameters

idstringRequired

Request fields

idstringpathRequired
The row's ID (imer_).

Returns

Promise<{ object: "issuer_merchant"; id: string; deleted: true }> The row was removed.

HTTP operation

DELETE /v1/authorize/issuer_merchants/{id}: Remove a merchant table row

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",
    "mode": "live"
  }),
})).json();
const program = step1.id;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_merchants`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "program_id": program,
    "domain": "brightbox.example",
    "merchant_ids": [
      "174030075991"
    ]
  }),
})).json();
const row = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_merchants/${row}`, {
  method: "DELETE",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.