App webhooks

The signed events Tringify sends your app: installs, updates, token changes and store data.

Tringify POSTs signed JSON to your app's webhook_url when something happens to an installation or, if you subscribe, to the store's data. Set the URL in tringify.app.json or the Developer Portal, and generate the signing key under the app's Webhooks. Each store gets the events, scopes and API version of the release it installed.

App events#

Event

When

app.installed

A store installs the app. Carries the store's Store API token and granted scopes.

app.token_rotated

The store's token is replaced, for example after the store approves an update that asks for more scopes. Carries the new token; the old one stops working.

app.install.updated

The store moves to a newer release of your app.

app.plan_changed

The store's plan for your app changes.

app.uninstalled

The store uninstalls the app, or the store is being deleted. The token stops working.

app.store_suspended, app.store_reinstated

Tringify suspends a store your app is installed on, or lifts the suspension. While it is suspended the Store API refuses the store's requests with STORE_SUSPENDED and its storefront is unavailable to shoppers; your app stays installed and keeps its token.

app.store_terminated

Tringify permanently terminates a store your app is installed on. The Store API refuses its requests with STORE_TERMINATED; the store is deleted at deletion_at, when your app gets app.uninstalled and app.store_redact.

app.cart_references_changed, app.wishlist_references_changed

Your app's references on cart or wishlist lines change. See App-owned line artifacts.

app.order_line_artifact_linked, app.order_line_artifact_fulfillment_changed

A paid order line now carries your artifact, or that line's shipping and delivery state changes. See App-owned line artifacts.

app.customer_data_request

A store starts handling a shopper's request for a copy of their data. Sent only to apps whose installed scopes can read customer data. See Privacy and data deletion.

app.customer_redact

A store has erased a shopper's data at their request. Sent only to apps whose installed scopes can read customer data. See Privacy and data deletion.

app.store_redact

48 hours after the store uninstalled the app, unless it installed it again first, or at once when the store is deleted. Delete the store's data. See Privacy and data deletion.

app.test

You send a test with tringify app webhook test or Send test webhook in the Developer Portal.

Every app event except app.test is always sent: you can't unsubscribe from them, and they are sent even while your app's webhooks are disabled.

Store data events#

To hear about the store's data, such as new orders or changed products, list the events in data_subscribed_events, such as orders/create or products/update. Each event is listed, with its payload and required app scope, on the page of its resource in the Store API reference. Your app receives an event only while the store's installation holds that scope: it is checked when the subscription is saved and again at every delivery. Subscribe before the changes you want to receive; a new subscription does not provide a history of earlier changes. Email subscriber lifecycle topics are subscribers/create, subscribers/update and subscribers/delete, all requiring read_customers, the same scope as the Store API subscriber resource. Creation fires when the subscriber row is created, including pending double opt-in requests. Activation (pending_confirmation to active), unsubscribe, resubscription and edits fire subscribers/update; deletion fires subscribers/delete. data.subscriber is the Store API subscriber resource, including channel and consent proof; delete carries the resource captured before removal. Changes within one transaction are combined into one final snapshot.

The request#

json
{
  "event": "app.installed",
  "event_id": "del_5f2c0b8e4a1d4c7e9b3a6d2f1e0c8b7a",
  "delivery_id": "del_5f2c0b8e4a1d4c7e9b3a6d2f1e0c8b7a",
  "store_id": "74e634ea-84ec-43b8-b66b-986214c2c5a3",
  "app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
  "api_version": "2025-01",
  "timestamp": "2026-07-29T20:06:24-04:00",
  "data": {
    "app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
    "store_id": "74e634ea-84ec-43b8-b66b-986214c2c5a3",
    "release_id": "69e5eed4-25f4-4734-8a20-e80364b2bb06",
    "app_version": "1.0.0",
    "installation_id": "0b9e7c41-58d2-4f6a-a3e1-7d2c9b4f8a10",
    "access_token": "tpat_...",
    "scopes": ["read_products"],
    "installed_by": "5c24b66d-1b0a-4acd-8d9f-5d4372bda777",
    "installed_at": "2026-07-29T20:06:24-04:00"
  }
}

