to get a personalized navigation.
to get a personalized navigation.
Hi
I'm having an error when trying to insert a customer invoice on Visma API.
The whole json is really long so I will share the part that matters the most for me, the invoice line that is causing the issue:
{
"operation":"Insert",
"inventoryNumber":{
"value":"1"
},
"description":{
"value":"Servicebil"
},
"quantity":{
"value":62.0
},
"unitPriceInCurrency":{
"value":8.5
},
"accountNumber":{
"value":"3011"
},
"uom":{
"value":"KM"
},
"subaccount":[
{
"segmentId":1,
"segmentValue":"20"
},
{
"segmentId":2,
"segmentValue":"10598"
},
{
"segmentId":3,
"segmentValue":"2"
}
]
}{
"operation":"Insert",
"inventoryNumber":{
"value":"1"
},
"description":{
"value":"Servicebil"
},
"quantity":{
"value":62.0
},
"unitPriceInCurrency":{
"value":8.5
},
"accountNumber":{
"value":"3011"
},
"uom":{
"value":"KM"
},
"subaccount":[
{
"segmentId":1,
"segmentValue":"20"
},
{
"segmentId":2,
"segmentValue":"10598"
},
{
"segmentId":3,
"segmentValue":"2"
}
]
}
The error response from the API:
{"message":"Error: Inserting 'Customer transactions' record raised at least one error. Please review the errors.\r\nError: UoM 'KM' cannot be found in the system.\r\n"}
So I made a request to the unitofmeasure endpoint to check if exists, and it does.
The same behavior is happening with the UoM ST and I.
Any idea what could be happening?
Solved! Go to Solution.
That was causing the issue. Thank you!
Copyright © 2022 Visma.com. All rights reserved.