Skip to content

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

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
ClassRefModelOptionalExpand 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.
DiscountAccountRefModelOptionalExpand 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.
DiscountPercentJSONOptionalPercentage 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)numberAlternative
DiscountPercent (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?$
PercentBasedJSONOptionalTrue if the discount is a percentage; null or false if discount based on amount.
PercentBased (anyOf 1)booleanAlternative
PercentBased (anyOf 2)stringAlternativeOne of: true, false
TaxCodeRefModelOptionalExpand 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

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.