Improved

paymentMethod/updated webhook now includes source and entity keys

The paymentMethod/updated webhook now returns two additional keys - source and entity - so you can identify where a payment method action originated and who performed it.

  • source indicates the platform or interface from which the action was taken. Possible values: Admin Portal, Customer Portal, API, Shopify.
  • entity provides additional context about the initiator, and its value depends on the source:
    • Admin portal - the email address of the user who performed the action
    • Customer portal - null if taken directly by the customer, or API if performed via the Storefront API
    • API - the name of the API token used to make the request
    • Shopify - null

Things to remember

These keys are included automatically in all paymentMethod/updated webhook payloads - no changes needed on your end to start receiving them.