How can I get the shipping rate using profile ID?

Topic summary

A developer is seeking guidance on retrieving shipping rate information using a profile ID in Shopify’s GraphQL API.

The Issue:

  • After creating a shipping profile with rates via GraphQL API, the response returns a profile ID
  • The developer needs to extract the rate ID and rate name from the created profile

Technical Context:

  • The request involves the deliveryProfileCreate mutation
  • The response structure includes profile data with ID and name fields
  • The question remains unanswered with no solutions or workarounds provided yet

This appears to be an open question awaiting community input on the proper GraphQL query or method to retrieve detailed rate information from an existing delivery profile.

Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

Hello. Please advise. How can I obtain the shipping rate by profile ID?

For example: I made a request to create a shipping profile with a shipping rate using the GraphQL API. The response returns the profile ID. I need to retrieve the rate ID and rate name from the created profile.

"data" => array:1 [
    "deliveryProfileCreate" => array:2 [
      "profile" => array:2 [
        "id" => "gid://shopify/DeliveryProfile/123456789098"
        "name" => "Some Name"
      ]
      "userErrors" => []
    ]
  ]