Getting Shipping rates through GraphQL/REST API for Carrier Services

Getting Shipping rates through GraphQL/REST API for Carrier Services

travis-ENL
Tourist
4 0 1

Hello,

 

I'm implementing an off-Shopify sales channel, and want to get a list of Shipping Rates for a shopping cart. It's possible to do this for stores that have ShippingZones configured, but I'm a little stumped at how I would do this for a store that has Carrier Services enabled, either through GraphQL or the REST API. 

 

The `carrier_services` endpoint only seems to return Carrier Services your app has created. If the store has connected their FedEx account - how can I get rates from this service?

 

Any suggestions? 

 

Thank you.

Replies 2 (2)

heisenbaby
Tourist
7 0 1

I also would like to get the shipping prices from the carrier but haven't found anything to could do this, were you ever able to resolve this?

vadimpk
Shopify Partner
8 1 1

If you're using CartAPI, you can use this: https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/defer#fetching-carrie.... This option was added to CartAPI in 2024-07 version.