Field

Meaning

event

The event name.

event_id

Identifies the event. Process each one once: a retried delivery carries the same event_id.

delivery_id

Identifies the delivery, shown in the Delivery Log.

store_id, app_id

The store and your app.

api_version

The API version of the release the store installed.

timestamp

When this delivery attempt was sent, in the store's time zone with its offset; the same instant as X-Tringify-Timestamp. A retry carries a new value.

data

The event's payload.

Every time in a webhook, the envelope timestamp and each *_at field in data, uses one form: RFC 3339 in the store's time zone with its offset, to the second, for example 2026-10-10T14:05:09-04:00. The offset keeps the instant exact, so convert to UTC by parsing it; the local clock time matches what the merchant sees in Store Admin. Because timestamp changes on every attempt, use event_id to recognise a retried event. A datetime metafield value uses the same form for every owner (for example 2026-10-01T10:15:00-04:00); a date metafield value stays a date (2026-10-01).

On app.installed, installation_id identifies this installation: a reinstall gets a new one, and app.uninstalled carries the same value. installed_by is the staff member who installed it, as an ID, not an email address. Plan-based installs also carry plan_revision_id, and subscription_id and is_test when the store installed a free or test plan; is_test is true on development stores, where your paid plans install without charge. See Billing.

Token rotation payload#

json
{
  "event": "app.token_rotated",
  "data": {
    "app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
    "store_id": "74e634ea-84ec-43b8-b66b-986214c2c5a3",
    "release_id": "8c1b4e2a-5f3d-4a6b-9c7e-0d2f1a3b4c5d",
    "access_token": "tpat_...",
    "scopes": ["read_products", "write_products"],
    "reason": "release_scope_consent",
    "rotated_by": "5c24b66d-1b0a-4acd-8d9f-5d4372bda777",
    "rotated_at": "2026-07-29T20:07:47-04:00"
  }
}

On app.token_rotated, rotated_by is the staff member who caused the rotation, as an ID. release_id and reason are present only when the rotation came from approving an update. The event has no installation_id.

Uninstall payload#

json
{
  "event": "app.uninstalled",
  "data": {
    "app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
    "store_id": "74e634ea-84ec-43b8-b66b-986214c2c5a3",
    "installation_id": "0b9e7c41-58d2-4f6a-a3e1-7d2c9b4f8a10",
    "installed_at": "2026-07-29T20:06:24-04:00",
    "uninstalled_at": "2026-07-29T20:09:01-04:00"
  }
}

When a store is permanently deleted, app.uninstalled has data.reason set to store_deleted, and app.store_redact follows at once: delete everything you hold for that store, keeping only records you're legally required to keep. A merchant's uninstall has no reason. Treat a reason you don't recognize as an ordinary uninstall. See Privacy and data deletion.

Update payload#

json
{
  "event": "app.install.updated",
  "data": {
    "app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
    "store_id": "74e634ea-84ec-43b8-b66b-986214c2c5a3",
    "previous_release_id": "69e5eed4-25f4-4734-8a20-e80364b2bb06",
    "release_id": "8c1b4e2a-5f3d-4a6b-9c7e-0d2f1a3b4c5d",
    "app_version": "1.1.0",
    "provider_connections_reset": false,
    "updated_at": "2026-08-03T11:20:15+01:00"
  }
}

app.install.updated is sent when the store moves to a newer release of your app, whether or not the update asked for new scopes; new scopes also send app.token_rotated. When provider_connections_reset is true, the release changed your provider contracts and the store's provider connections are switched off until your app reports them ready again.

Plan change payload#

