I have successfully created and purchased a batch shipment using the shippo endpoints const batch = shippo.batch.create({...}) and shippo.batch.purchase(batch.object_id). Now I need to know if I can retrieve the tracking number for each shipment in the batch? I have checked the batch_shipments.results and don't see anything there. I have also tried retrieving each transaction separately using the batch_shipments.results.object_id and it tells me that the item is not found. Is this possible? I can log in to the dashboard and I see the tracking# listed there. So I would think this would be available via the API as well.
How do you get the tracking number for each shipment in a Shippo batch process?
162 views Asked by Cathy At
1
Once you purchase shipments using
Batch Purchase API, you need toRetrieve Batch Statusthe response returns
transactionObjectIdYou can receive the tracking number by either calling 'transactions' API via
shippo.transactions.list(..)orshippo.transactions.retrive(transactionObjectId)or
which will return your tracking number