# prov.authorize.checkoutApprovals.cancelReminder

prov.authorize.checkoutApprovals.cancelReminder in Node SDK. Cancel a reminder held until quiet hours end, before it goes.

## Signature

```ts
prov.authorize.checkoutApprovals.cancelReminder(id: string, reminderId: string): Promise<Reminder>
```

## Parameters

- `id` (string)
- `reminderId` (string)

## Returns

`Promise<Reminder>`

## HTTP operation

[`DELETE /v1/authorize/checkout_approvals/{id}/reminders/{reminder_id}`](https://provenanceauth.com/docs/api/checkout-approvals.md#delete-v1-authorize-checkout-approvals-id-reminders-reminder-id): Cancel a held reminder

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`insufficient_role`](https://provenanceauth.com/docs/platform/errors.md#insufficient_role)
- [`csrf_invalid`](https://provenanceauth.com/docs/platform/errors.md#csrf_invalid)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`reminder_not_scheduled`](https://provenanceauth.com/docs/platform/errors.md#reminder_not_scheduled)
- [`reminder_cancel_unavailable`](https://provenanceauth.com/docs/platform/errors.md#reminder_cancel_unavailable)

## Example

**Node**

```ts
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();
```

**Python**

```python
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()
```