json
{
  "event": "app.plan_changed",
  "data": {
    "app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
    "store_id": "74e634ea-84ec-43b8-b66b-986214c2c5a3",
    "subscription_id": "3a7d1f52-9c4e-4b8a-a6f1-2e5c7d9b0a14",
    "previous_plan": {
      "key": "starter",
      "name": "Starter",
      "revision_id": "5b2e8c1a-7d4f-4e3b-9a6c-1f0d2e3b4a5c",
      "commercial_model": "free"
    },
    "plan": {
      "key": "growth",
      "name": "Growth",
      "revision_id": "9e1c4b7a-2d5f-4a8e-b3c6-7f0a1d2e3b4c",
      "commercial_model": "subscription"
    },
    "effective_at": "2026-08-03T11:24:02+01:00",
    "test": false
  }
}

app.plan_changed is sent when the store's plan for your app changes. Use plan.key to decide which features and limits apply; commercial_model is free, subscription or usage. previous_plan is absent when the store had no plan before. Upgrades take effect at once; downgrades at the start of the next statement month, which effective_at gives. test is true on development stores and on transfer stores until the client takes ownership: nothing is charged there. See Billing.

Store suspension payloads#

json
{
  "event": "app.store_suspended",
  "data": {
    "app_id": "d6a26466-7903-4e2f-8fd7-7c59f3c8cd9a",
    "store_id": "74e634ea-84ec-43b8-b66b-986214c2c5a3",
    "occurred_at": "2026-11-14T16:02:20+05:30"
  }
}

app.store_suspended is sent when Tringify suspends a store, and app.store_reinstated, with the same fields, when it lifts the suspension; occurred_at is when that happened. Tringify's reason is not included. Until the store is reinstated, every Store API request for it is refused with 403 STORE_SUSPENDED, whatever the token, and the storefront shows shoppers that the store is unavailable. Pause scheduled work for the store, such as syncs and polling, instead of retrying refused requests, and resume on app.store_reinstated. Your installation, token and settings are kept. A store that is closed or deleted while suspended gets no app.store_reinstated: it gets app.uninstalled when it is deleted. A store that is terminated gets app.store_terminated instead, with occurred_at and deletion_at: every Store API request for it is refused with 403 STORE_TERMINATED from then on, and it is deleted at deletion_at, when your app receives app.uninstalled (reason store_deleted) and app.store_redact. It is never reinstated, so stop your work for the store.

Cart and wishlist reference payloads#

json
{
  "event": "app.cart_references_changed",
  "data": {
    "event_id": "7f3a9c2e-1b4d-4e8f-a6c5-0d2b3e4f5a6b",
    "cart_id": "c41e8b2a-6f3d-4a9c-b7e1-2d5f8a0c3e6b",
    "cart_version_id": "e2b7c4a1-9d3f-4e6a-8b5c-1f0a2d3e4b5c",
    "sequence": 4,
    "attached": [
      {
        "line_id": "a9d2f4c1-3e5b-4a7d-9c8e-6b1f0a2d3e4c",
        "key": "engraving",
        "value": "art_8f2c1d",
        "artifact_version": 2,
        "expires_at": "2026-08-04T11:30:00+01:00"
      }
    ],
    "released": [],
    "current": [
      {
        "line_id": "a9d2f4c1-3e5b-4a7d-9c8e-6b1f0a2d3e4c",
        "key": "engraving",
        "value": "art_8f2c1d",
        "artifact_version": 2,
        "expires_at": "2026-08-04T11:30:00+01:00"
      }
    ]
  }
}
json
{
  "event": "app.wishlist_references_changed",
  "data": {
    "event_id": "2c8e4a1f-6b3d-4f9a-a7c2-5e0b1d3f4a6c",
    "wishlist_id": "b3f6a9d2-4c1e-4b8a-9e7d-0a2c5f8b1d3e",
    "sequence": 2,
    "attached": [],
    "released": [
      {
        "line_id": "f1c4e7a2-8b3d-4a6f-9c5e-2d0b1a3e4f5c",
        "key": "engraving",
        "value": "art_8f2c1d",
        "artifact_version": 2,
        "expires_at": "2026-09-02T09:00:00+01:00"
      }
    ],
    "current": []
  }
}

