← Documentation
Core9 min readwebhooksapioperations

Webhooks

Signed events, verification order, and operational playbooks.

Monolith receives webhooks from its verification and payment providers. This page describes how they are handled, so that an operator reading a log can tell a rejection from a failure.

Verification comes first

  1. The signature is verified against the shared secret, on the raw body.
  2. The payload is validated against a schema: required fields, types, lengths, and closed lists of accepted values.
  3. Only then is anything written.
An unsigned or wrongly signed call is rejected before parsing. A well-signed call carrying an unknown status value is also rejected, with 400, and the rejection is recorded as a security event. An unrecognised value is never written through as if it were understood.

What a status code means to the sender

StatusShould the provider retry?
2xxNo — accepted
400No — the payload will never be accepted as-is
401No — fix the signature or the secret
5xxYes — transient on our side

A provider event is evidence, not a decision

No field of a webhook payload becomes a financial state by itself. A state backed by a provider is re-read from the provider, scoped to the account the operation belongs to, and the stored evidence must support the state before it is recorded.

Something here does not match what the product does? Tell us — a help page that is wrong is worse than no help page.