Browse the API docs

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#

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#

GET/webhooks.jsonAny token
Query parameters
ParameterDescription
topicOnly subscriptions to this topic.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/webhooks.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{ "webhooks": [{ "id": "…", "topic": "orders/create", "address": "https://example.com/hooks", "format": "json", "api_version": "2026-10" }] }

Count webhook subscriptions#

GET/webhooks/count.jsonAny token
Request
curl "https://store.weftgrid.com/api/admin/2026-10/webhooks/count.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{ "count": 3 }

Get a webhook subscription#

GET/webhooks/{id}.jsonAny token
Request
curl "https://store.weftgrid.com/api/admin/2026-10/webhooks/$WEBHOOK_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{ "webhook": { … } }

Subscribe to a topic#

POST/webhooks.jsonAny token

Topics: 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.

Request body
{ "webhook": { "topic": "orders/create", "address": "https://example.com/hooks/orders", "format": "json" } }
Request with curl
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 responseShow
{ "webhook": { "id": "…", "topic": "orders/create", "address": "https://example.com/hooks/orders", … } }

Change a subscription's address#

PUT/webhooks/{id}.jsonAny token
Request body
{ "webhook": { "address": "https://example.com/hooks/v2" } }
Request with curl
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 responseShow
{ "webhook": { … } }

Unsubscribe#

DELETE/webhooks/{id}.jsonAny token
Request
curl -X DELETE "https://store.weftgrid.com/api/admin/2026-10/webhooks/$WEBHOOK_ID.json" \
  -H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"
Example responseShow
{}