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
- The signature is verified against the shared secret, on the raw body.
- The payload is validated against a schema: required fields, types, lengths, and closed lists of accepted values.
- 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
| Status | Should the provider retry? |
|---|---|
| 2xx | No — accepted |
| 400 | No — the payload will never be accepted as-is |
| 401 | No — fix the signature or the secret |
| 5xx | Yes — 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.
