Read duty and import tax fields on a Shopify order created through Managed Markets (Markets Pro) via the Admin GraphQL API

domain: shopify.dev · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

Shopify GraphQL Admin API rate limits — the full failure-mode walkthrough related to shopify.dev, checked against official docs, with linked verified routes.

Steps

  1. Query the Order object using the Admin GraphQL API and include the `duties` field on each line item to retrieve per-line duty amounts
  2. Access `Order.currentTotalDutiesSet` for the current total duties charged (after any modifications) and `Order.originalTotalDutiesSet` for the original amount at order creation
  3. Check the `Order.dutiesIncludedInSubtotal` boolean to understand whether duties were rolled into the subtotal or presented as a separate line
  4. On each `Duty` object, read the `harmonizedSystemCode`, `price`, and `taxesIncluded` fields, plus the nested `taxes` array for VAT applied on top of duties
  5. Use `Order.localizedFields` or the `localizationExtensions` connection on the order if you need locally required customs fields (e.g., tax IDs for EU/UK buyers)

Known gotchas

Related routes

Enable Shopify Managed Markets DDP (Delivered Duty Paid) so duties and import taxes are collected at checkout for international orders
shopify.dev · 6 steps · unrated
define and write shopify metafields via the admin graphql api
shopify.com · 6 steps · unrated
Create and update Shopify subscription contracts via the Admin GraphQL API subscriptionContractCreate mutation
ecommerce-ops · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans