SDK reference · Node SDK

prov.authorize.checkoutApprovals.remind

prov.authorize.checkoutApprovals.remind in Node SDK. Remind your customer about a pending cart approval (201): the first message again, marked as a reminder, with a fresh link (the first link keeps working).

Signature

prov.authorize.checkoutApprovals.remind(id: string, opts?: { channel?: ReminderPinChannel; idempotencyKey?: string }): Promise<Reminder>

Parameters

idstringRequired
opts{ channel?: ReminderPinChannel; idempotencyKey?: string }

Request fields

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).
idstringpathRequired
The cart approval's ID (coap_…).
channelenum
Pins the channel (app_notification, email or text; sms and app_push are refused); it must be one the approval has and its channels allow. That message goes alone, with no follow-up text. One of app_notification, text, email.
recipientstring
For a request with several people, one recipient key. A cart approval has one: contact.

Returns

Promise<Reminder> The reminder, sent or held until quiet hours end.

HTTP operation

POST /v1/authorize/checkout_approvals/{id}/reminders: Remind the shopper

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_approvals/coap_01JCX8V2M5Q8T3W6Y9B4N7K1HD/reminders`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.