LogoLogo
Build appsContact API support
Webhook automations
  • Build apps
  • Site Templates
  • API Reference
  • Changelog
Webhook automations
  • Webhook automations overview
  • Setup webhooks
    • How to process webhooks
    • Set up webhooks for your app
    • Code example for webhook handling
  • Learn Ecwid webhooks
    • List of webhook events
    • Event data in webhooks
  • Customize webhooks
    • Pass additional data through webhooks
  • Webhook flow examples
    • Export new orders
    • Sync product stock

Lightspeed® 2025

On this page
  • Structure and restrictions of custom headers
  • Add custom webhook headers to your app

Was this helpful?

  1. Customize webhooks

Pass additional data through webhooks

Last updated 2 months ago

Was this helpful?

Pass additional static data for all webhooks Ecwid sends to your application through custom headers.

For example, custom headers can work as application identifiers if you receive webhooks from several applications to one endpoint. Or they can work as an additional validation layer.

Do not pass additional data through the webhook URL. Use custom headers instead.

Structure and restrictions of custom headers

Custom webhook headers consist of a name and value, for example:

My-Custom-Validation-Key: abc123def456ghi789

Names and values for such headers are always static. Custom headers cannot work as variables to provide additional entity data like order total for the 'order.created' event.

Webhook example with a custom header
PUT /webhook-receiver HTTP/1.1
Host: backend.example.com
Content-Type: application/json
Content-Length: 261
X-Ecwid-Webhook-Signature: MeV28XtFal4HCkYvdilwckJinc6Dtp4ZWpPhmjdjn2= // Ecwid validation header
My-Custom-Validation-Key: abcde12345  // Custom header

{
  "eventId":"80aece08-40e8-4145-8764-6c2f0d38678",
  "eventCreated":1234567,
  "storeId":1003,
  "entityId":103878161, 
  "eventType":"order.created",
  "data":{
    "orderId":"XJ12H", 
    "newPaymentStatus":"PAID",
    "newFulfillmentStatus":"SHIPPED"
  }
}

Add custom webhook headers to your app

to set up custom headers for your application. The request must include:

  • Your application name or client_id.

  • Name and value for the custom webhook header.

We'll update the app for you as soon as possible. Changes will be applied immediately after the update.

Contact API Support team