Managing Webhooks
Overview
You can use Webhooks to subscribe to near real-time updates from Violet.
See our API Reference for a full description of each of the below calls.
Creating Webhooks
Webhooks can be created through the REST API by performing the following request.
curl -X POST https://sandbox-api.violet.io/v1/events/webhooks \
-H "X-Violet-App-Id: your-app-id-here" \
-H "X-Violet-App-Secret: your-app-secret-here" \
-H "X-Violet-Token: your-token-here" \
-H "Content-type: application/json" \
-d '{"event": "ORDER_SHIPPED", "remote_endpoint": "https://example.com/events/order_shipped"}'Retrieving a List of Webhooks
A list of your apps existing webhooks can be obtained through the REST API by performing the following request.
Retrieve a Single Webhook
A single webhook that belongs to your app can be obtained through the REST API by performing the following request.
Modifying Webhooks
Webhooks can be modified through the REST API by performing the following request.
Updating All Webhooks Status
Webhooks Status can be modified through the REST API by performing the following request.
Removing Webhooks
Webhooks can be removed through the REST API by performing the following request.
Last updated
Was this helpful?