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
-
@Eion - thanks for the feedback. I've updated the Invoices endpoint docs to make the description of the TaxAmount and LineAmount elements clearer.
-
@Anon - Discounts are only supported on ACCREC invoices via the Xero APi. DIscounts on credit notes are not supported via the Xero app or API at this time. Consider suggesting this functionality on our app feature request site - https://community.xero.com/business/topic/23/
-
Eion Robb commented
Can you update the docs to say whether this is supported for ACCRECCREDIT's as well as update the TaxAmount and LineAmount docs for whether this is before or after the discount % is applied
-
Anonymous commented
You mention that this is supported on ACCREC. Is this also supported on ACCRECCREDIT ?
-
Jamie Nicholson commented
I have a project to complete by Feb 2014 any chance on defining available soon?
Or an indication that it won't be available by then.Thanks
-
Maxim commented
Yes please! Our application creates invoices and as long as it supports discounts internally, we must export this information via the API. Suggested workaround is definitely just a hack...
-
Kerry Sainsbury commented
What does "planned" actually mean? Can you share the "plan"? Thanks!
-
Cody Caughlan commented
Yes please! We create invoices via the API and this is a requirement. The above workaround of adding negative line amounts works but its a hack.
-
Ruairi commented
API has to reflect the application chaps, otherwise us Devs will be endlessly searching forums to find out what's supported and what isn't.
-
Anonymous commented
Yes please. We generate invoices dynamically via the API. This would be a must have!
-
Ash G commented
+1 - This is definitely a must have for me. Staff will have to work around the issue until it is implemented.
-
Kerry Sainsbury commented
Thanks for the suggestion, but adding an additional line is confusing for customers, so we are going to have to have staff update the line discount manually until this API fix is implemented.
The discount is itself a work-around for the inability to specify an item price with 4 decimal places, so your other option would be to fix that limitation :-)
-
Anonymous commented
This is a must! Seems like a no-brainer to me. I understand the need to prioritise development and new features so this is my effort to bump this up the list a little.
-
Shannon commented
Agreed, this is a must!
-
ErinH commented
+1 for this
-
hiwithekiwi commented
This is such a common requirement and standard practice it's hard to believe that this wasn't included in a much earlier release before now!
-
Molly Shin commented
We really need this, so please do this. Thanks.
-
Chris Rutherfurd commented
We are currently designing a point of sale system for small businesses which can be connected directly with Xero. Currently we are needing to design a work around which adjusts the unit cost when creating the line item. Ideally we would like the unit cost to remain the same and simply be able to apply a discount to the line item to represent a line item discount.
-
ali commented
do it plz thanks
-
Mick commented
do it pls! thanks