How do your app sync cancel/refund orders
With the app, returns are synced in a manner very similar to the Sales (just reverse). We specifically create RefundReceipt for the returns.
1. If the order is canceled before our app syncs the order to Quickbooks Online then our app does not sync that order and marks to not sync that order.
2. If the paid order is canceled and the refund/return in Shopify has the products listed, the RefundReceipt will be created with all those products very similar to the SalesReceipt for the sale. It will also show the method through which the refund was processed - Shopify, PayPal, afterpay, etc. If the refund is done as a lump sum amount in any order, then it will not be synced with the individual products but will rather be synced as Refund Discrepancy.
3. If the partially paid order is canceled and the refund/return in Shopify has the products listed, the Refund Receipt will be created with all those products.
4. If an unpaid order is cancelled then the invoice will be voided.