Stock Flow

Genie asked 3 years ago

Dear TiKi Tech team, 
It’s me, Genie again. As I read this link https://open.tiki.vn/docs/docs/current/api-references/product-api/#get-a-product, Stock updating flow is not clear and mentioned in that link. What I want to know is:

  1. If an order is on “processing” status, will the stock be deducted?

Or 
The stock will be deducted when an order is sent to a customer successfully?
2. If an order is returned, does a stock increase correspondingly?
Do we have any stock update corresponding to Order process. If Yes, please support me to giive a detailed stock flow chart. so our Ginee can base on that and find out the logic of two systems. thank you!