Skip to content

Question: Tracking Multiple Packages #138

Open

Description

@stephencweiss

👋 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?

Activity

  1. stephencweiss commented on Jun 5, 2020

    @stephencweiss
    Author

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

    Documentation reference to make it simpler :)

  2. stephencweiss commented on Jun 5, 2020

    @stephencweiss
    Author

    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?

  3. radzhome commented on Mar 31, 2021

    @radzhome
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions