Webhook Functions

We are starting to take advantage of your webhooks and I’ve noticed a peculiarity in the Sandbox environment. We are not defining a scope for our subscription so we are receiving all webhooks.

We are receiving events for both singular and plural functions. It appears that the PATCH functions are singular (e.g., TRAN|PATCH). And the POST functions are plural (e.g., TRANS|POST). It appears that this holds true for users, nodes, subnets, and transactions.

This is documented for transactions and subnets, but not for user and nodes (https://docs.synapsefi.com/v3.1.0/docs/webhooks-intro).

Questions:

  1. Is this a miss in the documentation or the code?
  2. Is there a reason for the mix of singular and plural?

Hi Anna,

Thanks for reaching out. I’m an Integration Engineer at Synapse and I’d love to answer your questions.

After looking at the documentation in your link, it looks like documentation is wrong and I will speak with the team to get it updated. In the meantime, you should use this link as a reference to receive your subscriptions.

https://docs.synapsefi.com/v3.1.1/reference#create-subscription

USERS|POST",“USER|PATCH”,“NODES|POST”,“NODE|PATCH”,“TRANS|POST”,“TRAN|PATCH”,
“SUBNETS|POST”,“SUBNET|PATCH”

The mix between singular and plural doesn’t have an effect for our end users, it’s an internal way to help us think about our product. For instance, a platform can have multiple users but we’re only going to change (or patch) information for a singular user.

Please feel to reach out if you have any additional questions or concerns.

Best,

Jason To

Integration Engineer at Synapse