shippo-php-client icon indicating copy to clipboard operation
shippo-php-client copied to clipboard

How Can I get the to_address from a Shippo_Transaction

Open phppirate opened this issue 6 years ago • 1 comments

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.

phppirate avatar Feb 20 '19 18:02 phppirate

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.

jippylong12 avatar May 16 '21 17:05 jippylong12