Checkout Hook : call API to update stock on external system

Sorry, I am a newbie. I have a system where I want to reduce stock when we purchase from shopware website. I have demo plugin with me. I want to know that is there any way  where we can call API on invoice generation or at new order place or stock level change?