Apply discounts to line items
The main Xero application now allows the application of a discount on a line item. While discounts on line items can be retrieved via the API (GET) it is not possible to create a discount via the API (PUT/POST). Add your votes here if this is something you would like to see.
Adding line item discounts on ACCREC / sales invoices is now supported. See release notes – http://developer.xero.com/documentation/api/v2-release-notes/#2.32
-
Chris Gresty commented
Please add this - very useful for customer clarity, where we agree different discounts per customer on different types of item.
-
Jason Hulme commented
I need this too.
-
Etienne Tremel commented
Please add this feature! Updating invoices is causing me issues.
-
Alok K. Garg commented
Please add feature, to give Discount, via put/post method.
-
Afroz Khan commented
please add in api,it is very necessory for bussiness
-
Luke Buckley commented
Please implement - I rate this a must have. We can hack around it but really needs to be fully implemented. Thanks!
-
Simon Buchanan commented
Must must must have!
-
Anonymous commented
Very important indeed!
-
Torben FLoisdorf commented
I really think this is a very important issue. Please include this if possible!
-
Mihai Popa commented
I also think his is really important! and how hard can it be to add the api for this as long as the functionality already exists?
-
Anonymous commented
I need it
-
Timothy Peter Robb commented
Anything that is possible to do via the main application should be possible via the API.
If you provide a feature to access discounts, you should provide the full access to such variable.
A getter without a setter is nigh pointless. -
Ben van Klinken commented
this is a nice to have, purely so that we can accurately post using discounts. another suggestion would be to support discounts through a formula: i.e. if the quantity * unit price != line amount then discount appropriately
-
Jon commented
I really could do with this - applying the discount before posting is leading to rounding issues with non integer quantities.
-
Bruce commented
This is a must have!
-
Anonymous commented
very important
-
Joseph Taiwo commented
This should be added. I agree
-
Tim commented
Agree, this is a must have!
-
@James it is not a highly requested feature so far, as many add an extra 'discount' line to the invoice. Presentation not being a big issue as this is generally for accounting records and not the version of the invoice that is presented to the client.
We are supporting GET Invoices at the moment as invoices with a discount created within the main application would not be returned correctly via the API without support for this. So for use with applications that are extracting data from Xero rather than sending it in.
Good to have your votes for it, but right now it is not winning the popularity contest :(
-
James Connell commented
This seems like such a deficiency that really it should be at the top of your list. What is the point of being able to GET a discount on a line item if I can't create it in the first place?