#13890·saleor

Extend `WebhookTrigger` mutation and unlock missing dry runs for async events.

Author: Air-tCreated Sep 5, 2023Updated Sep 30, 2026
Labelswebhooks

Problem

Some async subscriptions like GiftCardSent have a dictionary subscription object which allows passing additional arguments to event calls. There are 3 cases where this info needs to be passed:

  1. WebhookTrigger mutation
  2. WebhookDryRun mutation
  3. Direct subscription event call via manager in mutations if needed.

In the 1 case, currently, the mutation does not support passing additional arguments, which is why manually triggering the event will be missing some important context.

In the 2 case, we do not need to pass proper context beside the root object. The dry run is just meant to show the example subscription payload.

In the 3 case, it works correctly.

Acceptance Criteria

It is TBD if the JSON field added to WebhookTrigger is a proper approach. If so add an extra field. Unlock disabled dry runs. For context see here.

2. API changes

Additional optional JSON field on WebhookTrigger mutation.