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
idstringRequiredreminderIdstringRequired
Request fields
idstringpathRequired- The approval's ID (
appr_…). reminder_idstringpathRequired- The held reminder's ID (
rem_…), from the request'sreminders.scheduled.idor 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
- authentication_required
- insufficient_role
- csrf_invalid
- rate_limit_exceeded
- resource_missing
- reminder_not_scheduled
- reminder_cancel_unavailable
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();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.delete(f"{api}/v1/mandate/approvals/appr_01M6ZG0DENDP7V1YZC3CG74SWD/reminders/rem_01JCXB3K8M2Q7T4V9W5Y1Z6R0P", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()