Shopify / Shopify/shopify-api-php

Shopify\Webhooks\Topics is missing 38 topics from the WebhookSubscriptionTopic enum (through 2026-01/2026-07)

Open Beginner friendly
#470 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
473
Forks
193
Avg merge
5h 8m
Merged PRs (30d)
1

Description

Issue summary

Shopify\Webhooks\Topics currently exposes 188 constants. The Admin GraphQL
WebhookSubscriptionTopic enum (API version 2026-07) defines 32 topics that have
no corresponding constant in the class.

Missing topics:

  • APP_SCOPES_UPDATE
  • CUSTOMERS_PURCHASING_SUMMARY
  • CUSTOMERS_WHATS_APP_MARKETING_CONSENT_UPDATE
  • CUSTOMER_JOINED_SEGMENT
  • CUSTOMER_LEFT_SEGMENT
  • DELIVERY_PROMISE_SETTINGS_UPDATE
  • FULFILLMENT_HOLDS_ADDED
  • FULFILLMENT_HOLDS_RELEASED
  • FULFILLMENT_ORDERS_HOLD_RELEASED
  • FULFILLMENT_ORDERS_MANUALLY_REPORTED_PROGRESS_STOPPED
  • FULFILLMENT_ORDERS_PROGRESS_REPORTED
  • INVENTORY_SHIPMENTS_ADD_ITEMS
  • INVENTORY_SHIPMENTS_CREATE
  • INVENTORY_SHIPMENTS_DELETE
  • INVENTORY_SHIPMENTS_MARK_IN_TRANSIT
  • INVENTORY_SHIPMENTS_RECEIVE_ITEMS
  • INVENTORY_SHIPMENTS_REMOVE_ITEMS
  • INVENTORY_SHIPMENTS_UPDATE_ITEM_QUANTITIES
  • INVENTORY_SHIPMENTS_UPDATE_TRACKING
  • INVENTORY_TRANSFERS_ADD_ITEMS
  • INVENTORY_TRANSFERS_CANCEL
  • INVENTORY_TRANSFERS_COMPLETE
  • INVENTORY_TRANSFERS_READY_TO_SHIP
  • INVENTORY_TRANSFERS_REMOVE_ITEMS
  • INVENTORY_TRANSFERS_UPDATED
  • INVENTORY_TRANSFERS_UPDATE_ITEM_QUANTITIES
  • LOCALES_DESTROY
  • MARKETS_BACKUP_REGION_UPDATE
  • METAFIELD_DEFINITIONS_CREATE
  • METAFIELD_DEFINITIONS_DELETE
  • METAFIELD_DEFINITIONS_UPDATE
  • ORDERS_LINK_REQUESTED
Expected behavior

Topics lists these topics as constants, so apps can subscribe with
Topics::METAFIELD_DEFINITIONS_CREATE rather than a raw string.

Actual behavior

The constants don't exist, so the raw string has to be passed to
Registry::register() / Registry::addHandler(). This still works — the docs
note the class "may not be completely up to date at all times" — but it loses
the discoverability and typo-safety the class exists to provide.

Source
Notes

The enum additionally contains FINANCE_APP_STAFF_MEMBER_{DELETE,GRANT,REVOKE,UPDATE},
FINANCE_KYC_INFORMATION_UPDATE and RETURNS_PROCESS, which are not listed on the
webhooks topic page. Happy to include or omit those depending on maintainer preference.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting Shopify\Webhooks\Topics and compare its constants with the listed WebhookSubscriptionTopic enum entries. Add the missing topics, confirming whether the additional finance and returns entries should be included. Done means the constants are available for Registry::register() and Registry::addHandler() instead of requiring raw strings.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.