QuickBooks: Void an invoice — request body — body Line item Amount, Description, Detail Type, Discount Line Detail, Id, Line Num Discount Line Detail
Void an invoice: request body, field body / Line / item / Amount, Description, DetailType, DiscountLineDetail, Id, LineNum / DiscountLineDetail. Complete fields and constraints for contract 2026-10-20.
API reference · Contract 2026-10-20
SDK schema: Void an invoice — request body — body Line item Amount, Description, Detail Type, Discount Line Detail, Id, Line Num Discount Line Detail
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
ClassRef | Model | Optional | Expand Create a purchase order — request body — body Ship To Reference to the Class associated with this discount. Query the Class name list resource to determine the appropriate Class object for this reference. Use Class.Id and Class.Name from that object for ClassRef.value and ClassRef.name , respectively. |
DiscountAccountRef | Model | Optional | Expand Create a purchase order — request body — body Ship To Income account used to track discounts. Query the Account name list resource to determine the appropriate Account object for this reference, where Account.AccountType=Income and Account.AccountSubType=DiscountsRefundsGiven . Use Account.Id and Account.Name from that object for DiscountAccountRef.value and DiscountAccountRef.name , respectively. |
DiscountPercent | JSON | Optional | Percentage by which the amount due is reduced, from 0% to 100%. To enter a discount of 8.5% use 8.5, not 0.085. Decimal string |
DiscountPercent (anyOf 1) | number | Alternative | |
DiscountPercent (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?$ |
PercentBased | JSON | Optional | True if the discount is a percentage; null or false if discount based on amount. |
PercentBased (anyOf 1) | boolean | Alternative | |
PercentBased (anyOf 2) | string | Alternative | One of: true, false |
TaxCodeRef | Model | Optional | Expand Create a purchase order — request body — body Ship To The TaxCode associated with the sales tax for the expense. Query the TaxCode name list resource to determine the appropriate TaxCode object for this reference. Use TaxCode.Id and TaxCode.Name from that object for TaxCodeRef.value and TaxCodeRef.name , respectively. |
Referenced models: Create a purchase order — request body — body Ship To