/shoplazza:shoplazza-webhookfrom Shoplazza
Manages Shoplazza store webhook subscriptions via CLI: create, list, get, update, delete, and count event subscriptions (e.g. orders/create, products/update).
Ships in Shoplazza. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
CRITICAL — before anything else, use Read on ../shoplazza-common/SKILL.md.
It owns every cross-cutting mechanic: access tiers, the output envelope (.data), --dry-run,
--jq, schema, api rest, auth / profiles, and the safety protocol. This file covers only the
webhook domain and never repeats them.
The webhook module manages event subscriptions: a webhook binds a store event topic (e.g.
orders/create) to an address (an HTTPS endpoint the platform calls when the event fires).
It is spec-leaf only — no +shortcuts. Full CRUD + count.
Intent → command. Authoritative params/body live in shoplazza schema webhook.<cmd>.
| User intent | Command |
|---|---|
| Subscribe to an event (create) | webhook create --data '{"webhook":{"topic":"<event>","address":"<https-url>"}}' |
| List all webhooks | webhook list |
| Count webhooks (optionally filtered) | webhook count --params '{"address":"<url>","topic":"<event>"}' (params optional) |
| Get one webhook | webhook get --params '{"id":"<id>"}' |
| Update a webhook's address / topic | webhook update --params '{"id":"<id>"}' --data '{"webhook":{"address":"<url>","topic":"<event>"}}' |
Delete a webhook (destructive → --dry-run first) | webhook delete --params '{"id":"<id>"}' --dry-run |
Event topics look like orders/create, orders/fulfilled, products/update, etc. The full
topic list isn't introspectable from the binary — confirm a topic with shoplazza schema webhook.create / the Open Platform docs; don't invent one.
create needs two required fields — ask with AskUserQuestion if either is missing, never
fabricate: the event topic and the address (HTTPS endpoint). For update/get/
delete, the webhook id is required.create/update are safe to run directly once required fields are present (subscriptions
don't move money); use --dry-run first only if the user asks.delete is destructive — it silently stops event delivery and cannot be undone. It follows
the shoplazza-common safety protocol: --dry-run first, restate which subscription
(topic + address, not just the id), then stop and wait for the user's go-ahead.Reads like an event/order/product task, actually belongs here:
| Sounds like orders / products | Actually belongs to | Command |
|---|---|---|
| "订单发货后自动通知我的系统" / notify my system when an order ships | HERE (webhook) — it's a subscription | webhook create --data '{"webhook":{"topic":"orders/fulfilled",…}}' |
| "商品更新时通知我" / get notified when a product is updated | HERE (webhook) | webhook create --data '{"webhook":{"topic":"products/update",…}}' |
Subscribing to an event is a webhook, not an orders/products command. (Serves the
event-webhook routing collision.)
Webhook needs no store scope: --domain webhook expands to zero scopes. Don't run
auth login --domain webhook — authorization replaces the grant server-side, so it can revoke
the scopes other domains rely on. A 401/403 here means the account login is missing or
expired — check auth status.
Domain-specific only (generic rules are in shoplazza-common).
| Symptom | Cause | Fix |
|---|---|---|
Guessed a topic and it was rejected | The topic enum isn't in the binary's help | Confirm via schema webhook.create / Open Platform docs; ask the user if unsure — don't invent |
create fails | topic and address are both required in the webhook body | --data '{"webhook":{"topic":"…","address":"…"}}' |
address rejected | Endpoints must be reachable HTTPS URLs | Pass a full https:// URL |
# 1. Subscribe: push order-created events to an endpoint
webhook create --data '{"webhook":{"topic":"orders/create","address":"https://api.myapp.com/hooks/orders"}}'
# 2. List current subscriptions
webhook list
# 3. Update a webhook's address
webhook update --params '{"id":"246"}' --data '{"webhook":{"address":"https://new.example.com/hook"}}'
# 4. Delete a subscription: look up what it is, preview, then STOP for the user's go-ahead
webhook get --params '{"id":"135"}' --jq '.data.webhook | {topic, address}'
webhook delete --params '{"id":"135"}' --dry-run
# 5. Count webhooks pointing at an address
webhook count --params '{"address":"https://api.myapp.com/hooks"}'
shoplazza webhook <cmd> --helpshoplazza schema webhook.<cmd>--dry-run / safety): ../shoplazza-common/SKILL.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub shoplazza/shoplazza-cli --plugin shoplazza10 skills in this plugin
/shoplazza-billingUse when an app developer needs to bill a Shoplazza merchant for app usage through the CLI — one-time application charges, recurring (subscription) charges, metered usage charges, and app-charge transaction records. Triggers include 应用收费 / 订阅费 / 一次性收费 / 用量费 / 计费 / app billing / recurring / one-time / usage charge. NOT buyer order payments or refunds (那是 shoplazza-orders 的 transactions / +refund)./shoplazza-commonShared foundation for the shoplazza CLI: installing the CLI (安装 CLI / command not found), authentication (auth login — account-level and store-level; 登录 / 授权), auth status/scopes/logout, store switching (auth store use; 切换店铺 / 换店), multi-store profiles (add/list/use/rename/remove/info), the three access tiers (+shortcut / spec leaf / api rest), the output envelope ({ok,data} / .data), --dry-run / --jq / --fields / --format, schema introspection, api rest fallback, update notice, the safety protocol, and how to trust a filtered list read (pagination / has_more / cursor, silently-dropped filters, the exact-match precision ladder). Read this FIRST on first use of the shoplazza CLI, when the CLI is missing, when logging in / authorizing / switching store or profile, on permission errors, when a search or filter looks like it returned too much, and before using any domain skill. Platform developer-docs questions (an app's OAuth, webhook HMAC, Liquid, changelog) → shoplazza-docs./shoplazza-customersUse when the user wants to manage customers (buyers) on a shoplazza store through the CLI — create a customer profile, find a customer by email or phone, get customer details or the total customer count, update names / tags / email or SMS marketing subscription, or manage a customer's shipping addresses including the default checkout address. Triggers include 客户 / 买家 / 顾客 / 客户资料 / 新建客户 / 按邮箱查客户 / 按手机号查客户 / 给客户打标签 / 退订营销 / 收货地址 / 默认地址 / customer profile / new customer / find customer by email or phone / customer count / tag a customer / unsubscribe marketing / shipping address / default address. Finding the customer RECORD by email (按邮箱找客户资料) belongs HERE (customers +search); that customer's ORDER HISTORY (该客户下过的订单 / orders placed by this email) belongs to shoplazza-orders./shoplazza-discountsUse when the user wants to manage discount activities on a shoplazza store through the CLI — promotional campaigns, coupon codes, flash sales, buy-X-get-Y offers, rebates / tiered satisfy-N-get-M discounts, free-shipping codes, M-for-N (Nth-item-off) discounts, discount stacking / combination rules, or coupon (voucher) campaigns. Triggers include 满减 / 折扣码 / 优惠码 / 闪购 / 满X减Y. NOT gift cards (redeemable store credit → shoplazza-products `gift-cards`). NOT showing a sale inside a theme card / 首页促销卡片 (→ shoplazza-themes)./shoplazza-docsSearch and read the Shoplazza developer docs on shoplazza.dev (开发者文档 / 查文档) with `shoplazza docs search --query --locale` / `docs get --url`; no login needed. Use when the user asks how the Shoplazza platform works or what it allows: app development (应用开发), OAuth and access scopes for their own app (应用授权 / 权限范围), verifying webhook HMAC signatures (webhook 验签), app proxy (应用代理), checkout / theme / function extensions (结账扩展 / 主题扩展), theme development and the Liquid reference (主题开发 / Liquid 语法 / 对象 / 过滤器); before writing code that calls the Shoplazza API or Liquid; on an unfamiliar API error or field (报错 / 字段含义); when upgrading API versions (版本升级 / changelog). Prefer it over WebFetch or web search for shoplazza.dev. NOT store data (→ domain skills); NOT a CLI command's params / body / response (→ `shoplazza schema` / `--help`); NOT logging the CLI in (→ shoplazza-common); NOT webhook subscriptions (→ shoplazza-webhook); NOT editing the store's theme or AI cards (→ shoplazza-themes)./shoplazza-ordersUse when the user wants to manage a shoplazza store's orders through the CLI — searching / counting / viewing orders (查订单 / 找订单 / 订单列表 / 订单详情 / 新订单 / order search), shipping and fulfillment (发货 / 标记发货 / 物流 / 运单号 / 改运单号 / ship an order / update tracking), refunding a buyer (退款 / 给顾客退钱 / 退钱给买家 / refund an order — buyer refunds live HERE, not in discounts and not in billing), cancelling / creating / updating / marking orders paid (取消订单 / 代客下单 / 标记支付), an order's payment transactions (订单支付流水 / 支付交易记录 / buyer payment transactions — app-charge transactions → shoplazza-billing), fraud risk records (欺诈 / 风控 / 高风险订单 / order risk), after-sales records (售后 / post-sales), shipping zones and rates (运费区域 / 邮费 / 运费方案 / shipping zones — real-time rate carriers → shoplazza-shop carrier-services), and tracking-carrier lookup (快递承运商 / 运单号识别承运商). A customer's orders by email (按邮箱查某客户的订单) are searched HERE; the customer record itself → shoplazza-customers. NOT product stock / 库存 / 补货 (→ shoplazza-products).Other plugins' skills for the same job