Commerce Scale Unit API CalculateSalesDocument Controller ignores Site specific Trade Agreement prices #334
Unanswered
gerhardrieser-ADLER
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear community.
We have a problem with the Pricing controller with the CalculateSalesDocument API.
In the D365FO Headquater we have defined 2 different Sales Trade Agreements for an item on site-level:
Two of them are already expired, but one is defined for a specific site with 736 CZK and one is defined without a site with 820 CZK.
In the D365FO HQ on the sales order line and in the pricing simulator when selecting a customer, it will find the correct price based on the customer master data settings in the "Sales order defaults" section for Site
When using the Commerce Scale Unit API (specifically: the CalculateSalesDocument controller) we do not get the correct price, because the customers site specified in the customer master data in the "Sales order defaults" section is not used.
The Sales Trade Agreement we get as an response is the wrong one without a site specified.
Is there any parameter in D365 to use the site from the customer in the Commerce Scale Unit API? Or is it possible to specify the site in the request?
I hope you can help me.
Best regards
Gerhard
Beta Was this translation helpful? Give feedback.
All reactions