Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Getting "Required parameter" with price rules API

Getting "Required parameter" with price rules API

princeunifynd
Shopify Partner
1 0 0

Hi,

 

Hope you are doing great.

 

I am getting this error - 

{
"errors": {
"price_rule": "Required parameter missing or invalid"
}
}
 

in this API -

https://unisand.myshopify.com/admin/api/2023-01/price_rules.json

 

This is the body that I am sending-

{"title":"15OFFCOLLECTIOwerN","target_type":"line_item","target_selection":"all","allocation_method":"across","value_type":"percentage","value":"-15.0","customer_selection":"all","starts_at":"2023-03-19T17:59:10Z"}
 
I don't know what am I missing here?
 
Best Regards,
Prince Garg
Replies 0 (0)