Dev.to WebDev 🛠 Dev 👁 0 📖 7 min read

Shopify Shipping Profiles API 2026: Delivery Profiles, Zones & Rates from Your App

Shopify shipping profiles API tutorial (2026): create custom shipping profiles, zones and rates from your own Shopify app with the GraphQL Admin API - a profile for heavy products, a Pakistan zone, a flat rate, free ship

Shopify shipping profiles API tutorial (2026): create custom shipping profiles, zones and rates from your own Shopify app with the GraphQL Admin API - a profile for heavy products, a Pakistan zone, a flat rate, free shipping over 100, moving products out of the General profile, and where the admin shows your app's rates now that shipping lives in Markets. Shopify app development series, episode 13 - everything shown is real, nothing skipped.

What you'll learn

  • Scope write_shipping
  • Profiles → location groups → zones → rates
  • deliveryProfileCreate + deliveryProfileUpdate
  • Free shipping over an amount (price condition)
  • Move products between profiles
  • 3 traps (silent zone clash, default profile, no name)

💻 Free source code for this episode: https://github.com/fayyaz315/shopify-app-development-2026/tree/ep13

3 quick fixes from this episode

Shopify Custom Shipping Profiles: Your Product Leaves the General Profile

Shopify custom shipping profiles (2026-10): put a product in a custom profile from your app (deliveryProfileCreate with variantsToAssociate) and it MOVES out of the General profile - 30 variants became 29 (and 28 with a second product). Delete the profile and it moves back. Tested on a real store.

▶ 60-second video: https://youtube.com/shorts/rtnzrzb2P0M

Shopify Shipping Rates API: Free Shipping Over $100 from Your App

Shopify shipping rates API (2026-10): free shipping over 100 is just a second rate - price 0 with a price condition (order total ≥ 100). One method definition in deliveryProfileCreate, and the admin lists it under 'Rates managed by the app'.

▶ 60-second video: https://youtube.com/shorts/jMjtSPlsREE

Shopify Shipping Zones API: Same Country Twice = an Empty Zone (No Error)

Shopify shipping zones API (2026-10): put the same country in two zones of one deliveryProfileCreate and there is NO error - the second zone takes the country and the first is left empty. deliveryProfileUpdate does reject it ('Region already exists in another zone'). Plus: the General profile can't be deleted. Tested on a real store.

▶ 60-second video: https://youtube.com/shorts/bvuc6zFvkoM

Step by step

Preview + intro (0:00)

In the next ten minutes, your app creates its own shipping rates, and Shopify's admin lists them as rates managed by the app. You'll see a product move out of the General profile, and a zone that loses its country without a single error. These are Shopify shipping profiles, made by our own app.

Shopify's admin lists the three rates under our app's name. This is episode thirteen of the Shopify app development series. Last time, languages and translations.

Today: shipping. The full code is free on GitHub, and the link is in the description.

How shipping is built (0:34)

First, how Shopify builds shipping. It's four layers, and the API mirrors them exactly. A profile says which products.

The General profile holds every product that isn't in another profile. Inside it, a location group says where the parcels ship from. This store has one location: Shop location.

A zone says which countries. And each zone has rates: a name, a price, and optional conditions. So, heavy products with their own prices?

That's a custom profile. One new scope: write shipping. Without it, delivery profiles is access denied.

As before, I restarted the dev server and opened the app once to grant it.

Read the profiles (1:18)

The new Shipping page. One profile so far: General, with thirty variants and six active rates. Below, its zones and rates.

Domestic is Pakistan, with Standard, Express and free shipping. International has twenty eight countries. One query lists the profiles with their variant counts and how many rates are active.

The page also reads the shop's currency, the locations, and up to thirty products for the pickers. Our country picker offers five countries. Shopify takes the two letter country code.

A second query reads one profile all the way down: location groups, zones, countries, and the method definitions, which are the rates. A rate's price sits in its rate provider, and conditions come back as a field, an operator, and an amount or a weight.

Create a profile (2:10)

