Webhooks
Manage integration-scoped webhook records and understand the test-delivery contract
Integration webhook records
Webhook management is scoped to integrations in the tenant API. It is not a universal /api/v1/webhooks resource or a separate Configuration → Webhooks screen.
Implemented management routes
| Method | Path |
|---|---|
| GET | /api/v1/tenant/{tenantId}/integrations/{integrationId}/webhooks |
| POST | /api/v1/tenant/{tenantId}/integrations/{integrationId}/webhooks |
| GET | /api/v1/tenant/{tenantId}/integrations/webhooks/{webhookId} |
| PUT | /api/v1/tenant/{tenantId}/integrations/webhooks/{webhookId} |
| DELETE | /api/v1/tenant/{tenantId}/integrations/webhooks/{webhookId} |
| POST | /api/v1/tenant/{tenantId}/integrations/webhooks/{webhookId}/test |
Use JWT authentication and the relevant integration permissions. Manage records only for integrations in your tenant.
Test delivery
The implemented test call posts a JSON object with event: "test", timestamp, webhookId and message to the configured URL. If a secret is configured, test delivery includes X-Webhook-Secret. Its result records a success/failure count and last-triggered time.
This test flow does not use the previously documented X-SmartWMS-Signature HMAC contract. Do not copy that old signature-verification example into a receiver.
Delivery limits
The current management/test implementation is not a guarantee of automatic delivery for all order, stock and product events. A stored retry setting does not establish the previously described five-attempt backoff schedule or automatic disabling behavior. Agree the actual event delivery mechanism before depending on it in production.
Incoming Shopify webhooks use a separate provider-specific integration flow; they are not the outbound test-delivery contract described here.