Item Tax Template not getting reflected in the Sales Order's Taxes and Charges

I am use to connect with ERPnext.

I am passing “item_tax_template” in the Sales Order Items, and it does get posted in the created Sales Order object, but it doesn’t not get populated in the Sales Order’s Taxes and Charges.

And because of that the tax doesn’t get added to the Total of Sales Order.

just like there is a Server Script to apply shipping rule for API, is there something similar for Item Tax Template to populate the Taxes and Charges?