Question: Tracking Multiple Packages
stephencweiss opened this issue ยท 3 comments
I have a working prototype using this to track packages, but I'm wondering how I might adapt the track_package
example to accommodate multiple packages.
Specifically: It looks like in the example, we're identifying a single package (https://github.com/python-fedex-devs/python-fedex/blob/master/examples/track_shipment.py#L23)
In the API Documentation section 5.1.1 Batch Tracking (pg. 21 - https://www.fedex.com/us/developer/downloads/pdf/2019/FedEx_WebServices_TrackService_WSDLGuide_v2019.pdf) seems to suggest that we can query up to 30 packages at the same time.
Is this possible within the wrapper? How might we do that?
it is possible to have multiple occurrences of the
TrackRequest/SelectionDetails
tag
Does that above line imply that the way to modify the example would be to repeat the lines related to track by tracking number
up to 30 times with different numbers?
# Track by Tracking Number
track.SelectionDetails.PackageIdentifier.Type = 'TRACKING_NUMBER_OR_DOORTAG'
track.SelectionDetails.PackageIdentifier.Value = '781820562774'
That doesn't seem like it would be right since we'd simply be overwriting that attribute... which brings me back to: is it possible?
if the wsdl supports it, it should work.