How can I get the shipping rate using profile ID?

Nazar4
Shopify Partner
7 0 1

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" => []
    ]
  ]

 

 

Replies 0 (0)