If you have a use case for needing the purchase_type option in price rules please let us know, Id be happy to pass on feedback to our teams on your behalf.
I have a case where I need “purchase_type” to be available on the PriceRule Rest API:
I have a customer using a subscription product with my discount app and he can’t apply our discount in his order because the API do not allow me to change the “purchase_type” to “both”.
He simply switched the value to “both” in Shopify Admin and saved our discount, after that our discount can be applied in the order, the default value should be “both” (I don’t see why not), or the REST API should have the option to create the order with this attribute.
We create price rules from our backend using Shopify GraphQL API. Because we can not set ‘Purchase_Type’ somebody needs to login into Shopify backend and change this parameter to ‘both’ manually every time. Sorry, but im not getting now ‘DiscountCustomerGetsInput’ can help.