Shopify Flow API Request to change Product Variant Price

Solved

Shopify Flow API Request to change Product Variant Price

SpoiledThreads
Shopify Partner
6 0 1

Hello, I have a Flow operational to change the metafield of a variant depending on the inventory availability of the variant depending when the stock hits 0.

 

What I am trying to implement is the ProductVariantPrice via an API call. I have attempted to handle this via the HTTP request action and Send Admin API Request. Both of which are not properly working. Would anyone have resources or advice on why both of these attempts are not working?

 

This is my first time working with HTTP requests and despite all resources I've consulted I don't know what is wrong as I'm directly using the templates provided by the Send Admin API request. Any Community Gurus assistance is appreciated.

 

HTTP Request Action:

Includes the Site name, Shopify API secret key in the headers and results in a HTTP 406 error.

Screenshot 2025-03-18 at 3.32.13 PM.png

Send Admin API Request

Used the template provided by the block and removed all the extraneous sections (everything except price and VariantID).

Screenshot 2025-03-18 at 3.38.38 PM.png
Accepted Solution (1)

RPiii
Shopify Staff
155 27 45

This is an accepted solution.

I'm wondering if the issue might be the comma at the end of the list (after productId), which might not be valid JSON. Have you tried removing it?

View solution in original post

Reply 1 (1)

RPiii
Shopify Staff
155 27 45

This is an accepted solution.

I'm wondering if the issue might be the comma at the end of the list (after productId), which might not be valid JSON. Have you tried removing it?