A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi everyone. I'm trying to put an item on sale for 10% off, and here is the current code.
POST https:/myshopurl.com/admin/api/2022-04/price_rules.json
{
"price_rule":{
"title":"10OFFCOLLECTION",
"target_type":"line_item",
"target_selection":"entitled",
"allocation_method":"across",
"value_type":"percentage",
"value":"-10",
"customer_selection":"all",
"entitled_product_ids":[
item Product ID
],
"starts_at":"current time",
"ends_at": "x days "
}
}
This worked, and i didn't get any error in the response JSON.
However, the item is still at full price and not discounted.
Is there something wrong with my JSON or there's a extra step that i'm missing , such as publish the discount offer?