Create webhooks to send POST in background to endpoint which shop owner will give to us.
I propose to have only 1 webhook and send all events to it with different event field.
For example, when someone buys products it sends data:
{
event: "new-order",
data: {
product: "...",
...
}
}
When somebody subscribes to shop:
{
event: "new-subscription",
data: {
email: "some@mail.com",
...
}
}
Create webhooks to send POST in background to endpoint which shop owner will give to us.
I propose to have only 1 webhook and send all events to it with different
eventfield.For example, when someone buys products it sends data:
When somebody subscribes to shop: