Update:
Development team checked the database of this customer and:
Restriction groups are inactive now.
Restriction by GLaccount shows that accounts 3911 and 3230 are restricted A inverse in 2 groups ("Kb ej noll invert", "Kst ej noll invert"),
Restriction by subaccount show that subaccounts 937-999000-00-0000 and 931-999000-00-0000 do not have restrictions.
Restriction by subsegment shows that:
segmentID 1 with segment value 000 is restricted to group "Kst ej noll invert" and segment value 937 and 931 are not restricted
segmentID 2 with segment value 000000 is restricted to group "Kb ej noll invert"and segment value 999000 is not restricted
segmentID 3 with segment value 00 is restricted to group "Bolagskod ej noll invert"
segmentID 4 with segment value 0000 is not restricted
Because Restriction groups are inactive now, when testing the API json POST customer invoice, it works and the system creates the invoice.
When activating the groups "Kb ej noll inverta" and "Kst ej noll invert" the Restriction by GL account for accounts 3911 and 3230 get activated and the Restriction by subsegment segmentID 1 with segment value 000 and segmentID 2 with segment value 000000 get activated. When testing the API json POST customer invoice, we get an error "message": "VismaId: 14a2619c-9e1d-47a0-b8e8-8660659e6e99. Error creating document. Error: Kostnadsställe of SubID do not exist." even if the subaccounts 937-999000-00-0000 and 931-999000-00-0000 are not restricted.
This is reproducible on the company database.
... View more