Return management just got easier! We’ve launched Customer Self-Serve Returns to all Shopify merchants. Click here to learn more!

post price_rules.json is not working with me

New Member
1 0 0

Hi Shopify,

im trying to create price rules 
with body 

"price_rule": {
"title": "test",
"target_type": "line_item",
"target_selection": "all",
"allocation_method": "across",
"value_type": "fixed_amount",
"value": "-10.0",
"customer_selection": "all",
"starts_at": "2020-07-14T20:10:15+08:00"

the API returns 200 ok 
with html body 



  <script type="text/javascript" defer>
    window.location = "https:\/\/\/services\/login\/identity?destination_uuid=03ed2424-2700-49ef-bdff-bf53dd128e57\u0026prompt=merge\\u0026ui_locales=en\u0026ux=shop";


I can use get and put and delete so im sure that there is no authentication issue
but I don't know why it 
returns like that with post 
Reply 1 (1)
Shopify Staff
Shopify Staff
836 100 217

Hey @amjad1,

This is due to cookies being sent from your HTTP client. Please see this post for more details.

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit or the Shopify Web Design and Development Blog