Webhooks
Webhooks send real-time HTTP POST notifications when events occur in PackEdge.
Setup
- Go to Settings > Integrations in the dashboard
- Click Add Webhook
- Enter a name, URL, and select events to subscribe to
- A signing secret is auto-generated for verifying payloads
Events
License Events
| Event | Trigger |
|---|---|
license.created | New license is created |
license.activated | Site activated against a license |
license.deactivated | Site deactivated |
license.expired | License reaches expiration date |
license.revoked | License manually revoked |
Customer Events
| Event | Trigger |
|---|---|
customer.created | New customer created |
customer.updated | Customer details updated |
Payment Events
| Event | Trigger |
|---|---|
payment.completed | Payment successfully processed |
payment.refunded | Payment refunded |
Subscription Events
| Event | Trigger |
|---|---|
subscription.created | New subscription started |
subscription.cancelled | Subscription cancelled |
subscription.renewed | Subscription renewed |
Payload Format
json
{
"event": "license.created",
"timestamp": "2025-01-15T12:00:00.000Z",
"data": {
"id": "lic_xxx",
"licenseKey": "MYPLUGIN-XXXX-XXXX-XXXX-XXXX",
"productId": "prd_xxx",
"customerEmail": "[email protected]",
"status": "active",
"seats": 5
}
}Verifying Signatures
Each webhook request includes a signing secret that you can use to verify the payload was sent by PackEdge.
Testing
Use the Test button in the dashboard to send a test payload to your webhook URL. This helps verify your endpoint is receiving and processing events correctly.
Retry Policy
Failed webhook deliveries (non-2xx responses) are not currently retried. Ensure your endpoint returns a 200 status code to acknowledge receipt.