These events are sent only when your app's own references on cart lines or wishlist items are added or removed, not for every cart change. attached and released are this change; current is every reference of yours that remains. A redelivery has the same event_id; apply an event only when its sequence is higher than the last one you applied for that cart or wishlist. On cart lines, artifact_version is present only when the property references an artifact. See App-owned line artifacts.

Order line artifact payloads#

json
{
  "event": "app.order_line_artifact_linked",
  "data": {
    "event_id": "5d9b2e7c-1a4f-4c8e-b6d3-0f2a1c3e4b5d",
    "order_id": "da9b07a6-803f-4e41-8a18-97ff831bd588",
    "order_number": "#1042",
    "order_item_id": "8f35b217-5ed7-4ad6-9ef4-4e2dced29ef6",
    "order_line_artifact_id": "0e6c3a9f-2b5d-4e1a-8c7f-4d2b1a0e3c5f",
    "artifact_id": "art_8f2c1d",
    "artifact_version": 2,
    "property_key": "engraving"
  }
}
json
{
  "event": "app.order_line_artifact_fulfillment_changed",
  "data": {
    "event_id": "8a1d4f7b-3c6e-4b9a-a2d5-1e0c3f4a5b6d",
    "order_id": "da9b07a6-803f-4e41-8a18-97ff831bd588",
    "order_item_id": "8f35b217-5ed7-4ad6-9ef4-4e2dced29ef6",
    "order_line_artifact_id": "0e6c3a9f-2b5d-4e1a-8c7f-4d2b1a0e3c5f",
    "artifact_id": "art_8f2c1d",
    "artifact_version": 2,
    "property_key": "engraving",
    "sequence": 3,
    "ordered_quantity": 2,
    "shipped_quantity": 2,
    "delivered_quantity": 1,
    "order_created_at": "2026-08-03T11:31:40+01:00",
    "fully_shipped_at": "2026-08-05T16:02:11+01:00",
    "fully_delivered_at": null,
    "cancelled_at": null
  }
}

app.order_line_artifact_linked is sent once a paid order line carries your artifact; order_line_artifact_id stays the same in every later event about that line. app.order_line_artifact_fulfillment_changed reports the line's shipping and delivery state: apply it only when sequence is higher than the last you applied. Shipped and delivered quantities can go down when a fulfillment is cancelled or reversed; fully_shipped_at, fully_delivered_at and cancelled_at are null until they happen.

Verify the signature#

Read the raw body before parsing it. X-Tringify-Signature has the form t=<timestamp>,v1=<hex digest>, and may carry more than one v1 value (see Rotate the signing key). Compute HMAC-SHA256 with your signing key over <X-Tringify-Timestamp>.<raw body>, compare it in constant time with each v1 value, accept the request if any one matches, and reject a timestamp more than five minutes from your clock, in either direction. Use the signing key as the text shown in the Developer Portal, all 64 characters; do not hex-decode it. The payment protocol reference has a worked example with a key, timestamp, body and the resulting header to test your verifier against.

javascript
import crypto from "node:crypto";