Now a custom profile. I call it Heavy items, for the Classic Everyday Pants. The zone is Pakistan, country Pakistan.

A rate called Courier, $8. And free over one hundred. Create profile.

Profile created. That's deliveryProfileCreate. One input holds the name, the variants, and the location groups with their zones and rates.

variantsToAssociate is the list of variant ids for the chosen product. We send every variant, so the whole product moves. Every action returns userErrors, and the page shows Shopify's message in a red toast.

Each rate is a method definition: a name, active, and a rate definition with the price. Free over one hundred is just a second rate. Price zero, plus a price condition: order total greater than or equal to one hundred.

Prices use the shop's currency, U S dollars here. In my tests, a rupee price was stored in rupees, so the app always sends the shop currency.

Add a rate (3:18)

The new profile's zone: Pakistan, with Courier at $8 and free over one hundred, with its condition. Let's add Express, $15. Add rate.

Rate added. Three rates now. Express has no condition, so it always shows.

Adding a rate is deliveryProfileUpdate: inside the location group, inside the zone, methods to create. Deleting a rate is one list of ids: methodDefinitionsToDelete. The General profile's delete buttons are hidden on purpose.

Move products (3:51)

Now a second product, the Casual Everyday Shirt. Move product. Product moved to this profile.

Look at the counts. General went from thirty variants to twenty eight, and Heavy items has two. That's variantsToAssociate.

A variant lives in one profile at a time, so adding it here takes it out of General. Remove does the reverse, with variantsToDissociate, and the product goes back to General. Coming up: where these rates show up in Shopify's admin, because it's not where you'd expect.

In the admin (4:26)

Now the proof, in Shopify's own admin. Shipping lives in Markets now, so here's the Pakistan market. Its shipping list: Standard, Express and free shipping from General, and below them, my store helper.

Rates managed by the app, three services: Courier, Express, and Free over one hundred. So the merchant can see your rates, but they're labeled as yours. That's a good reason to give them clear names.

Delete (4:56)

Back in the app. Delete the profile. Profile deleted.

And General has thirty variants again. Both products went back. deliveryProfileRemove returns a job, because Shopify moves the products back in the background.

Three traps (5:11)

Now three traps, in GraphiQL. First, the whole tree in one query. General, its zones with their countries, and each rate with its price.

Trap one. A new profile with two zones, and I put Pakistan in both. No error.

userErrors is empty. So let's read it back. The first zone, Pakistan, has no countries at all.

The second zone took Pakistan, and nobody told us. A country can be in only one zone of a location group. Update does say so: region P K already exists in another zone.

Create doesn't. Trap two: deleting the General profile. Cannot delete the default profile.

Trap three: no name. Add a profile name. Every profile needs one.

Want to practise? Add a weight condition, heavy parcel over two kilograms, and check it in Markets.

Honest notes (6:09)

A few honest notes before the recap. One: our page makes one zone with one country. Real stores want several countries per zone, and that's the same countries list.

Two: weight based rates use weight conditions instead of price conditions. I tested a two kilogram one, and it works the same way. Three: carrier calculated rates, like live courier prices, need a carrier service.

That's a different API. And everything you saw was tested on my real development store, on API version 2026-10, before I pressed record.

Recap (6:47)

So, the recap. Add the write shipping scope. Create a profile with a location group, a zone and its rates, in one nested input.

Products move out of General when you add them, and back when you remove them or delete the profile. And check the result in Markets, where the admin lists your app's rates. That's Shopify shipping profiles in 2026, inside a real app, on a real store.

The full code for this episode is free on GitHub. The link is in the description. Next episode: customers.

Create them, tag them, and group them into segments. See you there.

📖 The full written tutorial with every episode: https://www.wixob.com/shopify-shipping-profiles-tutorial/
📚 Course page: https://www.wixob.com/shopify-app-development-2026/
🔔 New episodes on YouTube: https://www.youtube.com/@fayyaz-ahmed-shopify-developer?sub_confirmation=1

Questions about the Shopify GraphQL Admin API? Ask in the comments — I answer every one.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.