Apply Discount or Price Rule on Order using API

Hi there,

I am using admin APIs to create a price rule and discount code on the price rule. I need to create an order using API but the thing is now after creating the price rule and discount I need to apply this to the order, either using any object in the order or after creating the order by using any API.

I have created a price rule for which type I need, now just need to know how to apply it using API. Can anyone help me with it or guide me?