Event Order Confirmed Webhook automation

Question:
I would like to connect my wix site, where the Wix Events & Tickets app is installed, to a server running on premise. what is the easiest way to do that securely?

Product:
Wix Studio

What are you trying to achieve:
I would like to connect my wix site, where the Wix Events & Tickets app is installed, to a server running on premise.
Specifically, I would just securely call some endpoint on my server after an order is confirmed. I tried to accomplish this with automation “Ticket ordered” as a trigger and “send via webhook” as action. unfortunately, the data within “view structure” is not the same I get when using the API endpoint `GET https://api.wix.com/events/v1/orders?eventId=some-id. Is this not possible with this kind of automation?

When I try to create a custom app with just a webhook in it, the data seems to be the same as in the endpoint. Is this the way to go?

thanks in advance for help,
luzi

hi,
thx for response. what are the advantages/disadvantages of each of the two variants. I had the impression that in the variant with automation, the fields are different than the ones I receive via the API endpoint `GET https://api.wix.com/events/v1/orders?eventId=some-id. I could for example not see custom values or guest details, and I would need those fields. With a custom app, it is unclear to me (1) whether this custom app runs on the browser or in the backend and (2) whether there exists some retry logic when a webhook cannot be acknowledged by my server.