SDK reference · Python SDK
prov.authorize.checkout_approvals.remind
prov.authorize.checkout_approvals.remind in Python SDK. Remind your customer about a pending cart approval (201), with a fresh link; the first link keeps working.
Signature
prov.authorize.checkout_approvals.remind(approval_id: str, channel: Optional[str] = …, idempotency_key: Optional[str] = …) -> AnyParameters
approval_idstrRequiredchannelOptional[str]idempotency_keyOptional[str]
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,emailortext;smsandapp_pushare refused); it must be one the approval has and itschannelsallow. That message goes alone, with no follow-up text. One ofapp_notification,text,email. recipientstring- For a request with several people, one recipient key. A cart approval has one:
contact.
Returns
Any The reminder, sent or held until quiet hours end.
HTTP operation
POST /v1/authorize/checkout_approvals/{id}/reminders: Remind the shopper
Errors
- authentication_required
- insufficient_scope
- parameter_invalid
- resource_missing
- reminder_not_pending
- reminder_limit_reached
- reminder_already_scheduled
- reminder_too_soon
- reminder_opted_out
- reminder_not_available
- reminder_not_sent
- trial_ended
- spend_cap_reached
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();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/authorize/checkout_approvals/coap_01JCX8V2M5Q8T3W6Y9B4N7K1HD/reminders", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()