Skip to content
Advertisement

Delete shopify price rule using curl php

I am trying to delete a price rule created through API. Create API works fine, but somehow delete is not working. Here is my code

JavaScript

And I’m getting output like this

enter image description here

What am I missing? Can anyone suggest?

Advertisement

Answer

Finally i got the solution,

I removed # before the rule id ,This was my endpoint

JavaScript

But it should be

JavaScript

Hopes this would help somebody in future

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement