Webhook: billing.top_off_failed
POSTed to the default webhook URL when Stripe declines the payment method for an automatic top-up of the API wallet. After a decline, Hedra holds further automatic top-ups until the hold expires, the payment method changes or a top-up is paid, and sends no event for a decline while a hold is in place. Retried on the same schedule as a job delivery, but not listed by GET /webhooks/deliveries and cannot be redelivered. Dedupe on X-Hedra-Webhook-Id and verify X-Hedra-Webhook-Signature before acting.
Headers
Deduplication id: the event's own id (evt_<uuid>), byte-identical across every retry. Signed.
Unix epoch seconds the delivery was signed at; reject it when more than 5 minutes old. Signed.
The event this delivery announces. Signed.
1-based attempt number within the current delivery cycle. Informational and outside the signature; do not branch on it.
true when an operator asked for this event to be sent again — process it even if its id was already recorded. Signed.
Hex-encoded ed25519 signature over the canonical string documented on the Webhooks tag; verify against the key from GET /webhooks/public-key before acting on the request.
Payload
Response
Acknowledged; any 2xx stops the retry ladder. Other responses are retried per the Webhooks tag.
Changes
Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.