I have been developing magento 2 extension for custom shipping method, I have developed it where I calculate the shipping amount with some certain scenarios, everything is working on frontend.
Now I need to call courier api when shipping is shipped from admin side, I am done with this part as well in observer but I don't think it sounds sensible to ship item through api in observer because I need to send customer an email for successful shipment.
Is there any process in magento where I can specify my shipping request code and then the shipping is done and tracking number is added? The default email will be sent to customer with tracking code.
PS: I want to send shipment tracking number to customer as well.