Auth internal API
Billing notifications
1 endpoint.
POST
/api/v1/internal/billing-notifications/send-emailSend Billing Notification Email
Email one business user about a billing event. Called per recipient by sor, which owns the business↔user mapping; this service only knows how to render and send.
**422 on a kind we have no copy for.** The alternative — generic wording — produces an email that names no amount, no date and no reason, which spends the customer's one notification on nothing and reports nothing to us. The caller retries and dead-letters it, so it surfaces as a tracked failure. `notification_data` gets no such treatment: it is best-effort, and a missing or unreadable value costs a line in the callout rather than the email.
Authentication
X-Internal-Api-Key header.
Request bodyrequired
application/jsonInternalBillingNotificationEmailRequest| Field | Type | Description |
|---|---|---|
emailrequired | string (email) | |
business_namerequired | string | |
kindrequired | string | max length 64 |
billing_url | string (uri) | null | |
notification_data | object | |
event_id | string | default "" |
Responses
200Successful Responseapplication/jsonany4XXRefused: `code` says why5XXFailed: `code` says why
Error bodies: ErrorBody. See Errors.