price_rule REST API issue

Solved
Fabio_FitPaddy
New Member
1 0 0

I'm having problem creating a new price_rule through REST API.

The endpoint I call is https://{myApiKey}:{myApiPassword}@{myShopName}.myshopify.com/admin/api/2021-01/price_rules.json

My payload is as follow:

Schermata 2021-01-25 alle 14.27.04.png 
 
I got a "200 OK" response but in the response there's not any price_rule ID as I would expect.
Schermata 2021-01-25 alle 14.23.32.png 
 
My API permissions are ok. I already use some endpoints...
 
Any idea about that?
 
Thank you all!
 
0 Likes
_JB
Shopify Staff
Shopify Staff
754 89 168

This is an accepted solution.

Hey @Fabio_FitPaddy,

This is likely due to Postman sending cookies with the request. Please see this post for a fix: https://community.shopify.com/c/Shopify-APIs-SDKs/Shopify-private-app-stops-working-after-couple-of-...

JB | Developer Support @ 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 Shopify.dev or the Shopify Web Design and Development Blog