Hi!
I try to create an order using Shopify API, a product containing an automatic discount.
Preconditions:
-
create product
-
create a discount with an automatic type
- Applied this discount to the product
What data do I need to send in a POST request, if I want to see the discount for this product?
I try discount_allocations in line_items and applied_discount in order, but it doesn’t help me.
For example, If I create an order use native checkout:
My goal creates a similar order user API.

