Business Central Standard API TaxCodes not updating

Hello everyone. I have been trying to post Purchase Invoices and General Journal Batches through (I have been “deep posting” them, together with their lines).

Though whenever I post, I notice that the taxCode field (VAT Prod. Posting Group) does not update. Has anyone else experienced that? Is it a bug or am I just doing it wrong?

This is an example of what I’ve been trying to post (Journal):

{
“code”: “JOURNAL-1”,
“displayName”: “JOURNAL ID 1”,
“journalLines”: [
{
“accountType”: “G/L Account”,
“accountNumber”: “2810”,
“postingDate”: “2013-07-02”,
“amount”: 15.0,
“description”: “123”,
“comment”: “123”,
“taxCode”: “GST10”
}
]
}

and I get the following Journal as response (I have omitted the Odata tags):

{
“id”: “492cdc39-58d5-eb11-86df-000d3acc2836”,
“code”: “JOURNAL-1”,
“displayName”: “JOURNAL-1”,
“lastModifiedDateTime”: “2021-06-25T01:54:07.95Z”,
“balancingAccountId”: “00000000-0000-0000-0000-000000000000”,
“balancingAccountNumber”: “”,
“journalLines”: [
{
“id”: “4a2cdc39-58d5-eb11-86df-000d3acc2836”,
“journalId”: “492cdc39-58d5-eb11-86df-000d3acc2836”,
“journalDisplayName”: “JOURNAL-1”,
“lineNumber”: 10000,
“accountType”: “G/L Account”,
“accountId”: “e3a360f2-11a8-eb11-bb60-000d3a25712a”,
“accountNumber”: “2810”,
“postingDate”: “2013-07-02”,
“documentNumber”: “”,
“externalDocumentNumber”: “”,
“amount”: 15.00,
“description”: “123”,
“comment”: “123”,
“taxCode”: “”,
“balanceAccountType”: “G/L Account”,
“balancingAccountId”: “00000000-0000-0000-0000-000000000000”,
“balancingAccountNumber”: “”,
“lastModifiedDateTime”: “2021-06-25T01:54:08.02Z”
}
]
}

As you can see: The taxCode is empty. Please help!

I have incorrectly pasted the “displayName” for my posted object: It should also be “JOURNAL-1”

I’m experiencing the same thing - taxCode is not marked as Read-only in the API documentation, but anything I send via POST/PATCH requests is overwritten with whatever is configured in the Item/Account setup (even if that value is blank)

I don’t currently have a solution, but at least know that you’re not alone in experiencing this.