SDK reference · Node SDK

prov.mandate.approvals.cancelReminder

prov.mandate.approvals.cancelReminder in Node SDK. Cancel a held reminder round before it goes.

Signature

prov.mandate.approvals.cancelReminder(id: string, reminderId: string): Promise<Reminder>

Parameters

idstringRequired
reminderIdstringRequired

Request fields

idstringpathRequired
The approval's ID (appr_…).
reminder_idstringpathRequired
The held reminder's ID (rem_…), from the request's reminders.scheduled.id or its reminders list.

Returns

Promise<Reminder> The reminder as it ended.

HTTP operation

DELETE /v1/mandate/approvals/{id}/reminders/{reminder_id}: Cancel a held reminder

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approvals/appr_01M6ZG0DENDP7V1YZC3CG74SWD/reminders/rem_01JCXB3K8M2Q7T4V9W5Y1Z6R0P`, {
  method: "DELETE",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.