Ecwid also generates events which can be captured via webhooks. I have implemented this as my own separate app and just for my integration. But, this can also be implemented as generic pipedream app in Ecwid.
Here how it should work.
In Ecwid space
Create pipedream app in Ecwid
Request Ecwid to update webhook (Which is single webhook for all integrations) - something like ecwid.pipedream.com/events/ - All the ecwid events for pipedream will be received here.
In Pipedream space
Users when install ecwid plugin by providing store id and authorising through oauth. This perform two things:
Install pipedream app on ecwid store of the user
New webhook generated in the user source and webhook to store association stored with pipedream.
Process
Any event generated by Ecwid stores which has pipedream app installed, pipedream’s registered webhook will receive that event via post request.
Pipedream now should check the store id in that event, map it to user webhooks and forward the events to all the mapped user webhooks.
Yes, I have implemented it as my own custom app for now. But, I cannot translate this into a generic app which if done can help other ecwid users in the community. I am very much interested in contributing. But, I need to go through the existing code in more detail to understand the structures. Will try doing it as and when I get time.