Receive signed payment and KYC events at one or more endpoints.
When a payment or a verification changes state, DINARI delivers a webhook to
every active endpoint the business has registered. Each endpoint has its own signing
secret. Payments and KYC share one channel deliberately — one delivery log, one retry
policy, one place to look when something did not arrive.
Each request carries an X-Signature: sha256=<hex> header — an HMAC-SHA256 of the raw
request body using that endpoint’s secret. Always verify it before trusting the payload:
Each (endpoint, event) is delivered independently; a 2xx marks it delivered.
Non-2xx or network errors are retried with exponential backoff (up to 8 attempts),
then marked failed.
Retries resend identical bytes, so the signature stays valid. Deduplicate on
payment_id + event (or application_id + event for KYC) if you process
at-least-once.