Skip to content

v1.0.8 — notifications: webhook subscriptions

Choose a tag to compare

@yasserstudio yasserstudio released this 12 Jun 17:54
· 38 commits to main since this release
3d1a1f8

What's Changed

The first event-driven capability — subscribe to Merchant Center change events delivered to a webhook, over a new notifications/v1 sub-API. When a registered event fires (currently product-status changes), the Merchant API sends an HTTP POST to your callBackUri.

  • gmc notifications create --callback-uri <https-url> (--all-managed-accounts | --target-account <id>) — the id is auto-generated; the callback must be HTTPS; exactly one target is required.
  • gmc notifications list / get / update / deleteupdate patches only the fields you pass (derived updateMask) and clears the other union side when you switch the target.

Adds notifications as the 8th sub-API (its own rate-limit bucket + OAuth-scope entry). Surface web-verified against the live accounts.notificationsubscriptions docs; ran the multi-agent review (security · code-quality · correctness — 0 critical/high; applied the union-switch mask fix).

Packages

@gmc-cli/cli 1.0.7 → 1.0.8 · @gmc-cli/api → 0.9.14 · @gmc-cli/auth → 0.7.2 (internal)

Install

npm i -g @gmc-cli/cli · brew install yasserstudio/tap/gmc · or the standalone binaries below.

Tests: api 123 · cli 249 (+19). Full changelog: v1.0.7...v1.0.8