Shipping Rates via Admin GraphQL

Hi,

how do I retrieve all shipping rates available for customers via Admin GraphQL? I want to map shopify shipping methods to my own methods in my external system.

I tried https://shopify.dev/docs/api/admin-graphql/2024-07/queries/deliveryProfiles

Thank you!

Hi Viktorkov,

The deliveryProfiles query should provide you with the delivery profiles and their associated shipping rates which you can then map to your own methods in your external system. Why is it not working for your use case?

1 Like

Hi, there

you could refer to this

query {
  deliveryProfiles(first:5) {
    nodes{
        id
    name
    profileLocationGroups {
      locationGroup {
        locations(first: 10) {
          nodes {
            id
            name
          }
        }
      }
      locationGroupZones(first: 100) {
        edges {
          node {
            zone {
              id
              name
            }
            methodDefinitions(first:5){
                nodes{
                    id
                    name
                    active
                    rateProvider{
                        ... on DeliveryRateDefinition{
                                id
                                price{
                                    amount
                                }
                        }
                    }
                }
               
            }
           
          }
        }
      }
    }
    }
    
  }
}
1 Like

Yes. I was looking at the wrong place. Thank you for your response.