shippo-php-client
shippo-php-client copied to clipboard
How Can I get the to_address from a Shippo_Transaction
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.
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.