RetailLink

Object

Webhooks

webhook_event

Payload delivered to a merchant webhook endpoint.

POSTed to your HTTPS URL (or http://localhost in local development) with X-Webhook-Signature, X-Webhook-Event, and X-Webhook-Idempotency-Key. Manage subscriptions in Admin → Settings → General → API credentials.

Exposure

Delivered in webhook POSTs — not a Merchant API list resource.

What

The webhook_event object is the JSON / domain shape for this resource in RetailLink.

Why

Use these fields when integrating — not scraped Admin HTML — so sync jobs and apps stay stable across UI changes.

How

Read each property below — description first, then that property's Code / Data / Output (or type). Use the sticky example JSON on the right as a full fixture.

Properties

4 fields on webhook_event. Types link to related objects when available. Snippets for a property appear under that property.

event

string

Event type such as order.created, product.updated, customer.created.

if (body.event === "order.created") {
  // sync order
}

shopId

string

Shop that produced the event.

Type
shopId: string

data

object

Event-specific payload (e.g. order id, orderNumber, total, currency, status).

Type
data: object

ts

number

Unix epoch milliseconds when the delivery body was built.

Type
ts: number