Skip to main content

Webhooks

What is a webhook?

A webhook lets push order-event notifications to your system in near real time. When a supported order event occurs, sends an HTTP POST request to your configured webhook URL.

Webhook Setup

Webhook configuration is handled in the Admin Panel. Please contact your account manager to set up or update your webhook details.

What you need to configure

After your account has been registered with , you can provide details to set up your webhook and receive notifications listed in Notifications.

FieldRequiredDescription
Webhook URLYesThe webhook endpoint that receives POST requests.
Authentication TypeYesOne of the supported auth types listed below.
Authentication DetailsDepends on auth typeCredentials/details required by the selected auth type.
HeadersOptionalAdditional static headers to include in webhook calls (up to 3 headers in the current admin UI).
TransformerOptionalNotification mapping/shape customization for your integration.

Webhook request format

Webhook notifications follow the CloudEvents-style envelope used by .

PropertyDescription
cloudEventsVersionCloudEvents version for the payload envelope.
eventTypeEvent name, such as com.example.OrderConfirmed.
eventTypeVersionVersion of the event type contract.
sourceSource URI for the order/event.
eventIDUnique event identifier. Use this for idempotency.
eventTimeEvent creation timestamp.
contentTypePayload content type (typically application/json).
dataEvent-specific payload body.

Example payload references:

Supported authentication types

Use one of the following auth type values when configuring webhook integration:

Auth Type ValueUI LabelWhat to provide
NoAuthNo Auth (Open Endpoint)No auth fields required.
BasicAuthBasic Auth (Username and Password)authUrl, username, password
BearerAuthBearer Auth (Client ID and Secret)authUrl, clientId, secret
ApikeyAuthAPI Key (API key to be passed in header)key, value

How each type behaves

NoAuth

  • sends webhook notifications directly to your webhook URL.
  • No authentication handshake is performed.

ApikeyAuth

  • A header is added to the webhook call using your configured key and value.
  • Example: if key = x-api-key and value = abc123, the webhook request includes x-api-key: abc123.

BasicAuth

  • Before sending the webhook event, calls your configured authUrl with Basic Auth (username + password).
  • The auth response is used by your integration mapping to authorize the final webhook call.

BearerAuth

  • Before sending the webhook event, calls your configured authUrl with clientId and secret.
  • The returned token/credentials are used by your integration mapping to authorize the final webhook call.

Delivery expectations

Your webhook endpoint should:

  1. Accept HTTP POST with JSON body.
  2. Return a 2xx response quickly after basic validation.
  3. Complete auth and webhook responses within 20 seconds to avoid timeout failures.

If your endpoint returns non-2xx, is unreachable, or times out, the notification delivery is treated as failed.

Go-live checklist

  • Webhook URL is HTTPS and publicly reachable.
  • An auth type has been selected.
  • Any required custom headers are configured.
  • Endpoint returns 2xx for valid events sent by spacefolder