export function verifyTringifyWebhook(rawBody, headers, signingKey) {
  const timestamp = headers["x-tringify-timestamp"];
  // One v1 per signing key: accept the request if any of them matches.
  const received = (headers["x-tringify-signature"] ?? "").split(",")
    .filter((part) => /^v1=[a-f0-9]{64}$/.test(part))
    .map((part) => Buffer.from(part.slice(3), "hex"));
  if (!timestamp || !/^\d+$/.test(timestamp) || received.length === 0 || Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;
  const expected = crypto.createHmac("sha256", signingKey).update(`${timestamp}.${rawBody}`).digest();
  return received.some((signature) => crypto.timingSafeEqual(signature, expected));
}

Requests to provider endpoints carry the same signature, so this function verifies them too.

Rotate the signing key#

Requests to your app carry X-Tringify-Signature: t=<timestamp>,v1=<signature>, where each signature is the hex HMAC-SHA256 of <timestamp>.<body> under your signing key. Accept the request when any v1 value matches. Rotating the signing key returns the new key once and starts a 72-hour overlap: until previous_key_expires_at, every request carries two v1 values, the new key's first and the previous key's second, so requests keep verifying while you deploy the new key. Rotating again during an overlap replaces the previous key with the key that was current. Once the new key is deployed, finish the rotation (POST /api/v1/apps/:id/webhooks/finish-signing-key-rotation) to stop sending the previous key's signature immediately; otherwise it stops when the overlap ends. App reads report signing_key_rotation.in_progress and signing_key_rotation.previous_key_expires_at. Generate the key under the app's Webhooks (it is shown once), deploy it within the overlap, confirm with Send test webhook, then finish the rotation. See Payment protocol reference.

Accept a request when any v1 value matches, as the function above does, and never assume the header has exactly one: during an overlap it carries two.

Answer and retries#

Answer with any 2xx within 10 seconds, once you have stored the event; do the work afterwards. Anything else counts as a failed attempt: no answer within 10 seconds, a connection or TLS error, any other status, and a redirect (Tringify doesn't follow redirects, and sends only to public HTTPS addresses). Each event gets up to 5 attempts, with the same event_id, payload, endpoint and API version:

Attempt

When

1

At once

2

1 minute after the first failure

3

10 minutes later

4

1 hour later

5

6 hours later

After the fifth failed attempt the delivery is marked failed and isn't tried again on its own. Fix your endpoint, then retry it from the delivery log. An app event retried by hand is sent again as it was, except app.installed and app.token_rotated, which carry a new token (see the end of this page). App health counts failed and retrying deliveries, and Tringify emails your organization when an app has 5 or more failed deliveries in 24 hours.

App events are always delivered: failures never switch them off. Store data events are different: after 15 failed attempts in a row for one store, that store's data deliveries to your app are paused. New store data events for it are kept, up to 5,000, and wait with the status paused; events kept longer than 7 days are marked failed. They are sent, oldest first, once the store's subscription is registered again, which happens when the store installs your app or accepts an update.

Delivery logs#

The Developer Portal's Webhooks page has two logs: Lifecycle Delivery (app events) and Data Delivery (store data events). tringify app deliveries lists the same, with --data for store data events. Each log covers all of your app's stores, newest first, and each row names its event (its label, with the event type such as orders/create) and its store. There are no page numbers or totals: Load more (or --cursor in the CLI) continues where the page ended.

Filter

Matches

Store

A store ID, or text: its full domain or subdomain, such as my-store.example.com, or at least 3 characters of its name. Text that matches too many stores is refused; type more of the name, or use the domain or ID.

Event

One event type, such as app.installed or orders/create.

Status

The statuses the log offers. App events: failed, retrying (failed at least once, waiting for the next try), pending, sending, delivered. Store data events: failed, retrying, paused (the endpoint is disabled), pending, sending, delivered.

Delivery ID

Exactly one delivery (delivery_id in the request).

Event ID

Store data events only: the deliveries of one event (event_id).

Rows never include the payload. Open a delivery to see its attempts and your endpoint's answers; members with View App Delivery Payloads (apps:payloads) can also show the payload it carried. A store data event's payload is shown as your app's current scopes and field projection allow.

If some stores can't be reached in time, the log still shows the rest and says that some results are missing from this list (the CLI prints this on stderr). Load the list again a little later to see those deliveries.

Order, priority and merged updates#

Each store's deliveries to your app go out by importance: orders and fulfillment first, then stock and gift cards, then customers and market settings, then catalog and content. Within each, the oldest goes first. Don't depend on the order your endpoint sees: retries and concurrent sending can change it.

This applies to app events too. Key what you store for a store by installation_id, and ignore an app.uninstalled whose installation_id is not the installation you hold: after a reinstall, a late uninstall of the old installation must not erase the new token or settings. The same goes for app.store_redact: ignore it when you hold a newer installation for the store. Apply app.token_rotated only when its rotated_at is later than when the token you hold was issued (its installed_at or rotated_at), and confirm the new token with a Store API call before discarding the old one.

Latest-state update topics merge pending deliveries for the same resource: categories/update, collections/update, customers/update, inventory_levels/update, product_publications/update, products/update and variants/update. While a delivery is still waiting to be sent, a newer update for the same resource replaces its payload instead of queueing another, so you receive the latest state once; changed_fields covers both updates, and for inventory_levels/update, merged per item, location and reason, change is their sum. Each topic's description says what counts as the same resource. The merged delivery keeps its place in the queue, its delivery_id and its event_id; a delivery already being sent or retried is never changed. Creates, deletes and translation events, whose payloads carry only the fields that changed, are never merged, and neither is a products/update from a CSV import, which carries the product's variants. X-Tringify-Delivery-ID stays the same across attempts; use it to drop duplicates.

Adding or removing variants sends products/update with variants in changed_fields, alongside variants/create or variants/delete. A CSV product import sends no variants/create or variants/update: its products/create and products/update carry the product's complete variant list in product.variants (empty for a product without variants), and its tags/update and brands/update for assignment changes arrive once per import chunk for each tag or brand whose products changed, with the counts after the chunk. variants/delete is sent as usual. Metafields deleted together with their product or variant send no metafield delete events: products/delete and variants/delete cover them.

app.installed and app.token_rotated carry the full token only in the request to your endpoint; the Delivery Log shows its first characters. Store it encrypted and never log it. Retrying one of these deliveries by hand after it has failed for good replaces the token and delivers the new one: the previous token stops working.

Temporary processing holds keep an admitted event queued until processing can continue or its retention period expires. A hold does not itself consume a delivery attempt. Resuming processing preserves the event identity; your receiver must still handle duplicate deliveries and events arriving out of order.

Buying a gift card creates a liability, not sales revenue: gift card lines are excluded from gross, net and total sales, product sales, frequently bought together and repeat purchases. They are never taxed or discounted. Spending a gift card pays for goods, which count as sales once on the order; the payment method is gift_card. Store credit is reported as store_credit. Completed refunds to either balance reduce sales once, on the day they complete; pending or failed refunds do not. Gift cards can't be bought with a gift card or store credit. In mixed carts, gift cards apply first to the non-gift-card payable amount. Store credit then applies to that eligible amount remaining after gift cards, subject to the customer's balance and the store's per-order limits. Neither field appears for a gift-card-only cart. A direct checkout attempt is refused with GIFT_CARD_PURCHASE_TENDER_FORBIDDEN: “Gift cards can’t be bought with a gift card or store credit”. The checkout editor's SAMPLEGIFT and sample store credit follow the same rule and never spend real balances. Gift-card-only orders count as orders but are excluded from average order value. Average order value = total sales ÷ recognized orders that have sales lines. Free merchandise and fully refunded merchandise orders still have sales lines. A mixed order contributes only its sales amount. A sale notification shows that same amount; a gift-card-only order says Gift card sold and shows the gift card purchase amount. Checkout started, payment chosen and purchase event values and items exclude gift card lines.

Order and payment webhooks remain complete transaction records: their order totals include gift card purchases and their payment records include stored-value tender. They are not sales totals. Sales analytics and advertising events exclude gift card lines. Gift card movement webhooks describe liability changes, never new merchandise revenue. Timestamps are RFC 3339 in the store timezone.