Webhooks
Webhook subscriptions belong to the app that makes the request: an app sees and changes only its own. Subscribing to a topic needs read access to its resource. The Webhooks guide covers payloads, headers, signatures and retries.
Endpoints#
- GET
/webhooks.jsonList this app's webhook subscriptions - GET
/webhooks/count.jsonCount webhook subscriptions - GET
/webhooks/{id}.jsonGet a webhook subscription - POST
/webhooks.jsonSubscribe to a topic - PUT
/webhooks/{id}.jsonChange a subscription's address - DELETE
/webhooks/{id}.jsonUnsubscribe
Paths are relative to https://store.weftgrid.com/api/admin/2026-10. The examples read the token from $STORELOOM_TOKEN and ids from variables like $ORDER_ID.
List this app's webhook subscriptions#
/webhooks.jsonAny token| Parameter | Description |
|---|---|
topic | Only subscriptions to this topic. |
curl "https://store.weftgrid.com/api/admin/2026-10/webhooks.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "webhooks": [{ "id": "…", "topic": "orders/create", "address": "https://example.com/hooks", "format": "json", "api_version": "2026-10" }] }Count webhook subscriptions#
/webhooks/count.jsonAny tokencurl "https://store.weftgrid.com/api/admin/2026-10/webhooks/count.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "count": 3 }Get a webhook subscription#
/webhooks/{id}.jsonAny tokencurl "https://store.weftgrid.com/api/admin/2026-10/webhooks/$WEBHOOK_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "webhook": { … } }Subscribe to a topic#
/webhooks.jsonAny tokenTopics: orders/create, orders/updated, orders/paid, orders/cancelled, orders/fulfilled, orders/partially_fulfilled, orders/edited, orders/paid_by_bank_transfer, orders/risk_analyzed, orders/tags_added, orders/tags_removed, cod/confirmed, cod/declined, cod/no_response, cod/delivery_refused, fulfillments/create, fulfillments/update, fulfillment_events/create, fulfillments/delivered, refunds/create, returns/request, returns/approve, returns/decline, returns/update, returns/close, returns/cancel, order_transactions/create, bank_receipts/matched, bank_receipts/unmatched, courier_settlements/imported, couriers/cod_overdue, checkouts/create, checkouts/abandoned, draft_orders/create, draft_orders/update, draft_orders/delete, products/create, products/update, products/delete, products/status_changed, products/tags_added, products/tags_removed, products/added_to_collection, products/removed_from_collection, reviews/created, reviews/published, search/no_results, collections/create, collections/update, collections/delete, inventory_levels/update, locations/create, locations/update, locations/delete, customers/create, customers/update, customers/delete, customers/tags_added, customers/tags_removed, customers/subscribed, customers/unsubscribed, customers/text_subscribed, customers/text_unsubscribed, messages/received, discounts/create, discounts/update, discounts/delete, gift_cards/create, gift_cards/update, markets/create, markets/update, markets/delete, themes/create, themes/update, themes/publish, themes/delete, metaobjects/create, metaobjects/update, metaobjects/delete, shop/update, app/uninstalled, app_subscriptions/update. The app needs the read scope for the topic (read_orders for orders/*). Deliveries are signed: X-Storeloom-Hmac-Sha256 is the base64 HMAC-SHA256 of the raw body using the app's API secret.
{ "webhook": { "topic": "orders/create", "address": "https://example.com/hooks/orders", "format": "json" } }curl -X POST "https://store.weftgrid.com/api/admin/2026-10/webhooks.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "webhook": { "topic": "orders/create", "address": "https://example.com/hooks/orders", "format": "json" } }'Example responseShowHide
{ "webhook": { "id": "…", "topic": "orders/create", "address": "https://example.com/hooks/orders", … } }Change a subscription's address#
/webhooks/{id}.jsonAny token{ "webhook": { "address": "https://example.com/hooks/v2" } }curl -X PUT "https://store.weftgrid.com/api/admin/2026-10/webhooks/$WEBHOOK_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "webhook": { "address": "https://example.com/hooks/v2" } }'Example responseShowHide
{ "webhook": { … } }Unsubscribe#
/webhooks/{id}.jsonAny tokencurl -X DELETE "https://store.weftgrid.com/api/admin/2026-10/webhooks/$WEBHOOK_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{}