API - SaaS 18 insert gen journal balancing account


Is there a way to create a gen journal line with the balancing account as when I tried with the standard code sample from MS it doesn’t work, either journalLines end point or $batch end point. Have others experience this or can someone share sample code?