My Products
Help
gordana_jlmwms
CHAMPION *

Problem with posting VatId for JournalTransaction

by gordana_jlmwms

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.

gordana_jlmwms
CHAMPION *

{"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"}}]}

 

 

gordana_jlmwms
CHAMPION *

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.

gordana_jlmwms
CHAMPION *

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

gordana_jlmwms
CHAMPION *

by gordana_jlmwms

Same Supplier, same accounts. Different result... 

 

gordana_jlmwms_0-1696579676882.png

 

gordana_jlmwms_1-1696579758230.png

 

 

gordana_jlmwms
CHAMPION *

by gordana_jlmwms

It's solved with:

 

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

Accepted solution
gordana_jlmwms
CHAMPION *

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