简体   繁体   中英

Can the Magento soap api add a tracking order after the shipment was already created?

I have the code below and the orders have already had a shipment created, but I am trying to add the tracking number. Can the tracking number be added via this method if the shipment was already created and order marked complete?

$newShipmentId = $client->call($sess_id, 'sales_order_shipment.create', array($ShippedOrderId, array(), 'Shipment Created', true, true));
            $newTrackId = $client->call($sess_id, 'sales_order_shipment.addTrack', array($newShipmentId, $shippedby, $shipname, $fields[4]));}

It seems you cannot add tracking number after shipment is created via this method. View my answer at Magento SOAP API sales_order_shipment create and addTrack questions

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM