Access unit_price and unit_price_measurement via REST API

Solved
tipserstore
Tourist
4 0 3

Price Per Unit is an exclusive feature implemented for France and Germany.
https://help.shopify.com/en/manual/intro-to-shopify/initial-setup/sell-in-germany/price-per-unit

https://help.shopify.com/en/manual/intro-to-shopify/initial-setup/sell-in-france/price-per-unit

I went through guideless ^ and was able to define the unit price via the user interface. Now, I want to download these data via REST API. Is it accessible there? Precisely,  is a price per unit (unit_price and unit_price_measurement) exposed via REST API or GraphQL? I can't see it as a variant property.

Accepted Solution (1)

Accepted Solutions
Josh
Shopify Staff
Shopify Staff
1134 82 213

This is an accepted solution.

Hey @tipserstore , 

 

At the moment this field is not accessible via the API. However, it is also very new, so that's not to say that it never will be available - but there isn't any timeline at the moment or concrete plans to do so. 

Josh | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

View solution in original post

Replies 44 (44)
Josh
Shopify Staff
Shopify Staff
1134 82 213

This is an accepted solution.

Hey @tipserstore , 

 

At the moment this field is not accessible via the API. However, it is also very new, so that's not to say that it never will be available - but there isn't any timeline at the moment or concrete plans to do so. 

Josh | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

bauerundmetzger
Tourist
5 0 3
Hi from Germany,

is there any update on this field? We setup our new online shop and need to adjust the unit price for our wholesale clients. We need to run two shops in one: B2C and B2B. This is practically possible with Apps like Wholesale gorilla or Bold. But both aren’t able to change the unit prices, in our case /kg. But we need to show different prices for B2B clients. Is there any solution for us from shopify or via an third party app? Thanks for help!
Maris
Shopify Partner
313 5 68

Hello!

 

Is there any update on this - when would it be possible to read/write this `unit_price` and `unit_price_measurement` data via the Shopify REST API or GraphQL?

 

Thanks so much!

 

Maris

 

Matrixify (Excelify) | Bulk Import Export Update Migrate | https://matrixify.app
FabianPG
Tourist
6 0 18

Hi @tipserstore , do you have any update on making these fields available through the APIs ?

 

This is really crucial information for all stores in Europe (particularly Germany and France, where the feature has been thankfully rolled out on the user interface).

 

However, in order to safely maintain the data we need these fields to be accessible via API.

 

Also, it would be tremendously helpful if the values could be carried over to the Google Shopping App's unit price fields whenever there is a change in Shopify (either through the user interface or via the API). Is that something that is aimed to come anytime soon ?

 

Thank you & Best Regards

Fabian

HunkyBill
Shopify Expert
4764 54 551

Why would this feature be exclusive to France and Germany? Unit price has been in demand since DAY 1 of Shopify, in every part of the world? Curious about this. Never heard a peep about it finally being a thing. Anyone at Shopify ever produce a blog article on this and what it came from, how it works etc?

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
grimabe
Tourist
3 0 4

Hi @Josh , do you have any news regarding this topic?

Thanks

Benjamin

FabianPG
Tourist
6 0 18

Hi @Josh , also anxiously waiting for this to be added to the API accesible fields.

@all lets make some noise here to show that it's not only a select few who need this feature.

 

Thanks & Regards

Fabian

Deluxe
New Member
3 0 5

need it urgently!!

SewMuchCommerce
Shopify Expert
19 0 2

Not sure if it would help anyone but my app helps fabric stores sell in fractional increments. For example allowing a customer to purchase 1.75 yards or meters of fabric.

 

I have a few requests for kg or g but its not many, shoot me an email at James@SewMuchCommerce.com with your specific issues/needs and I'll see what I can do.

HunkyBill
Shopify Expert
4764 54 551

That is cool and all, but for sure this is a situation where one should strive to have this be 0% App and 100% built into Shopify, using nothing more than Liquid and Javascript. Now that it is established that unit prices are supported in at least a few countries too, that is for certain something that could be rolled out to everyone. As usual, the trickiest part of the equation remains tiered pricing where the more you buy, the cheaper it gets, or, for some industries anyway, the dimensions affect price in ways that are not so easy to pull off. It remains true though, that even in those cases one can easily capture dimensions, and alter pricing, and ultimately get orders flowing, without using external App code.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
RM7
New Member
2 0 0

Hello, I also need this feature urgently or possibility to set unit prices via csv upload.

jurek
New Member
1 0 0

I am new to Shopify opening a online grocery store (in germany). So the feature is available but not accessable via the API.
I have a few thousand products so doing it manually is not an option. This feature is kind of crutial to migrate from WooCommerce to Shopify.
So API accessability of unitPriceMeasurement pls!

There are some duplicates of this question actually:

https://community.shopify.com/c/Shopify-APIs-SDKs/Cannot-find-unitPriceMeasurement-field-in-GraphQL-...

Benja
New Member
1 0 0

II am a noob and have lost days trying to find a solution. Is manual update the only option? No CSV import? I need to update 5000 + SKUs regularly. Please help.
Should I migrate to Woocommerce? I need to find a solution fast. 

EYOND
Shopify Partner
3 0 6

@Josh Could you please give us an update on this? The feature seems to be urgently needed by some users.

Hißlinger
Tourist
4 0 10

Yes, we also need this urgently ;-´(

Gabe
Shopify Staff
Shopify Staff
7534 1204 1959

Hey Folks!

If you are not a German or French store and you need the Unit_Price Feature activated in your store we can activate that manually in the backend.

Simply let us know here or send us a ticket asking for the feature to be activated in the backend and we can do that.

Best,

Gabe | Social Care @ Shopify
 - War meine Antwort hilfreich? Klicke Like um es mich wissen zu lassen! 
 - Wurde deine Frage beantwortet? Markiere es als Akzeptierte Lösung 
 - Um mehr zu erfahren, besuche das Shopify Help Center oder den Shopify Blog

EYOND
Shopify Partner
3 0 6

@Gabe this feature is already enabled in our shopify admin area. However, we need this fields to be adjustable via the API.

Hißlinger
Tourist
4 0 10

Yes, please make this accessible via the REST API.

Currently it can only be set manually and with over 5,000 items at our site this is simply a disaster as this is a legal requirement in Germany. 😣

simonhaenisch
Shopify Partner
10 1 19

I'm maintaining an app and we also need to be able to retrieve `unit_price` and `unit_price_measurement` for each variant from the Admin REST API, specifically the `GET products.json` endpoint. It's a legal requirement in Germany to provide these for certain types of products.

It would be great if this was at least added to the Product API response, which is a backwards-compatible change. Being able to set this via the API also seems important for shop owners however is not a priority in our use case.