For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
Good afternoon!
I have a question about "https://shopify.dev/docs/api/admin-rest/2024-01/resources/pricerule"
How do I configure "Combinations" (on the screenshot) for discounts that I create via api/admin-rest pricerule
I can't find it in the documentation.
Here is an example of the code for creating a discount via pricerule:
$addPriceRule = $api->rest('POST','/admin/api/2024-01/price_rules.json', [
"price_rule" => [
"title" => $request['priceId'],
"target_type" => "line_item",
"target_selection" => "all",
"allocation_method" => "across",
"once_per_customer" => true,
"value_type" => "fixed_amount",
"value" => -intval($request['reward']),
"customer_selection" => "all",
"starts_at" => "2022-10-21T17:59:10Z"
]
]);
What should be added to change the fields (Product discounts, Order discounts, Shipping discounts) in the new discount?
I currently need to activate "Order discounts" so that I can use several vouchers in one order.
Best regards
I have the same problem.
I create two discounts - for products and for shipping. I need to make them work together.
But I didn't find any information in the documentation how to do this.