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.

11 events covered

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

Signature header
svix-signature

Format: v1,<base64>, space-separated when there are several

Signed material
{svix-id}.{svix-timestamp}.{raw body}

The two headers and the body as received, joined with periods.

How events are identified
type field in the body
Send timestamp
svix-timestamp

Reject deliveries older than 5 minutes.

Other headers
svix-id, svix-timestamp
Agent skill
npx skills add hookdeck/webhook-skills --skill appstle-webhooks

Verify Appstle Subscriptions webhooks →

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

  1. Duplicate deliveries

    Appstle says webhooks may be delivered more than once. Record each svix-id, which stays the same when a delivery is retried, and skip any you've already handled.

    Handle duplicates →
  2. One billing failure, several events

    subscription.billing-failure fires after every failed try, with the same id and a higher attemptCount. retryingNeeded: true means Appstle has scheduled another try, so don't treat each event as a new failure.

    Handle duplicates →
  3. Wrong subscription ID on billing events

    A contract event's data.id is a gid:// string, while a billing event's data.id is the attempt and data.contractId is the subscription as a bare number. Route on type, then read the field for that shape.

    Choosing events →
  4. Failure reason won't parse

    billingAttemptResponseMessage is usually a JSON string with error_code, but sometimes plain text. Parse it in a try/catch, compare error_code in upper case, and treat anything else as a generic failure.

    Other Appstle limits →

Appstle Subscriptions webhook best practices

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

subscription.created · .updated · .activated · .paused +7

11 5

All 11 events →

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.

Not affiliated with Appstle Subscriptions. Facts are compiled from public sources and linked inline.