to get a personalized navigation.
to get a personalized navigation.
Hi
I want to change prices with the Discount endpoint.
The scenario is the following. Marked in red are the information I want to change.
Using this update:
Gives me the anwer:
"message": "VismaId: 8564dedf-1e67-4a45-8f69-49671b637b65. Handle(Visma.net.ERP.Api.AR.CommandModel.Commands.ChildCommands.UpdateCustomerDiscountLineCommand cmd) not found"
And it doesn't mater if I use "pendingdiscountAmount" etc. I get the same error message.
Changing the "Operator" to "Insert", gives me another error:
"message": "Field 'Pending Discount Amount' cannot be updated because is not visible or editable."
I get the same error if I tries to POST a new record.
Any suggestions?
Hi Magnus
I followed your instructions and deleted a record and tried to Post it:
Second problem
When it comes to adding lines.
Adding new lines work fine, but the result is not so good.
Give you a new series instead.
I can't imagine this is correct. 🙂
Hi,
You don't need to delete the whole discount, only the line that you wanted to update originally.
Do this with the line operator "delete" via a put call.
The numbering when inserting is omitted, as with other endpoints as well, it is only taken into account when you are using "Update" or "Delete" operators.
The series value gets set according to your settings in the discount code window, if it's set to autonumbering and the conditions of the discount is different from the other series it will be autogenerated:
Hi,
We can confirm that there seems to be an issue using the line operator "Update", we will report this to the development team.
On our end we are not having any issues using the "Insert" operator, below example works, and until fixed the workaround would be to insert a new line and delete the old line if needed:
Copyright © 2022 Visma.com. All rights reserved.