- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Hello!
I'm working with the nextgen salesorder API to create a post request and add a new order to the system. However i get the following error message:
"Could not find Subaccount segment value for SegmentId: 2 and Value: 09020".
After some trial and error i found that this is connected to my inventory items that are getting added to the order.
My inventory item Subaccount segments have the following structure:
ID 1 = Product, Length 2, adjustment: left, validate: yes
ID 2 = Supplier, length: 5, adjustment: left, validate: yes
ID 3 = customer group, length: 3, adjustment: left, validate: yes
My postman post request looks like this:
"
The above error is in response to the inventoryId stated in my request. In visma.net on the inventory item page i can see that the correct subaccount structure is: "90-90203-000" But if i try to add the segment id and value as suggested by the error output i do get my order created in the system but with the following subaccount structure: "90-09020-902".
I've tried turning off the validation for the affected segment id:s but no luck.
Any help with getting my items in correctly would be greatly appreciated.
Solved! Go to Solution.
Hi,
Since you are not sending any subaccount values in your JSON, we would suggest that you check the subaccount set in the items "generel ledger accounts":
The values you have set under the second segment in subaccounts(ScreenId=CS203000&DimensionID=SUBACCOUNT&SegmentID=2):
As well as the combinations you have set under subaccounts(ScreenId=GL203000):
