My Products
Help
Azadeh1
CONTRIBUTOR **

Unable to post SalesOrder---> "Inventory error: The unit conversion is missing."

by Azadeh1

Hello, this is the payload sent for the SalesOrder POST endpoint.


{
"sendToAutoInvoice": {"value": false},
"referenceNumber": {"value": "0000000001"},
"customer": {"value": "10030"},
"documentDate": {"value": "2021-08-22"},
"description": {"value": "Description"},
"currency": {"value": "SEK"},
"orderType": {"value": "SO"},
"lines": [
{
"operation": "Insert",
"quantity": {
"value": 1
},

"uom": {
"value": "STK"
}
}
]
}

"unitCost": {
"value": 1000
}
}
]
}

 

 

It is unclear what the error is related to and how to resolve it.

Could we kindly get some guidance?

 

 

2 REPLIES 2
Yıldırım
VISMA

by Yıldırım (Updated ‎22-09-2021 14:07 by Yıldırım VISMA )

Hello Azadeh,

 

"Unit of Measurements" may differ depending on what is defined for each Inventory / Financials ERP Company.

 

If no item has been added then general definitions should be checked 

In the UI, ScreenId=CS203100 

UOM.png


via the API: 

API.png

 

If any item has been added, then the item's specific and available UOM's should be checked. 

2021-09-22 15_03_06-Window.png

 

In this kind of issues, by far the most plausible diagnosing would be trying the same operation in the Financials UI, so that system can highlight the not accepted values in the GUI. 

 

Regards. 

Accepted solution
Azadeh1
CONTRIBUTOR **

by Azadeh1

We found the solution, it worked when changing the uom value of "STYCK".
Might be helpful for someone else:)