My Products
Help

Problem with posting VatId for JournalTransaction

by Gordana_Abacus_IT

When I run POST Journal Transaction with value for vat ID (16 and 16R) see picture, I get Created in response, Transaction is in place but VatId is missing.

Message in yellow: Account is associated with one or more VAT categories but VAT code is not specified.

gordana_jlmwms_0-1696504165028.png

 

how can i solve this problem?

 

 

 

 

8 REPLIES 8

by Magnus Johnsen

Hi,

Please provide us with the JSON of the journalTransaction you are sending.

Thank you.

{"value":"SEK"},"description":{"value":"Preliminärbokad levfaktura - 50011 vat test"},"createVatTransaction":{"value":true},"skipVatAmountValidation":{"value":true},"branch":{"value":"1"},"journalTransactionLines":[{"operation":"insert","accountNumber":{"value":"2440"},"subaccount":[{"segmentId":1,"segmentValue":"0"},{"segmentId":2,"segmentValue":"00000"},{"segmentId":3,"segmentValue":"000"},{"segmentId":4,"segmentValue":"00"},{"segmentId":5,"segmentValue":"000"}],"referenceNumber":{"value":"vat test"},"transactionDescription":{"value":"Preliminärbokad levfaktura"},"creditAmountInCurrency":{"value":1000.0}},{"operation":"insert","accountNumber":{"value":"2617"},"subaccount":[{"segmentId":1,"segmentValue":"0"},{"segmentId":2,"segmentValue":"00000"},{"segmentId":3,"segmentValue":"000"},{"segmentId":4,"segmentValue":"00"},{"segmentId":5,"segmentValue":"000"}],"referenceNumber":{"value":"vat test"},"transactionDescription":{"value":"Preliminärbokad levfaktura"},"creditAmountInCurrency":{"value":250.0},"vatId":{"value":"16R"}},{"operation":"insert","accountNumber":{"value":"2647"},"subaccount":[{"segmentId":1,"segmentValue":"0"},{"segmentId":2,"segmentValue":"00000"},{"segmentId":3,"segmentValue":"000"},{"segmentId":4,"segmentValue":"00"},{"segmentId":5,"segmentValue":"000"}],"referenceNumber":{"value":"vat test"},"transactionDescription":{"value":"Preliminärbokad levfaktura"},"debitAmountInCurrency":{"value":250.0},"vatId":{"value":"16"}},{"operation":"insert","accountNumber":{"value":"4031"},"subaccount":[{"segmentId":1,"segmentValue":"0"},{"segmentId":2,"segmentValue":"00000"},{"segmentId":3,"segmentValue":"000"},{"segmentId":4,"segmentValue":"00"},{"segmentId":5,"segmentValue":"000"}],"referenceNumber":{"value":"vat test"},"transactionDescription":{"value":"Preliminärbokad levfaktura"},"debitAmountInCurrency":{"value":1000.0},"vatCodeId":{"value":"08"}}]}

 

 

with this object I got the vat id values with in Visma. I'm going to catch one that misses the values and post it again.

Hi,

Alright, thank you.

last 10 days commer vatId without any problems. We'll have to wait and see how things turn out in the future.

by Gordana_Abacus_IT

Same Supplier, same accounts. Different result... 

 

gordana_jlmwms_0-1696579676882.png

 

gordana_jlmwms_1-1696579758230.png

 

 

by Gordana_Abacus_IT

It's solved with:

 

skipVatAmountValidation = new PostModels.SkipVatAmountValidation()
{ value = false},

Accepted solution
Gordana_Abacus_IT
PARTNER

It was not the solution. It feels like the values come as random, sometimes they are in, sometimes not