Skip to main content
Register an HTTPS URL and Bevits sends a POST request to it whenever an event occurs in your organization (email delivered, opened, or clicked; Official WhatsApp message read or replied; unsubscribe; new customer; order update; or purchase created through the API). Every delivery is signed and retried for about 3 days on failure.
  • Respond quickly: return any 2xx status within 15 seconds. Enqueue the payload and process it asynchronously.
  • Verify the signature: signatures follow the Standard Webhooks spec, with libraries for Node.js, Python, PHP, Go, Ruby, Java, Rust, and C#.
  • Deduplicate on webhook-id: events may be delivered more than once; webhook-id (wev_…) stays identical across retries and manual resends.

Delivery guarantees

Create an endpoint

Create endpoints under Settings → Webhooks or via the API (requires the write scope because webhooks export customer data):
The 201 response returns the signing secret (whsec_…) only once. Store it on your server and verify the integration with a test event:
The test event contains sample data with livemode: false and returns the HTTP status your URL responded with, the duration in milliseconds, and the start of the response body. Each organization supports up to 20 endpoints.

Verify the signature

The webhook-signature header uses the format v1,<hmac>, where <hmac> is the base64-encoded HMAC-SHA256 of {webhook-id}.{webhook-timestamp}.{raw_body}. The signing key is the base64-decoded bytes after whsec_. Always verify against the raw request body before parsing JSON.
Manual verification without a library:
Each attempt is re-signed with its send timestamp. A retry of an older event arrives with a current webhook-timestamp and passes the 5-minute replay check.

Rotate the signing secret

Call POST /v1/webhook-endpoints/{endpoint_id}/rotate-secret to generate a new secret. The current secret continues signing alongside the new one for expire_current_in_hours (default 24, maximum 168; 0 expires it immediately). During that overlap window, webhook-signature contains both space-separated signatures so you can roll out the new secret without dropping events.

Retries, concurrency, and circuit breaker

  • Any non-2xx status (including 4xx), timeout, or connection error triggers a retry.
  • Delays include up to 10% jitter to spread traffic after an outage.
  • After the 10th failed attempt, the delivery moves to failed and can be resent manually.
  • Concurrency: each URL receives at most 6 concurrent requests.
  • Circuit breaker: after 5 consecutive failures, Bevits pauses deliveries to the endpoint for increasing intervals (30 seconds up to 1 hour) and sends a single probe delivery. A 2xx resumes normal delivery immediately; paused deliveries do not lose retry attempts.

Automatic disable

If every attempt to an endpoint fails for 5 consecutive days, Bevits disables it (disabled_reason: "failing") and notifies store administrators by email. A single 2xx response resets the counter. While an endpoint is auto-disabled, new events continue to be recorded for up to 30 days as failed deliveries with error_code: "endpoint_disabled". After fixing your server, re-enable the endpoint (status: "enabled") and call /recover to replay missed events. Manually disabled endpoints (disabled_reason: "manual") do not record new events.

Delivery log, resend, and recovery

Manual resends reuse the same webhook-id and work even while an endpoint is disabled, so you can verify a fix before re-enabling it.

Event catalog

Call GET /v1/webhook-event-types for the complete catalog with sample data payloads for every type. When available, data.customer identifies the customer (on email.*, whatsapp.message.*, and order.* events, customer can be null if no customer record is linked):
external_id matches the customer.external_id sent to POST /v1/customers or the custom events API. Message events include source: { "type": "flow" | "campaign", "id", "name" }, or null when sent from the inbox.

Email

Applies to both flows and campaigns.

Customers

contact.unsubscribed reason values: unsubscribe_link, spam_complaint, hard_bounce, whatsapp_opt_out, manual, or api. Initial store imports and events sent with backfill: true do not emit customer.created. For API-created customers, data.customer matches the object returned by POST /v1/customers and GET /v1/customers/{customer_id}, and is never duplicated on retries or when the customer already existed (200).

Official WhatsApp

message.id is Meta’s message ID (wamid…). in_reply_to is populated when the customer replied by quoting an earlier message.

Orders

Emitted in real time for native Nuvemshop, Shopify, and WooCommerce integrations.
  • order.id is null until the order becomes a stored purchase in Bevits (for example, an unpaid newly created order).
  • order.total is a decimal in major currency units (for example, 189.9), not cents.

Purchases created through the API

For organizations without a store integration, whose sales are recorded through the API: with POST /v1/purchases or by their order and payment events. data.purchase matches the object returned by POST /v1/purchases and GET /v1/purchases/{purchase_id}, and is never duplicated on retries or when a purchase with the same external_id already existed (200): each purchase sends one purchase.created, whether the event or POST /v1/purchases created it. Events sent with backfill: true create purchases without this webhook. Orders from connected stores still arrive as order.* events. The customer comes in purchase.customer_id; look it up with GET /v1/customers/{customer_id}.

Versioning

api_version is pinned when the endpoint is created. New fields may be added to data without notice — ignore unknown fields in your parser. Removing, renaming, or changing a field’s type only happens in a new version.

Error reference

Possible attempt error_code values: timeout, connection_failed, dns_failed, private_address, tls_error, redirect_not_followed, non_2xx_response, endpoint_disabled, endpoint_deleted, and internal_error.

Next steps