Create order with product witch contain automatic discount

Hi!
I try to create an order using Shopify API, a product containing an automatic discount.

Preconditions:

  1. create product

  2. create a discount with an automatic type

  1. 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.