Getting started with delivery profiles

You can use delivery profiles to manage advanced shipping information in Shopify. Shops that use delivery profiles gain the ability to create shipping rates per product variant and location.

Delivery profiles

Delivery profiles store the information about what delivery methods and rates apply to specific products:

Profiles

Products that require shipping are associated to location groups, delivery zones, and delivery methods within a delivery profile:

Delivery profile Represents a set of shipping settings for a set of product variants. For example, you might have a delivery profile for heavy variants and another for fragile variants.
Location group Represents a set of locations that ship the product variants to the same delivery zones. For example, you might have a location group for the Americas that ships to Canada and Germany, and another location group for Europe that also ships to Canada and Germany.
Delivery zone Represents a group of countries where the variants in the delivery profile are shipped to. For example, you might ship products to Canada.
Delivery methods Delivery methods specify the static rates or carrier-calculated rates (participant) for the delivery zones. For static rates, you can set conditional rates that take effect only if certain conditions are met. For example, you can specify a condition that applies free shipping when a cart's total is greater than or equal to $100. Shipping rates are surfaced at checkout to the customer.

Query walkthrough

The following query walkthrough demonstrates the different parts of a delivery profile.

Delivery profiles

The following query returns a delivery profile with its ID, name and default setting. Product variants stay in the default profile until they are added to another delivery profile. The example response indicates that the default profile is returned.

POST /admin/api/unstable/graphql.json

query {
  deliveryProfiles (first: 1) {
    edges {
      node {
        id
        name
        default
      }
    }
  }
}

View response

JSON response

{
  "data": {
    "deliveryProfiles": {
      "edges": [
        {
          "node": {
            "id": "gid://shopify/DeliveryProfile/4227128",
            "name": "Default",
            "default": true
          }
        }
      ]
    }
  },
  ...
}

Profile items

Product variants are associated to delivery profiles using the profileItems object. Each profile item can include an array of objects where each object includes a product and a list of associated variants.

POST /admin/api/unstable/graphql.json

