We are using the Shippo api via the provided PHP library for our project.
When creating a shipment object, it is being returned with a "Queue" status and, although a rate url is given, the rates_list array is empty.
Trying to understand a few things:
By default, the Shippo API returns rates and labels asynchronously. Asynchronous responses mean that Shippo won't be returning rates or label you have requested immediately. After your Rates or Label API POST call, you will get a successful response from the Shippo API, but without the actual rates or label. This allows your implementation to do other tasks while Shippo is retrieving your data.
You need to continue to check the URL for when the status changes to Success at which point all of the information will be available.
If you want to not use async responses, in the current API version, you need to explicitly opt into sync responses by setting the async parameter in the POST body to false.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With