Getting product prices from specific market via Admin API

Topic summary

A developer is seeking to replicate Storefront API functionality in the Admin API for market-specific product pricing operations. They need to:

Two main objectives:

  • Query product prices for a specific market/country using Product ID and Market identifier
  • Update prices for specific products in particular markets

Progress made:

  • First objective (querying prices): Successfully resolved using a GetPrice query with contextualPricing and country context (e.g., DE for Germany)
  • Second objective (updating prices): Partially solved but problematic. The UpdateProductPriceOnSpecificMarket mutation with productVariantUpdate can update prices, but only affects the primary market with no apparent option to specify a different market

Current status:
The discussion remains open with an unanswered question from another user (Namrata13) asking if a solution was found for updating product prices on particular markets. The core challenge of updating market-specific prices via Admin API appears unresolved.

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

Hi community, I need to replicate the same behavior from the following Storefront API GraphQL Query in Admin API. Is that possible? What I am trying to achieve:

  • Write a query which I can use to obtain Product price for specific market (country) by providing Product ID and Market (country) identifier (via Admin API)
  • Write a query which I can use to update the price for specific Product on a specific Market (country) by providing Product ID, Market (country) identifier and the new price (via Admin API)
query Products @inContext(country: DE) {
  product(id: "gid://shopify/Product/8298182410528") {
    productType
    id
    title
    description
    handle
    priceRange {
      minVariantPrice {
        amount
        currencyCode
      }
    }
  }
}

Thanks for help :slightly_smiling_face:

Martin


UPDATE 1:

I solved the first question, here is my solution:

query GetPrice {
    productVariant(id: "gid://shopify/ProductVariant/45658915078432") {
        id
        contextualPricing(context: {country: DE}) {
            price {
                amount
                currencyCode
            }
        }
    }
}

-------------

UPDATE 2:

Setting the price for specific market is way more difficult. So far, I have this code which allows me to update the price, but it does it for primary market and I see no option to specify different one.

mutation UpdateProductPriceOnSpecificMarket {
  productVariantUpdate(
    input: {
      id: "gid://shopify/ProductVariant/46244544151840", 
      price: 123456.00
    }
  ) {
    productVariant {
      id
      contextualPricing(
        context: {
          country: DK
        }
      ) {
        price {
          amount
          currencyCode
        }
      }
    }
  }
}
2 Likes

Do you find any solution to update product price for particular market?