AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Everything Else
Overriding the pric...
 
Notifications
Clear all

Questions Overriding the price when submitting a sales order using the REST API

 
Everything Else
Last Post by Atul Shukla 6 years ago
5 Posts
4 Users
3 Reactions
4,726 Views
RSS
Posts: 6
 Mike Ott
Topic starter
May 9, 2019 12:05 pm
(@mike-ott)
Member
Joined: 8 years ago

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!


Topic Tags
REST API
4 Replies
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
May 24, 2019 11:00 pm
(@timrodman)
Famed Member
Joined: 11 years ago

Are you listing the Quantity before the Unit Price? Can you include the JSON that you're using?


Reply
Posts: 1
 Zach Karpinski
September 12, 2019 11:39 am
(@zach-karpinski)
Member
Joined: 7 years ago

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.


Reply
Atul Shukla and Tim Rodman reacted
 Atul Shukla
(@atul-shukla)
Joined: 6 years ago

Member
Posts: 2
March 23, 2020 2:59 pm
Reply toZach Karpinski

@zach-karpinski

 

Could you show me an example json of how the request with manualprice = true looks like?

 

Does this looks right?

{
"id":"f6c9e391-b9b3-4e91-8a62-6820237e39b6",
"OrderQty":{
"value":1
},
"DiscountedUnitPrice":{
"value":210.0,
"ManualPrice": true,
"commit":true
},
"UnitPrice":{
"value":210.0,
"ManualPrice": true,
"commit":true
}
}

 


Reply
Posts: 2
 Atul Shukla
March 23, 2020 5:32 pm
(@atul-shukla)
Member
Joined: 6 years ago

i think i figured it out. your solution worked


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Related Topics
  • [REST API] PUT Request with several records.
    6 years ago
Topic Tags:  REST API (3) ,
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,532 Topics
  • 11 K Posts
  • 7 Online
  • 2,418 Members
Our newest member: Chad Treadwell
Latest Post: Can't export GI's to excel that contain the FATrans DAC after upgrade to 2025 R1 in less than 25 min
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2026 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×