Cannot find unitPriceMeasurement field in GraphQL API

RiadhMa
New Member
2 0 2

Hello,

I would like use the unitPriceMeasurement  field for my products, in the documentation it says that it exists under ProductVariant object but when I fetch it in Shopify GraphiQL API I cannot find it.
Someone can provide me with any information about this?

Thank you.

davidhoang
Shopify Partner
11 0 3

I have the same problem. The error message is "Field 'unitPriceMeasurement' doesn't exist on type 'ProductVariant'".

0 Likes
HunkyBill
Shopify Expert
4415 39 475

It is supposed to be only for customers in certain countries. You get that field if you are Germany for example, but not Canada. At least that is how it looked a few years ago when they introduced the unit pricing schema. Maybe it is just an oversight... I dunno. Is this released in general now?

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes
davidhoang
Shopify Partner
11 0 3

I tried that on a dev store which have the country set to Germany. The unit price field then enabled on the store and I set some test values for products already. Still the API is saying that it's not available.

0 Likes
HunkyBill
Shopify Expert
4415 39 475

Not sure then. A Dev Store should have everything turned on. Maybe it requires an actual setting of the API itself to turn that on. Meaning you have to ask if you want it and it won't work unless you qualify.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes
davidhoang
Shopify Partner
11 0 3

I tried it on a live client store which is located in Germany. The merchant has the unit prices setup and configured. Same error that I got on the dev store.

When the dev store was configured to be in a different country, the option was not available. It's only available after switching to Germany, inline with what is said here: https://help.shopify.com/en/manual/intro-to-shopify/initial-setup/sell-in-germany/price-per-unit

Who should I contact to check whether this API can be "turned on", if it needs to be?

Thanks.