query {
  deliveryProfiles (first: 1) {
    edges {
      node {
        profileItems (first: 2) {
          edges {
            node {
              product {
                id
                handle
              }
              variants (first: 2) {
                edges {
                  node {
                    id
                    title
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}       

View response

JSON response

{
  "data": {
    "deliveryProfiles": {
      "edges": [
        {
          "node": {
            "profileItems": {
              "edges": [
                {
                  "node": {
                    "product": {
                      "id": "gid://shopify/Product/8092548998",
                      "handle": "ajtestproduct"
                    },
                    "variants": {
                      "edges": [
                        {
                          "node": {
                            "id": "gid://shopify/ProductVariant/26669237382",
                            "title": "1"
                          }
                        },
                        {
                          "node": {
                            "id": "gid://shopify/ProductVariant/27700365318",
                            "title": "2"
                          }
                        }
                      ]
                    }
                  }
                },
                {
                  "node": {
                    "product": {
                      "id": "gid://shopify/Product/8104668422",
                      "handle": "burton-custom-freestlye-151"
                    },
                    "variants": {
                      "edges": [
                        {
                          "node": {
                            "id": "gid://shopify/ProductVariant/26756068422",
                            "title": "First"
                          }
                        },
                        {
                          "node": {
                            "id": "gid://shopify/ProductVariant/26756068550",
                            "title": "Second"
                          }
                        }
                      ]
                    }
                  }
                }
              ]
            }
          }
        }
      ]
    }
  },
  ...
}

Profile location groups

Profile location groups represent groupings of origin locations that have common shipping properties within a delivery profile.

POST /admin/api/unstable/graphql.json

query {
  deliveryProfiles (first: 1) {
    edges {
      node {
        profileLocationGroups {
          locationGroup {
            id
            locations (first: 3) {
              edges {
                node {
                  id
                  name
                }
              }
            }
          }
        }
      }
    }
  }
}

View response

JSON response

{
  "data": {
    "deliveryProfiles": {
      "edges": [
        {
          "node": {
            "profileLocationGroups": [
              {
                "locationGroup": {
                  "id": "gid://shopify/DeliveryLocationGroup/3014712",
                  "locations": {
                    "edges": [
                      {
                        "node": {
                          "id": "gid://shopify/Location/45141830",
                          "name": "99 chemin mahon"
                        }
                      },
                      {
                        "node": {
                          "id": "gid://shopify/Location/9562054",
                          "name": "mahon"
                        }
                      }
                    ]
                  }
                }
              },
              {
                "locationGroup": {
                  "id": "gid://shopify/DeliveryLocationGroup/6946872",
                  "locations": {
                    "edges": [
                      {
                        "node": {
                          "id": "gid://shopify/Location/17225842744",
                          "name": "downtown location"
                        }
                      }
                    ]
                  }
                }
              }
            ]
          }
        }
      ]
    }
  },
  ...
}

Location group zones

The locationGroupZones object represents one or more delivery zones where products can ship to. Each profile location group can have multiple location group zones.

POST /admin/api/unstable/graphql.json

query {
  deliveryProfiles (first: 1) {
    edges {
      node {
        profileLocationGroups {
          locationGroupZones (first: 2) {
            edges {
              node {
                zone {
                  id
                  name
                  countries {
                    name
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

View response

JSON response

{
  "data": {
    "deliveryProfiles": {
      "edges": [
        {
          "node": {
            "profileLocationGroups": [
              {
                "locationGroupZones": {
                  "edges": [
                    {
                      "node": {
                        "zone": {
                          "id": "gid://shopify/DeliveryZone/9961528",
                          "name": "Domestic",
                          "countries": [
                            {
                              "name": "Canada"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "node": {
                        "zone": {
                          "id": "gid://shopify/DeliveryZone/10027064",
                          "name": "Europe",
                          "countries": [
                            {
                              "name": "United Kingdom"
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              },
              {
                "locationGroupZones": {
                  "edges": [
                    {
                      "node": {
                        "zone": {
                          "id": "gid://shopify/DeliveryZone/15368248",
                          "name": "germany",
                          "countries": [
                            {
                              "name": "Germany"
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  },
  ...
}

Method definitions

Method definitions represent delivery methods within the context of a delivery profile, location group, and zone. Each method definition includes a name property, representing the name of the delivery method that is displayed to the customer at checkout.

POST /admin/api/unstable/graphql.json

query {
  deliveryProfiles (first: 1) {
    edges {
      node {
        profileLocationGroups {
          locationGroupZones (first: 3) {
            edges {
              node {
                methodDefinitions (first:3) {
                  edges {
                    node {
                      id
                      name
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

View response

JSON response

{
  "data": {
    "deliveryProfiles": {
      "edges": [
        {
          "node": {
            "profileLocationGroups": [
              {
                "locationGroupZones": {
                  "edges": [
                    {
                      "node": {
                        "methodDefinitions": {
                          "edges": [
                            {
                              "node": {
                                "id": "gid://shopify/DeliveryMethodDefinition/24739896",
                                "name": "Standard Shipping"
                              }
                            },
                            {
                              "node": {
                                "id": "gid://shopify/DeliveryMethodDefinition/24772664",
                                "name": "Heavy Goods Shipping"
                              }
                            },
                            {
                              "node": {
                                "id": "gid://shopify/DeliveryMethodDefinition/24805432",
                                "name": "carrier service app"
                              }
                            }
                          ]
                        }
                      }
                    },
                    {
                      "node": {
                        "methodDefinitions": {
                          "edges": [
                            {
                              "node": {
                                "id": "gid://shopify/DeliveryMethodDefinition/24641592",
                                "name": "price based"
                              }
                            }
                          ]
                        }
                      }
                    },
                    {
                      "node": {
                        "methodDefinitions": {
                          "edges": [
                            {
                              "node": {
                                "id": "gid://shopify/DeliveryMethodDefinition/24674360",
                                "name": "International Shipping"
                              }
                            },
                            {
                              "node": {
                                "id": "gid://shopify/DeliveryMethodDefinition/24707128",
                                "name": "carrier service app"
                              }
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              },
              {
                "locationGroupZones": {
                  "edges": [
                    {
                      "node": {
                        "methodDefinitions": {
                          "edges": []
                        }
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  },
  ...
}

Method conditions

Method conditions can be used to make rates available at checkout when certain conditions apply. For example, you can set a price-based condition that displays the rate only when a cart's total passes a price threshold. Method conditions can be applied only to statically defined rates.

POST /admin/api/unstable/graphql.json

query {
  deliveryProfiles (first: 1) {
    edges {
      node {
        profileLocationGroups {
          locationGroupZones (first: 2) {
            edges {
              node {
                methodDefinitions (first:2) {
                  edges {
                    node {
                      methodConditions {
                        id
                        operator
                        conditionCriteria {
                          ... on Weight {
                            value
                          }
                          ... on MoneyV2 {
                            amount
                            currencyCode
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

View response

JSON response

{
  "data": {
    "deliveryProfiles": {
      "edges": [
        {
          "node": {
            "profileLocationGroups": [
              {
                "locationGroupZones": {
                  "edges": [
                    {
                      "node": {
                        "methodDefinitions": {
                          "edges": [
                            {
                              "node": {
                                "methodConditions": [
                                  {
                                    "id": "gid://shopify/DeliveryCondition/19595320",
                                    "operator": "GREATER_THAN_OR_EQUAL_TO",
                                    "conditionCriteria": {
                                      "value": 0
                                    }
                                  },
                                  {
                                    "id": "gid://shopify/DeliveryCondition/19628088",
                                    "operator": "LESS_THAN_OR_EQUAL_TO",
                                    "conditionCriteria": {
                                      "value": 5
                                    }
                                  }
                                ]
                              }
                            },
                            {
                              "node": {
                                "methodConditions": [
                                  {
                                    "id": "gid://shopify/DeliveryCondition/19660856",
                                    "operator": "GREATER_THAN_OR_EQUAL_TO",
                                    "conditionCriteria": {
                                      "value": 5
                                    }
                                  },
                                  {
                                    "id": "gid://shopify/DeliveryCondition/19693624",
                                    "operator": "LESS_THAN_OR_EQUAL_TO",
                                    "conditionCriteria": {
                                      "value": 20
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    },
                    {
                      "node": {
                        "methodDefinitions": {
                          "edges": [
                            {
                              "node": {
                                "methodConditions": [
                                  {
                                    "id": "gid://shopify/DeliveryCondition/19464248",
                                    "operator": "GREATER_THAN_OR_EQUAL_TO",
                                    "conditionCriteria": {
                                      "amount": "0.0",
                                      "currencyCode": "USD"
                                    }
                                  },
                                  {
                                    "id": "gid://shopify/DeliveryCondition/19497016",
                                    "operator": "LESS_THAN_OR_EQUAL_TO",
                                    "conditionCriteria": {
                                      "amount": "100.0",
                                      "currencyCode": "USD"
                                    }
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              },
              {
                "locationGroupZones": {
                  "edges": [
                    {
                      "node": {
                        "methodDefinitions": {
                          "edges": []
                        }
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  },
  ...
}

Rate provider

The rates that are displayed at checkout are found in the rateProvider object. Shopify supports two types of rates:

  • DeliveryRateDefinition: Static rates, stored within Shopify.
  • DeliveryParticipant: Dynamic rates, retrieved with the CarrierService API.

The following example returns both static and dynamic rates:

POST /admin/api/unstable/graphql.json

query {
  deliveryProfiles(first: 1) {
    edges {
      node {
        profileLocationGroups {
          locationGroupZones(first: 3) {
            edges {
              node {
                methodDefinitions(first: 3) {
                  edges {
                    node {
                      rateProvider {
                        ... on DeliveryRateDefinition {
                          id
                          price {
                            amount
                          }
                        }
                        ... on DeliveryParticipant {
                          id
                          fixedFee {
                            amount
                            currencyCode
                          }
                          percentageOfRateFee
                          participantServices {
                            active
                            name
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

View response

JSON response

{
  "data": {
    "deliveryProfiles": {
      "edges": [
        {
          "node": {
            "profileLocationGroups": [
              {
                "locationGroupZones": {
                  "edges": [
                    {
                      "node": {
                        "methodDefinitions": {
                          "edges": [
                            {
                              "node": {
                                "rateProvider": {
                                  "id": "gid://shopify/DeliveryRateDefinition/13172792",
                                  "price": {
                                    "amount": "8.0"
                                  }
                                }
                              }
                            },
                            {
                              "node": {
                                "rateProvider": {
                                  "id": "gid://shopify/DeliveryRateDefinition/13205560",
                                  "price": {
                                    "amount": "18.0"
                                  }
                                }
                              }
                            },
                            {
                              "node": {
                                "rateProvider": {
                                  "id": "gid://shopify/DeliveryParticipant/11567160",
                                  "fixedFee": {
                                    "amount": "0.0",
                                    "currencyCode": "USD"
                                  },
                                  "percentageOfRateFee": 0,
                                  "participantServices": []
                                }
                              }
                            }
                          ]
                        }
                      }
                    },
                    {
                      "node": {
                        "methodDefinitions": {
                          "edges": [
                            {
                              "node": {
                                "rateProvider": {
                                  "id": "gid://shopify/DeliveryRateDefinition/13107256",
                                  "price": {
                                    "amount": "5.0"
                                  }
                                }
                              }
                            }
                          ]
                        }
                      }
                    },
                    {
                      "node": {
                        "methodDefinitions": {
                          "edges": [
                            {
                              "node": {
                                "rateProvider": {
                                  "id": "gid://shopify/DeliveryRateDefinition/13140024",
                                  "price": {
                                    "amount": "18.0"
                                  }
                                }
                              }
                            },
                            {
                              "node": {
                                "rateProvider": {
                                  "id": "gid://shopify/DeliveryParticipant/11534392",
                                  "fixedFee": {
                                    "amount": "0.0",
                                    "currencyCode": "USD"
                                  },
                                  "percentageOfRateFee": 0,
                                  "participantServices": []
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              },
              {
                "locationGroupZones": {
                  "edges": [
                    {
                      "node": {
                        "methodDefinitions": {
                          "edges": []
                        }
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  },
  ...
}

Create a delivery profile

To create a delivery profile, use the deliveryProfileCreate mutation, which accepts a profile argument as input.

The following mutation creates a delivery profile for products that ship from a single location to a new delivery zone for Canada.

The following list explains the important fields of the input object:

  • locationGroupsToCreate - Defines the locations that will be grouped together for the included zones.
  • zonesToCreate - Defines the countries for the zone and the delivery method.
  • methodDefinitionsToCreate - Specifies a static rate using rateDefinition or a carrier-provided rate using participant.

POST /admin/api/unstable/graphql.json

mutation {
  deliveryProfileCreate (
    profile: {
      name: "My Fulfillment Service's Profile",
      variantsToAssociate: [
        "gid://shopify/ProductVariant/13672596209720",
      ],
      locationGroupsToCreate: {
        locations: [
          # your location id
          "gid://shopify/Location/17225842744"
        ],
        zonesToCreate: [
          {
            name: "Canada",
            countries: [
              {
                code: CA
              }
            ],
            methodDefinitionsToCreate: [
              {
                name: "my_carrier_service_name"
                active: true,
                participant: {
                  # your carrier service id
                  carrierServiceId: "gid://shopify/DeliveryCarrierService/11499270"
                }
              }
            ]
          }
        ]
        }
    }
  )
  {
    profile {
      id
      name
      profileLocationGroups {
        locationGroup {
          id
          locations (first: 1, includeLegacy:true) {
            edges {
              node {
                id
                name
              }
            }
          }
        }
        locationGroupZones (first: 1) {
          edges {
            node {
              zone {
                name
                countries {
                  name
                }
              }
              methodDefinitions (first: 1) {
                edges {
                  node {
                    id
                    name
                    active
                    rateProvider {
                      ... on DeliveryParticipant {
                        id
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
    userErrors {
      field
      message
    }
  }
}

View response

JSON response:

{
  "data": {
    "deliveryProfileCreate": {
      "profile": {
        "id": "gid://shopify/DeliveryProfile/7372856",
        "name": "My Fulfillment Service's Profile",
        "profileLocationGroups": [
          {
            "locationGroup": {
              "id": "gid://shopify/DeliveryLocationGroup/6094904",
              "locations": {
                "edges": [
                  {
                    "node": {
                      "id": "gid://shopify/Location/45141830",
                      "name": "150 Elgin"
                    }
                  }
                ]
              }
            },
            "locationGroupZones": {
              "edges": [
                {
                  "node": {
                    "zone": {
                      "name": "Canada",
                      "countries": [
                        {
                          "name": "Canada"
                        }
                      ]
                    },
                    "methodDefinitions": {
                      "edges": [
                        {
                          "node": {
                            "id": "gid://shopify/DeliveryMethodDefinition/35684408",
                            "name": "my_carrier_service_name",
                            "active": true,
                            "rateProvider": {
                              "id": "gid://shopify/DeliveryParticipant/13664312"
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              ]
            }
          }
        ]
      },
      "userErrors": []
    }
  },
  ...
}

Create a conditional rate

The following deliveryProfileCreate mutation specifies a static rate for the delivery profile that is conditional on price. The rate is shown at checkout for orders that are greater than or equal to $100. The profile input object for the mutation includes the methodDefinitionsToCreate array that indicates the rateDefinition and conditional criteria:

POST /admin/api/unstable/graphql.json

mutation {
  deliveryProfileCreate (
    profile: {
      name: "A condition profile",
      variantsToAssociate: [
        "gid://shopify/ProductVariant/13672596242488"
      ],
      locationGroupsToCreate: {
        locations: [
          "gid://shopify/Location/9562054"
        ],
        zonesToCreate: [
          {
            name: "United States",
            countries: [
              {
                code: US
              }
            ],
            methodDefinitionsToCreate: [
              {
                name: "conditional_rate"
                active: true
                rateDefinition: {
                  price: {
                    amount: 20.5
                    currencyCode:USD
                  }
                }
                priceConditionsToCreate: {
                  criteria: {
                    amount:100.00
                    currencyCode:USD
                  },
                  operator: GREATER_THAN_OR_EQUAL_TO
                }
              }
            ]
          }
        ]
      }
    }
  )
  {
    profile {
      id
      name
      profileLocationGroups {
        locationGroup {
          id
          locations (first: 1, includeLegacy:true) {
            edges {
              node {
                id
                name
              }
            }
          }
        }
        locationGroupZones (first: 1) {
          edges {
            node {
              zone {
                name
                countries {
                  name
                }
              }
              methodDefinitions (first: 1) {
                edges {
                  node {
                    id
                    name
                    active
                    rateProvider {
                      ... on DeliveryParticipant {
                        id
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
    userErrors {
      field
      message
    }
  }
}

View response

JSON response:

{
  "data": {
    "deliveryProfileCreate": {
      "profile": {
        "id": "gid://shopify/DeliveryProfile/7929912",
        "name": "A conditional profile",
        "profileLocationGroups": [
          {
            "locationGroup": {
              "id": "gid://shopify/DeliveryLocationGroup/6651960",
              "locations": {
                "edges": [
                  {
                    "node": {
                      "id": "gid://shopify/Location/9562054",
                      "name": "Elgin"
                    }
                  }
                ]
              }
            },
            "locationGroupZones": {
              "edges": [
                {
                  "node": {
                    "zone": {
                      "name": "United States",
                      "countries": [
                        {
                          "name": "United States"
                        }
                      ]
                    },
                    "methodDefinitions": {
                      "edges": [
                        {
                          "node": {
                            "id": "gid://shopify/DeliveryMethodDefinition/36077624",
                            "name": "conditional_rate",
                            "active": true,
                            "rateProvider": {}
                          }
                        }
                      ]
                    }
                  }
                }
              ]
            }
          }
        ]
      },
      "userErrors": []
    }
  },
  ...
}

Delivery profiles use cases

It can be useful to retrieve delivery profiles under a variety of scenarios.

Find which delivery profile a product belongs to

The following example uses the variant ID to return the delivery profile ID.

POST /admin/api/unstable/graphql.json

{
  productVariant(id: "gid://shopify/ProductVariant/21788692185193") {
    id
    deliveryProfile {
      id
      name
    }
  }
}

View response

JSON response

{
  "data": {
    "productVariant": {
      "id": "gid://shopify/ProductVariant/21788692185193",
      "deliveryProfile": {
        "id": "gid://shopify/DeliveryProfile/7897144",
        "name": "My Other Fulfillment Service's Profile"
      }
    }
  },
  ...
}

Determine what rates apply to a product

The following example uses the location group and delivery zones to see what rates are associated with a variant's delivery profile:

POST /admin/api/unstable/graphql.json

query {
  productVariant(id: "gid://shopify/ProductVariant/21788698476649") {
    deliveryProfile {
      profileLocationGroups {
        locationGroupZones(first: 3) {
          edges {
            node {
              zone {
                name
                countries {
                  name
                }
              }
              methodDefinitions(first: 3) {
                edges {
                  node {
                    id
                    name
                    methodConditions {
                      id
                      operator
                      conditionCriteria {
                        ... on Weight {
                          value
                        }
                        ... on MoneyV2 {
                          amount
                          currencyCode
                        }
                      }
                    }
                    rateProvider {
                      ... on DeliveryRateDefinition {
                        id
                        price {
                          amount
                          currencyCode
                        }
                      }
                      ... on DeliveryParticipant {
                        id
                        fixedFee {
                          amount
                          currencyCode
                        }
                        percentageOfRateFee
                        participantServices {
                          active
                          name
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

View response

JSON response

{
  "data": {
    "productVariant": {
      "deliveryProfile": {
        "profileLocationGroups": [
          {
            "locationGroupZones": {
              "edges": [
                {
                  "node": {
                    "zone": {
                      "name": "Canada",
                      "countries": [
                        {
                          "name": "Canada"
                        }
                      ]
                    },
                    "methodDefinitions": {
                      "edges": [
                        {
                          "node": {
                            "id": "gid://shopify/DeliveryMethodDefinition/36044856",
                            "name": "my_carrier_service_name",
                            "methodConditions": [],
                            "rateProvider": {
                              "id": "gid://shopify/DeliveryParticipant/13697080",
                              "fixedFee": {
                                "amount": "0.0",
                                "currencyCode": "USD"
                              },
                              "percentageOfRateFee": 0,
                              "participantServices": []
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              ]
            }
          }
        ]
      }
    }
  },
  ...
}

Return the rate provider

You can use the following query to return the rate providers that apply to a delivery profile's delivery methods:

POST /admin/api/unstable/graphql.json

query {
  deliveryProfiles(first: 1) {
    edges {
      node {
        profileLocationGroups {
          locationGroupZones(first: 3) {
            edges {
              node {
                methodDefinitions(first: 3) {
                  edges {
                    node {
                      rateProvider {
                        ... on DeliveryRateDefinition {
                          id
                          price {
                            amount
                          }
                        }
                        ... on DeliveryParticipant {
                          id
                          fixedFee {
                            amount
                            currencyCode
                          }
                          percentageOfRateFee
                          participantServices {
                            active
                            name
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

View response

JSON response:

{
  "data": {
    "deliveryProfiles": {
      "edges": [
        {
          "node": {
            "profileLocationGroups": [
              {
                "locationGroupZones": {
                  "edges": [
                    {
                      "node": {
                        "methodDefinitions": {
                          "edges": [
                            {
                              "node": {
                                "rateProvider": {
                                  "id": "gid://shopify/DeliveryRateDefinition/13172792",
                                  "price": {
                                    "amount": "8.0"
                                  }
                                }
                              }
                            },
                            {
                              "node": {
                                "rateProvider": {
                                  "id": "gid://shopify/DeliveryRateDefinition/13205560",
                                  "price": {
                                    "amount": "18.0"
                                  }
                                }
                              }
                            },
                            {
                              "node": {
                                "rateProvider": {
                                  "id": "gid://shopify/DeliveryParticipant/11567160",
                                  "fixedFee": {
                                    "amount": "0.0",
                                    "currencyCode": "USD"
                                  },
                                  "percentageOfRateFee": 0,
                                  "participantServices": []
                                }
                              }
                            }
                          ]
                        }
                      }
                    },
                    {
                      "node": {
                        "methodDefinitions": {
                          "edges": [
                            {
                              "node": {
                                "rateProvider": {
                                  "id": "gid://shopify/DeliveryRateDefinition/13107256",
                                  "price": {
                                    "amount": "5.0"
                                  }
                                }
                              }
                            }
                          ]
                        }
                      }
                    },
                    {
                      "node": {
                        "methodDefinitions": {
                          "edges": [
                            {
                              "node": {
                                "rateProvider": {
                                  "id": "gid://shopify/DeliveryRateDefinition/13140024",
                                  "price": {
                                    "amount": "18.0"
                                  }
                                }
                              }
                            },
                            {
                              "node": {
                                "rateProvider": {
                                  "id": "gid://shopify/DeliveryParticipant/11534392",
                                  "fixedFee": {
                                    "amount": "0.0",
                                    "currencyCode": "USD"
                                  },
                                  "percentageOfRateFee": 0,
                                  "participantServices": []
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  },
  ...
}

Sign up for a Partner account to get started.

Sign up