I want to send a POST request to a business central instance to insert journal lines to a general journal and have every field updated according to the request body data. I have tried using the default API, but the field Bal. Account No. (balancingAccountNumber) does not update when according to the value I specify (I specify a valid No., based on Bal. Account Type).
I have tried to make a simple custom API by following this guide: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-develop-custom-api, but when I try POSTing a Journal Line, I get the following error message:
Does anyone know how I can make this work?
Please, let me know if you need more information about my API or anything else.

Report
All responses (
Answers (