View as Markdown

SDK reference · Node SDK

prov.authorize.network.setLimitNoticeSettings

prov.authorize.network.setLimitNoticeSettings in Node SDK. Turn push, text or email on or off for near-limit notices (an admin key).

Signature

prov.authorize.network.setLimitNoticeSettings(channels: Partial<LimitNoticeChannels>): Promise<LimitNoticeSettings>

Parameters

channelsPartial<LimitNoticeChannels>Required

Request fields

channelsobjectRequired
The channels to change; a field left out keeps its value.
Show child attributes
pushboolean
The app first, then web push.
textboolean
A text to the person's verified phone.
emailboolean
An email to the person's verified email.

Returns

Promise<LimitNoticeSettings> The settings.

HTTP operation

PUT /v1/mandate/settings/limit_notices: Set the near-limit notice channels

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/settings/limit_notices`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "channels": { "text": false } }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.