We recently rolled out synchronous endpoints for those who would like to receive rates and labels back in one response.
Previously with async endpoints, you would send a rate request to the Shippo API, immediately get a response back letting you know that your request has been received, and then wait for a second response containing the actual rate.
With sync endpoints, you can now send a rate request, and wait for one response containing the rate. The wait time between the two options is the same, as we will have to call upon carrier APIs to get rates.
Depending on your use case, async could still make sense as the rate request won’t block the rest of your code, and you can proceed with other tasks in the meantime.
Currently in Shippo API v1, you need to explicitly opt into sync responses by setting the
async parameter in the POST body to
false.
Read more about it here.