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.
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?
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
}
}
}
}
}
}
}
}
}
}
}
}