Resend an alert email code
Send a new code to the alert address waiting for one.
Emails a new code to pending_alert_email, and the one before stops working. It takes a person signed in to the dashboard, never an API key.
Path
idstring RequiredThe business's ID, such asbiz_Nq4sT8vWx2Lm6Rb1.
Errors
- 403
session_requiredAn API key sent the request. Only a person signed in to the dashboard can send. - 404
not_foundYou don't own a business with that ID. - 409
verification_expiredNo alert address is waiting: it was confirmed, canceled or replaced, or it's more than 24 hours old. Enter it again withPATCH /businesses/{id}. - 429
too_many_emailsA code went out less than 1 minute ago, the address has had 5 codes since it was entered, or it has had as many emails as it can get for now.Retry-Aftersays when to try again.
Any request can also fail on its key or its body. See errors.
RequestBrowser
// On a dashboard page, whose session cookie the browser sends.const response = await fetch("/api/v1/businesses/biz_Nq4sT8vWx2Lm6Rb1/alert-email/resend", { method: "POST", headers: { "402pay-Business": businessId, },});const { data } = await response.json();Response200 OK
{ "data": { "id": "biz_Nq4sT8vWx2Lm6Rb1", "kind": "business", "name": "Acme Studio", "website": "https://example.com", "support_email": "billing@example.com", "alert_email": "payments@example.com", "pending_alert_email": "alerts@example.com", "status": "active", "suspended_at": null, "email_alerts": true, "product_updates": false, "created_at": "2026-05-09T21:18:42.216Z", "updated_at": "2026-09-24T10:02:51.338Z" }}