Hi ,
I'm getting error when trying to fetch SalesOrders from Business Central using Odata API
Request:"/api/v2.0/companies(9ec36eeb-f404-eb11-aa61-000d3aab094d)/salesOrders?$filter=lastModifiedDateTime+ge+2021-02-08T08:49:21Z&$orderby=lastModifiedDateTime+asc&$top=1000&$skip=0&$expand=salesOrderLines($filter=lineType eq 'Comment' or lineType eq 'Item' or lineType eq 'Account';$orderby=sequence)"
Response:"{\"error\":{\"code\":\"Application_DialogException\",\"message\":\"The maximum Invoice Discount Amount that you can apply is 4,224.04. CorrelationId: 6ff97399-ed67-4597-924d-90ef8020bf3c.\"}}"
Can anyone has idea why am i getting this error and how to fix this?
Looking forward to your responses.
Thanks & Regards,
Ankit