Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Tracking Multiple Packages #138

Open
stephencweiss opened this issue Jun 5, 2020 · 3 comments
Open

Question: Tracking Multiple Packages #138

stephencweiss opened this issue Jun 5, 2020 · 3 comments

Comments

@stephencweiss
Copy link

👋 First off thank you for this package! It's a life saver!

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?

@stephencweiss
Copy link
Author

Screen Shot 2020-06-05 at 5 10 39 PM

Documentation reference to make it simpler :)

@stephencweiss
Copy link
Author

stephencweiss commented Jun 5, 2020

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?

@radzhome
Copy link
Member

if the wsdl supports it, it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants