Skip to content

QuickBooks: Void an invoice — request body — body Line item Amount, Description, Detail Type, Id, Line Num, Sub Total Line Detail

Void an invoice: request body, field body / Line / item / Amount, Description, DetailType, Id, LineNum, SubTotalLineDetail. 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, Id, Line Num, Sub Total Line Detail

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
AmountJSONRequired within parentThe amount of the line item.
Decimal string
Amount (anyOf 1)numberAlternative
Amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?$
DescriptionstringOptionalFree form text description of the line item that appears in the printed record.
DetailTypestringRequired within parentSet to SubTotalLineDetail for this type of line.
IdstringOptionalThe Id of the line item. Its use in requests is as folllows: If Id is greater than zero and exists for the company, the request is considered an update operation for a line item. If no Id is provided, the Id provided is less than or equal to zero, or the Id provided is greater than zero and does not exist for the company then the request is considered a create operation for a line item. Available in all objects that use lines and support the update operation.
Read only: true
LineNumJSONOptionalSpecifies the position of the line in the collection of transaction lines. Positive integer
Decimal string
LineNum (anyOf 1)numberAlternative
LineNum (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?$
SubTotalLineDetailModelRequired within parentExpand Void an invoice — request body — body Line item Amount, Description, Detail Type, Id, Line Num, Sub Total Line Detail Sub Total Line Detail
Subtotal LineDetail

Referenced models: Void an invoice — request body — body Line item Amount, Description, Detail Type, Id, Line Num, Sub Total Line Detail Sub Total Line Detail

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.