This article explains how to subscribe to account-level webhooks and handle events on your server.
Note: Account-level webhooks are available only for Wix Enterprise and Wix Channels partners.
Subscribe to an account-level webhook from the Webhooks page in your Wix Studio workspace.
To test your new webhook, hover over the event and click Test. For more options, click the More Actions
icon.
Wix sends webhook payloads in JSON Web Token (JWT) format. Your public key allows you to verify the signature in any webhook you receive.
To get your public key:
Save the public key in a secure location. You need to use it in your handler to verify that the request is from Wix.
When an event you've subscribed to occurs, Wix sends a POST request to your callback URL with the event data in the request body. Your endpoint should return a 200 status code to acknowledge receipt.
The code sample you receive when creating a webhook includes everything you need to handle the event:
Copy the code sample to your server and customize the event handler to implement your business logic.
Note: If you manage child accounts, events from those accounts also propagate to your callback URL. For details on distinguishing between parent and child account events, see About Account-Level Webhooks.