Automatically setting a price when adding a new product via API ?

Solved

Automatically setting a price when adding a new product via API ?

TomKay85
Visitor
1 0 0

Hi there,

we are pushing new products to Shopify via the API and I was wondering if we are able to set a pre-defined price via Shopify Flows? We have one system with all the product data information (which basically is being used to create the product) and we have another system which provides the price and stock. They run at different times, so it happened that we had a new product/variant added in Shopify with a price of 0,00€ which also influenced the PLPs since it was shown "from 0,00€".

 

We therefor would like to firstly add a pre-defined price like 99,99€ when a new variant or product is being added, so that the PLPs wont be influenced at first sight.

 

Any quick fix how to do this or is this even possible in Shopify flows?

Best

Tom

Accepted Solution (1)

ryan_i
Shopify Staff
15 3 4

This is an accepted solution.

Hi there, Flow has the trigger "Product variant added", but unfortunately setting a price on a product variant is currently not available in Flow. There is a workaround using the "Send HTTP Request" action to use the Shopify GraphQL Admin API to update a product variant's price.

- Finding Flow useful? Leave us a review.
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.

View solution in original post

Reply 1 (1)

ryan_i
Shopify Staff
15 3 4

This is an accepted solution.

Hi there, Flow has the trigger "Product variant added", but unfortunately setting a price on a product variant is currently not available in Flow. There is a workaround using the "Send HTTP Request" action to use the Shopify GraphQL Admin API to update a product variant's price.

- Finding Flow useful? Leave us a review.
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.