Register an endpoint
Use Register Webhook Endpoint:Events
Delivery
- Kravata sends the event data as the JSON body, using the
httpMethodyou configured. - A delivery is successful when your endpoint answers with a
2xxstatus withintimeoutMs. - Failed deliveries are retried up to
max_attemptstimes with exponential backoff: the wait before retry n isinitial_delay_ms × multiplier^(n-1)(1 s, 4 s, 16 s with the defaults).
Best practices
Respond quickly
Respond quickly
Return a
2xx as soon as you receive the event and process it asynchronously. Slow responses count as failures once timeoutMs is exceeded.Make your handler idempotent
Make your handler idempotent
Retries can deliver the same event more than once. Use the resource
id and status to ignore duplicates.Confirm with the API
Confirm with the API
Before acting on a critical event (for example, releasing goods after a payment), confirm the current state of the resource with the corresponding
GET endpoint.
