You apply a fixed-amount discount to an account or an invoice. You generate that invoice. The total charge for the invoice is greater than the amount of the discount. When you look at the invoice, you don't see an entry for that discount.
A fixed-amount discount is applied per line item. The discount is applied based on the following order:
You can find the version number, segment number from the Zuora SOAP API RatePlanCharge object.
For example, the fixed-amount discount is $25, and you apply it to a customer account. The customer has several charges that total a larger amount than the discount. The invoice lists the charges:
|Discount Order||Item||Charge Number||Amount||Discount||Adjusted Amount||Charge Version number||Charge Segment number||Charge Effective Start Date|
|1||Bronze Service||C-00000560||$5||$5||$0||1||1||July 1, 2019|
|2||Support||C-00000558||$10||$10||$0||1||2||January 1, 2019|
|3||Overage||C-00000559||$5||$5||$0||1||2||February 1, 2019|
|4||Recurring||C-00000562||$5||$5||$0||1||2||February 1, 2019|
|5||Storage||C-00000557||$15||$0||$15||2||1||January 1, 2019|
In this example, the discount is applied in the following way:
The Storage item is in version 2.
So the discount is applied to Bronze Service first. Because the amount of the Bronze Service item is $5, leaving $20 of the fixed-amount discount.
So the discount is applied to Support item. Because the amount of the Support item is $10, leaving $10 of the fixed-amount discount.
The Overage item has the lowest charge number (C-00000559) than the Recurring item (C-00000562). So the discount is applied to the Overage item. Because the amount of the Overage item is $5, leaving $5 of the fixed-amount discount, the discount is then applied to the Recurring item. This uses the remainder of the discount, so no further discount is applied to the Storage item.