In some cases, it may be necessary to send your merchant’s webhooks to different webhook URLs.
We offer to add one webhook URL to an app. However, there is a simple solution to the issue, if you’d like to serve more webhook endpoints
- Store the organisation ID returned after a merchant authorises your app
- Associate the unique webhook domain you wish to send their webhooks to with the organisation ID
When you then receive a webhook to the webhook URL set on the app:
- Check the links:{organisation:} field to identify the merchant that the webhook belongs to.
- Lookup the unique webhook domain associated with the merchant in your own system.
- Forward the webhook onto the relevant URL.