Keystone Developers
Open Keystone
API reference

Auth internal API

Billing notifications

1 endpoint.

POST/api/v1/internal/billing-notifications/send-email

Send 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
FieldTypeDescription
emailrequiredstring (email)
business_namerequiredstring
kindrequiredstringmax length 64
billing_urlstring (uri) | null
notification_dataobject
event_idstringdefault ""

Responses

200Successful Response
application/jsonany
  • 4XXRefused: `code` says why
  • 5XXFailed: `code` says why

Error bodies: ErrorBody. See Errors.