For that you will have to use the Journal / Journal line API:
You will have to apply invoice by invoice. You can not do the same apply as you do in the client interface.
For that you will have to use the Journal / Journal line API:
You will have to apply invoice by invoice. You can not do the same apply as you do in the client interface.