I have an event action that calls a REST API endpoint on the system SHOP_ORDER_RELEASED event. I was wondering how I handle the response from the API? Basically when it works, it works great and I don’t need to show anything to the user.
However, in the event of a failure I want the response to be sent to the user and the event to stop. I can move this to an entirely custom event if that helps. But I have no idea how I can handle the response in this event action.
Right now I see the event finished and the result indicates a failure, I would like to do something in this case.