We're trying to send programatically the shipping update with the tracking number when our third party warehouse update our system.
They're using the SOAP
sales_order_shipment.create and then sales_order_shipment.addTrack
.
I tried a quick fix by modifying directly the API. I added sendemail to the function addtrack so it sends emails with the tracking number when it's called. I commented the email send in the createshipment but it sends the email no matters what. So we end up sending two.
I don't know how to stop the first email from sending, we just need the one with the tracking number, and also I would love to find a way to not modify directly the API
to do that.
Best Answer
I had exactly the same problem and it seems that there is solution without extending the API!
The shipment API has an undocumented function called sendInfo. Thanks to [cameronhimself][1] for pointing this.
So you need something like this (for SOAP V1)