Appstle Subscriptions webhooks
Appstle Subscriptions webhooks are HTTP POST requests that tell your server when a subscription contract on a Shopify store changes, or when a billing attempt succeeds, fails or is skipped.
How Appstle Subscriptions webhooks work
Webhooks push these changes to your server, so you don't have to poll the Appstle API. When an event you selected for an endpoint happens, Appstle sends an HTTP POST with a JSON body, and any 2xx response acknowledges it.
Every body is {type, data}, and type names the event, such as subscription.billing-failure. Seven events carry a Shopify subscription contract in data, where id is a gid:// string. Four carry a billing attempt record, where id is Appstle's own number for the attempt and contractId is the subscription as a bare number. Appstle documents no payload version.
Key facts
svix-signature Format: v1,<base64>, space-separated when there are several
{svix-id}.{svix-timestamp}.{raw body} The two headers and the body as received, joined with periods.
Setting up Appstle Subscriptions webhooks
- Webhooks are included in Appstle's Enterprise and Enterprise Plus plans. On another plan, ask
support@appstle.com. - In the Appstle dashboard, open Webhook Integration under More, click Enable Webhook, then Launch webhook portal. Add your endpoint URL there and select its events.
- To test, open the endpoint in the portal and send it an example event. Appstle suggests a tunnel such as ngrok for local work, and Hookdeck Inspect shows a delivery without running a server.
- The webhook portal lists every delivery attempt and lets you retry a failed delivery by hand.
Delivery behaviour
not published Appstle says slow responses time out and trigger retries Retries exponential backoff Appstle doesn't publish the number of attempts or how long they run After retries run out not published retry a failed delivery by hand from the webhook portal Duplicates possible a retried delivery keeps its svix-id, so deduplicate on that Known failure modes
From Hookdeck's Appstle Subscriptions guide →-
Duplicate deliveries
Appstle says webhooks may be delivered more than once. Record each
Handle duplicates →svix-id, which stays the same when a delivery is retried, and skip any you've already handled. -
One billing failure, several events
Handle duplicates →subscription.billing-failurefires after every failed try, with the sameidand a higherattemptCount.retryingNeeded: truemeans Appstle has scheduled another try, so don't treat each event as a new failure. -
Wrong subscription ID on billing events
A contract event's
Choosing events →data.idis agid://string, while a billing event'sdata.idis the attempt anddata.contractIdis the subscription as a bare number. Route ontype, then read the field for that shape. -
Failure reason won't parse
Other Appstle limits →billingAttemptResponseMessageis usually a JSON string witherror_code, but sometimes plain text. Parse it in atry/catch, compareerror_codein upper case, and treat anything else as a generic failure.
Appstle Subscriptions webhook best practices
- Verify against the raw body. Parsing and serialising the JSON again can change its bytes, so verify first and parse afterwards.
- Return a 2xx quickly.
Appstle says slow responses time out and trigger retries. Do the work in a background job, and return a
2xxeven when your own logic fails. - Deduplicate on
svix-id. Deliveries can repeat, and a retried delivery keeps itssvix-id. Appstle tells you to use it for idempotency. - Route on
typebefore reading IDs. Contract events and billing events identify the subscription in different fields and formats. - Look up payment challenges yourself.
3D Secure and other payment challenges send no event. Find attempts in
SECURITY_CHALLENGEthrough the Admin API. - Check the portal after an outage. Appstle doesn't publish how long it retries, so look for failed deliveries in the webhook portal and retry them by hand.
Common Appstle Subscriptions webhook events
Subscription contracts
subscription.created | Subscription contract is created |
subscription.updated | Contract details change |
subscription.paused | Contract is paused, including by a store's failed-payment action |
subscription.cancelled | Contract is cancelled, including by a store's failed-payment action |
Billing attempts
subscription.billing-success | Billing attempt's payment goes through |
subscription.billing-failure | A payment try fails, sent once per failed try |
subscription.billing-skipped | Scheduled order is skipped, often for stock or failed payment |
subscription.upcoming-order-notification | Queued order comes inside its notice period |
Events by resource
| Resource | Events | Payloads |
|---|---|---|
subscription | 11 | 5 |
In this hub
| Webhook events → | Every covered Appstle Subscriptions event, with payloads where the registry has them. |
| MCP events → | How an agent subscribes to Appstle Subscriptions events as MCP events. |
| Verify signatures → | Signature facts, verification code and common failures. |
| Production guide → | Production problems, such as timeouts and retries, and how to handle them. |
| Agent skill → | Install the webhook skill in your coding agent. npx skills add hookdeck/webhook-skills --skill appstle-webhooks |
Don't lose Appstle billing events while your service is down.
Hookdeck Event Gateway accepts every Appstle delivery, verifies its signature, queues events and retries to your service on your schedule.