selectline-software / selectline-api

Apache License 2.0
24 stars 5 forks source link

How to get company's discount group's discount value #375

Closed abdullahbaa5 closed 3 months ago

abdullahbaa5 commented 4 months ago

I have looked through the api and still not able to find which api function to use to get the discount data for the Customer.Payment.DiscountGroupNumber

thank you.

abdullahbaa5 commented 3 months ago

https://demo.slmobile.de/demoApi/Help/Api/GET-Articles-articleNumber-Sales-Prices-customerNumber https://demo.slmobile.de/demoApi/Help/Api/GET-Articles-articleNumber-Purchasing-Prices-supplierNumber

both are throwing the following error on (22.3.5 Build 799497)

`NotFound <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

404 - File or directory not found.

404 - File or directory not found.

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

`
MatthiasGuse commented 3 months ago

Hello,

actually there is no function to get the data for the DiscountGroupNumber. Using the price functions - named above, is the better way to get an correct price for the customer.

Probalby this functions are available in a later version of the api (23.1). See here: https://apiupdate.selectline.de/ In your local installation of the documentation and Swagger you can see the existing functions, according to your version.

Best regards

abdullahbaa5 commented 3 months ago

solved by updating to the latest version of select line