SDK reference · Node SDK
prov.authorize.checkoutApprovals.cancelReminder
prov.authorize.checkoutApprovals.cancelReminder in Node SDK. Cancel a reminder held until quiet hours end, before it goes.
Signature
prov.authorize.checkoutApprovals.cancelReminder(id: string, reminderId: string): Promise<Reminder>Parameters
idstringRequiredreminderIdstringRequired
Request fields
idstringpathRequired- The cart approval's ID (
coap_…). 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/authorize/checkout_approvals/{id}/reminders/{reminder_id}: Cancel a held reminder
Errors
- authentication_required
- insufficient_scope
- 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/authorize/checkout_approvals/coap_01JCX8V2M5Q8T3W6Y9B4N7K1HD/reminders/rem_01JCXC7N2P5R8T1V4W7Y0Z3Q6S`, {
method: "DELETE",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.delete(f"{api}/v1/authorize/checkout_approvals/coap_01JCX8V2M5Q8T3W6Y9B4N7K1HD/reminders/rem_01JCXC7N2P5R8T1V4W7Y0Z3Q6S", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()