Open Zambiorix opened 5 years ago
You are right, there currently is no subscribable event when an order is going to status "pending" by a manual action. It would be easy enough to add something like this in pretix/api/webhooks.py, but we'd also need to check if there is a consistent log event being fired in every code path in which an order can become pending.
So currently there is no way to guarantee an exact order sync with an external system?
Is this an objective for the near future?
Well, I'm all for adding a proper webhook for this status change, but no, it's not high on our roadmap right now.
"Guaranteed exact order sync" is certainly not an explicit objective or guarantee we ever made before or are planning to make, I can't even imagine how we'd want to ensure that, there's lots of things that can happen to orders. But yes, at least covering all status changes would be great.
Well, best effort is good enough for me. With eventual consistency for our backend via Pretix API and scanning through the orders (every x hours or so)
When an order has been placed and paid.
No webhook is called to update the status to pending So, our own backend is not in sync with Pretix
If "Cancel the order" is selected in "what should happen to the order", the correct webhook is called.