to get a personalized navigation.
to get a personalized navigation.
We have recently discovered an issue when posting a new sales order to the Visma.net API when using the v2 endpoint for at least one company id (not others to our knowledge). The issue is that all item lines get 0% VAT (should be 25% VAT). VAT is correct when using the v1 endpoint.
The CompanyID is 3083136.
Solved! Go to Solution.
Hi,
Sorry for the late reply, as we have not been able to reproduce this on our end.
Is it still the same issue for these two companies?
Could you please send an email to developersupport@visma.com with companyID's / names and we'll forward this to the development team.
Thank you.
We're aware that the thread has been marked resolved by misstake, we're still investigating.
Hi,
Could you please send us an example JSON so that we can test it on our end?
Thank you.
Certainly,
{
"preferredWarehouse": {
"value": "1"
},
"lines": [
{
"subaccount": [],
"operation": "Insert",
"inventoryNumber": {
"value": "153040"
},
"uom": {
"value": "STK"
},
"quantity": {
"value": 1.0
},
"unitPrice": {
"value": 475.0
},
"discountAmount": {
"value": 0.0
},
"manualDiscount": {
"value": true
},
"lineDescription": {
"value": "TV reile 5312/16/41 ld4800069"
}
}
],
"orderType": {
"value": "WM"
},
"hold": {
"value": true
},
"date": {
"value": "2023-04-17T10:35:21"
},
"customerRefNo": {
"value": "1.Rec.4373"
},
"customer": {
"value": "69999"
},
"description": {
"value": "1.Rec.4373"
},
"branchNumber": {
"value": "1"
}
}
Hi,
We are tedting this on our end, when is it you get the issue?
Is it when you have created the invoice from the salesOrder?
Could you please send us screenshots of the expected results and what happens in your case?
Hi,
The error occurs when the sales order is being created.
1. This is the posted sales order, using v2.
2. Vat amount is 0
3. To fix the Vat amount, we add an empty line and then immediately remove it (we do this as a workaround at the moment).
4. The Vat amount is then recalculated (and looks like when we post the sales order using v1).
This seems to be an issue only for some Company IDs.
For instance, 2993090 and 3278080 works as expected, whereas 1331169 and 3083136 has the issue.
Copyright © 2022 Visma.com. All rights reserved.