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: github.com/fayyaz315/shopify-app-development-2026/tree/ep13
Chapters
- 0:00 Preview + intro
- 0:34 How shipping is built
- 1:18 Read the profiles
- 2:10 Create a profile
- 3:18 Add a rate
- 3:51 Move products
- 4:26 In the admin
- 4:56 Delete
- 5:11 Three traps
- 6:09 Honest notes
- 6:47 Recap
Step by step (full walkthrough)
Preview + intro
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
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
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
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
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
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
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
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
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
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
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.
Quick fixes from this episode (60-second Shorts)
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.
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'.
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.
The Shopify App Development 2026 series
All episodes are free, with the code on GitHub. Course page: Shopify App Development 2026.
- Episode 1: How to Create a Shopify App in 2026 (Shopify CLI Step by Step for Beginners)
- Episode 2: Shopify Admin API Tutorial 2026
- Episode 3: Shopify Product Variants API 2026
- Episode 4: Shopify GraphQL Create Collection 2026
- Episode 5: Shopify Update Inventory API 2026
- Episode 6: Shopify Create Discount Code API 2026
- Episode 7: Shopify Metafields API 2026
- Episode 8: Shopify Metaobjects API 2026
- Episode 9: Shopify App Webhooks 2026
- Episode 10: Shopify File Upload API 2026
- Episode 11: Shopify Page API 2026
- Episode 12: Shopify Translation API 2026
- Episode 13: Shopify Shipping Profiles API 2026 (this episode)
- Episode 14: Shopify Customer API 2026 – watch on YouTube
- Episode 15: Shopify Draft Order API 2026 – watch on YouTube
- Episode 16: Shopify Fulfillment Order API 2026
- Episode 17: Shopify Theme API 2026 – watch on YouTube
- Episode 18: Shopify Theme App Extension Tutorial 2026 – watch on YouTube
🔔 New episodes every week on the YouTube channel. Need a custom Shopify app or API integration? Wixob Technologies builds them: info@wixob.com.