By using this website, you agree to our Terms of Use (click here)
Is there a way to override the price of a product when submitting a sales order using the REST API?
I currently am using the UnitPrice and ManualPrice fields of the SalesOrder > Detail object to try to push this override but it does not seem to be working.
Any thoughts or experience on this?
Thanks!
Are you listing the Quantity before the Unit Price? Can you include the JSON that you're using?
I am successfully creating SO Line Items with manually set prices with the REST API. In addition to setting the UnitPrice and ManualPrice = true on the line, I also set the DiscountedUnitPrice (same value as UnitPrice) and I set ManualDiscount = true. I am not setting any value on the DiscountAmount.
I should note that setting the ManualDiscount bool to true is going to prevent any automatically applied discount codes from doing their thing. In our use case, this is what we wanted to have happen as we're creating these from external eCommerce orders where discounts have already been applied.
i think i figured it out. your solution worked