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

How Can I get the to_address from a Shippo_Transaction #62

Open
phppirate opened this issue Feb 20, 2019 · 1 comment
Open

How Can I get the to_address from a Shippo_Transaction #62

phppirate opened this issue Feb 20, 2019 · 1 comment

Comments

@phppirate
Copy link

I am trying to replication the Shipments table on the Shippo Dashboard in my own application, but I cannot figure out how to get the recipient address from the transaction object.
Is there a way to do this.

@jippylong12
Copy link

I would recommend storing this data in the record so you don't have to query, but it seems the way around this would be to look into the 'tracking_status' object from the response of GET for a Shippo_Transaction and use the object_id to make a GET call to the /tracks/ endpoint. This will return the address_to and address from.

Again I would recommend storing either the address or the object_id for the tracking_status object so you can limit the queries.

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