Shopify Price Rule API POST method returning array of price_rules inste

Hello, I’m facing an odd issue with Price Rule POST API, when I call the post api for price rule, with an body like this:

{
“price_rule”:{
“target_type”:“line_item”,
“target_selection”:“all”,
“allocation_method”:“across”,
“customer_selection”:“all”,
“title”:“chasepaw15”,
“value_type”:“fixed_amount”,
“value”:“-32.4”,
“starts_at”:“2022-12-11T14:02:43.888Z”,
“ends_at”:“2023-01-25T23:59:59.000Z”,
“usage_limit”:1,
“once_per_customer”:true,
“prerequisite_subtotal_range”:{
“greater_than_or_equal_to”:“108”
}
}
}

The API response is {
price_rules: → a list of existing price rules, the one I tried to create is not here
}

Is there any way I can fix this? Maybe is an permission issue?

1 Like