to get a personalized navigation.
to get a personalized navigation.
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.
how can i solve this problem?
Solved! Go to Solution.
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.
Same Supplier, same accounts. Different result...
It's solved with:
skipVatAmountValidation = new PostModels.SkipVatAmountValidation()
{ value = false},
It was not the solution. It feels like the values come as random, sometimes they are in, sometimes not
Copyright © 2022 Visma.com. All rights reserved.