Skip to content

QuickBooks: Journalentry schemas

8 QuickBooks schemas with complete fields and constraints.

← Journalentry operations · All schemas

Create a journalentry — request body — body Line item

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]+)?$
CustomExtensionsarrayOptionalArray of custom extension objects that associate additional attributes with the line. The ExtensionType field specifies the type of extension. The currently supported value is DIMENSION . The AssociatedValues array contains key/value pairs referencing Dimensions DefinitionID/Dimension ValueID. Multiple key/value pairs per extension type are supported. This field is designed to support additional extension types in the future. Dimensions is available for Intuit Enterprise Suite.
CustomExtensions[]ModelEach itemExpand Create an item — request body — body Custom Extensions item
DescriptionstringOptionalFree form text description of the line item that appears in the printed record.
DetailTypestringRequired within parentSet to JournalEntryLineDetail for this type of line.
IdstringOptionalThe Id of the line item. In requests, if Id matches that for an existing line in the transaction the line is updated. Otherwise, a new line is created. Integer as string.
Read only: true
JournalEntryLineDetailModelRequired within parentExpand Create a journalentry — request body — body Line item Journal Entry Line Detail
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]+)?$
ProjectRefModelOptionalExpand Create a purchase order — request body — body Ship To
Reference to the Project ID associated with this transaction.
Conditionally required

Referenced models: Create an item — request body — body Custom Extensions item, Create a journalentry — request body — body Line item Journal Entry Line Detail, Create a purchase order — request body — body Ship To

Create a journalentry — request body — body Line item Journal Entry Line Detail

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
AccountRefModelRequired within parentExpand Create a purchase order — request body — body Ship To
Reference to the account associated with this line. Query the Account name list resource to determine the appropriate Account object for this reference, based on the side of the journal entry represented by this line. Use Account.Id and Account.Name from that object for AccountRef.value and AccountRef.name , respectively.
BillableStatusstringOptionalThe billable status of the journal entry line. The line is to be billed to a customer if the account is an expense account and EntityRef specifies a Customer object. This field is not updatable through an API request. The value automatically changes when an invoice is created. Valid values: Billable , NotBillable , HasBeenBilled
Read only: true
ClassRefModelOptionalExpand Create a purchase order — request body — body Ship To
Reference to the Class associated with the transaction. Available if Preferences.AccountingInfoPrefs.ClassTrackingPerTxn is set to true . 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.
DepartmentRefModelOptionalExpand Create a purchase order — request body — body Ship To
A reference to a Department object specifying the location of the transaction. Available if Preferences.AccountingInfoPrefs.TrackDepartments is set to true . Query the Department name list resource to determine the appropriate department object for this reference. Use Department.Id and Department.Name from that object for DepartmentRef.value and DepartmentRef.name , respectively.
EntityModelOptionalExpand Create a journalentry — request body — body Line item Journal Entry Line Detail Entity
When you use Accounts Receivable , you must choose a customer in the Name field. When you use Accounts Payable , you must choose a supplier/vendor in the Name field.
Conditionally required
PostingTypestringRequired within parentIndicates whether this JournalEntry line is a debit or credit. Valid values: Credit , Debit
TaxAmountJSONOptionalTax amount of the line.
Decimal string
TaxAmount (anyOf 1)numberAlternative
TaxAmount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?$
TaxApplicableOnstringOptionalIndicates whether the tax applicable on the line is sales or purchase. Valid value: Sales , Purchase . Required if TaxCodeRef is specified
Conditionally required
TaxCodeRefModelOptionalExpand Create a purchase order — request body — body Ship To
Reference to the TaxCode for this item. 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.
TaxInclusiveAmtJSONOptionalThe total amount of the line items including tax.
Decimal string
TaxInclusiveAmt (anyOf 1)numberAlternative
TaxInclusiveAmt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?$

Referenced models: Create a journalentry — request body — body Line item Journal Entry Line Detail Entity, Create a purchase order — request body — body Ship To

Create a journalentry — request body — body Line item Journal Entry Line Detail Entity

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
EntityRefModelRequired within parentExpand Create a purchase order — request body — body Ship To
Query the corresponding name list resource as specified by Entity to determine the appropriate object for this reference. Use the Id and DisplayName values from that object for EntityRef.value and EntityRef.name , respectively.
TypestringOptionalObject type. Output only. Valid values are Vendor , Employee , or Customer .

Referenced models: Create a purchase order — request body — body Ship To

Delete a journalentry — request body — body

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
AdjustmentJSONOptionalIndicates whether this transaction is a journal entry adjustment.
Adjustment (anyOf 1)booleanAlternative
Adjustment (anyOf 2)stringAlternativeOne of: true, false
CurrencyRefModelOptionalExpand Create a bill — request body — body Currency Ref
Reference to the currency in which all amounts on the associated transaction are expressed. This must be defined if multicurrency is enabled for the company. Multicurrency is enabled for the company if Preferences.MultiCurrencyEnabled is set to true . Read more about multicurrency support here . Required if multicurrency is enabled for the company
Conditionally required
DocNumberJSONOptionalReference number for the transaction. Throws an error when duplicate DocNumber is sent in the request and if Preferences:OtherPrefs:NameValue.Name = WarnDuplicateJournalNumber is true. Recommended best practice: check the setting of Preferences:OtherPrefs:NameValue.Name = WarnDuplicateJournalNumber before setting DocNumber. If a duplicate DocNumber needs to be supplied, add the query parameter name/value pair, include=allowduplicatedocnum to the URI. Sort order is ASC by default. If null value is sent in the request null will be saved. If there is a need to support assigning a docNumber when null, it can be achieved through include param, include=allowautodocnum
DocNumber (anyOf 1)stringAlternative
DocNumber (anyOf 2)nullAlternative
ExchangeRateJSONOptionalThe number of home currency units it takes to equal one unit of currency specified by CurrencyRef . Applicable if multicurrency is enabled for the company.
Decimal string
ExchangeRate (anyOf 1)numberAlternative
ExchangeRate (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?$
GlobalTaxCalculationstringOptionalMethod in which tax is applied. Allowed values are: TaxExcluded , TaxInclusive . Not applicable to US companies; required for non-US companies.
Conditionally required
HomeTotalAmtJSONOptionalThe value of this field will always be set to zero. Applicable if multicurrency is enabled for the company.
Decimal string
Read only: true
HomeTotalAmt (anyOf 1)numberAlternative
HomeTotalAmt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?$
IdstringRequired within parent
LinearrayOptionalIndividual line items of a transaction. There must be at least one pair of Journal Entry Line elements, representing a debit and a credit, called distribution lines. Valid Line types include: JournalEntryLine and DescriptionOnlyLine
Line[]JSONEach item
Line[] (anyOf 1)ModelAlternativeExpand Create a journalentry — request body — body Line item
Line[] (anyOf 2)ModelAlternativeExpand Void an invoice — request body — body Line item Amount, Description, Description Line Detail, Detail Type, Id, Line Num
MetaDataModelOptionalExpand Read a bill — response body — Bill Meta Data
Descriptive information about the object. The MetaData values are set by Data Services and are read only for all applications.
PrivateNotestringOptionalUser entered, organization-private note about the transaction.
RecurDataRefModelOptionalExpand Create a purchase order — request body — body Ship To
A reference to the Recurring Transaction. It captures what recurring transaction template the JournalEntry was created from.
Read only: true
SyncTokenstringRequired within parent
TaxRateRefModelOptionalExpand Create a purchase order — request body — body Ship To
Reference to the Tax Adjustment Rate Ids for this item. Query the TaxRate list resource to determine the appropriate TaxRate object for this reference. Use TaxRate.Id and TaxRate.Name from that object for TaxRateRef.value and TaxRateRef.name, respectively.
TotalAmtJSONOptionalThe value of this field will always be set to zero. Calculated by QuickBooks business logic; any value you supply is over-written by QuickBooks.
Decimal string
Read only: true
TotalAmt (anyOf 1)numberAlternative
TotalAmt (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?$
TxnDatestringOptionalThe date entered by the user when this transaction occurred. For posting transactions, this is the posting date that affects the financial statements. If the date is not supplied, the current date on the server is used. Sort order is ASC by default.
TxnTaxDetailModelOptionalExpand Create a bill — request body — body Txn Tax Detail
This data type provides information for taxes charged on the transaction as a whole. It captures the details sales taxes calculated for the transaction based on the tax codes referenced by the transaction. This can be calculated by QuickBooks business logic or you may supply it when adding a transaction. See Global tax model for more information about this element. If sales tax is disabled ( Preferences.TaxPrefs.UsingSalesTax is set to false ) then TxnTaxDetail is ignored and not stored.
idstringOptionalUnique identifier for this object.
Read only: true
domainstringOptional
sparsebooleanOptional

Referenced models: Read a bill — response body — Bill Meta Data, Create a bill — request body — body Currency Ref, Void an invoice — request body — body Line item Amount, Description, Description Line Detail, Detail Type, Id, Line Num, Create a journalentry — request body — body Line item, Create a purchase order — request body — body Ship To, Create a bill — request body — body Txn Tax Detail

Read a journalentry — response body — Journal Entry

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
AdjustmentJSONOptionalIndicates whether this transaction is a journal entry adjustment.
Adjustment (anyOf 1)booleanAlternative
Adjustment (anyOf 2)stringAlternativeKnown values: true, false
CurrencyRefModelOptionalExpand Read a bill — response body — Bill Currency Ref
Reference to the currency in which all amounts on the associated transaction are expressed. This must be defined if multicurrency is enabled for the company. Multicurrency is enabled for the company if Preferences.MultiCurrencyEnabled is set to true . Read more about multicurrency support here . Required if multicurrency is enabled for the company
Conditionally required
DocNumberJSONOptionalReference number for the transaction. Throws an error when duplicate DocNumber is sent in the request and if Preferences:OtherPrefs:NameValue.Name = WarnDuplicateJournalNumber is true. Recommended best practice: check the setting of Preferences:OtherPrefs:NameValue.Name = WarnDuplicateJournalNumber before setting DocNumber. If a duplicate DocNumber needs to be supplied, add the query parameter name/value pair, include=allowduplicatedocnum to the URI. Sort order is ASC by default. If null value is sent in the request null will be saved. If there is a need to support assigning a docNumber when null, it can be achieved through include param, include=allowautodocnum
DocNumber (anyOf 1)stringAlternative
DocNumber (anyOf 2)nullAlternative
ExchangeRateJSONOptionalThe number of home currency units it takes to equal one unit of currency specified by CurrencyRef . Applicable if multicurrency is enabled for the company.
Decimal string
ExchangeRate (anyOf 1)JSONAlternative
ExchangeRate (anyOf 1) (anyOf 1)numberAlternative
ExchangeRate (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
ExchangeRate (anyOf 2)stringAlternative
GlobalTaxCalculationstringOptionalMethod in which tax is applied. Allowed values are: TaxExcluded , TaxInclusive . Not applicable to US companies; required for non-US companies.
Conditionally required
HomeTotalAmtJSONOptionalThe value of this field will always be set to zero. Applicable if multicurrency is enabled for the company.
Decimal string
Read only: true
HomeTotalAmt (anyOf 1)JSONAlternative
HomeTotalAmt (anyOf 1) (anyOf 1)numberAlternative
HomeTotalAmt (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
HomeTotalAmt (anyOf 2)stringAlternative
IdstringOptionalUnique identifier for this object.
Read only: true
LinearrayOptionalIndividual line items of a transaction. There must be at least one pair of Journal Entry Line elements, representing a debit and a credit, called distribution lines. Valid Line types include: JournalEntryLine and DescriptionOnlyLine
Line[]JSONEach item
Line[] (anyOf 1)ModelAlternativeExpand Read a journalentry — response body — Journal Entry Line item Amount, Custom Extensions, Description, Detail Type, Id, Journal Entry Line Detail, Line Num, Project Ref
Line[] (anyOf 2)ModelAlternativeExpand Read an invoice — response body — Invoice Line item Amount, Description, Description Line Detail, Detail Type, Id, Line Num
MetaDataModelOptionalExpand Read a bill — response body — Bill Meta Data
Descriptive information about the object. The MetaData values are set by Data Services and are read only for all applications.
PrivateNotestringOptionalUser entered, organization-private note about the transaction.
RecurDataRefModelOptionalExpand Read an item — response body — Item Class Ref
A reference to the Recurring Transaction. It captures what recurring transaction template the JournalEntry was created from.
Read only: true
SyncTokenstringOptionalVersion number of the object. It is used to lock an object for use by one app at a time. As soon as an application modifies an object, its SyncToken is incremented. Attempts to modify an object specifying an older SyncToken fails. Only the latest version of the object is maintained by QuickBooks Online.
Read only: true
TaxRateRefModelOptionalExpand Read an item — response body — Item Class Ref
Reference to the Tax Adjustment Rate Ids for this item. Query the TaxRate list resource to determine the appropriate TaxRate object for this reference. Use TaxRate.Id and TaxRate.Name from that object for TaxRateRef.value and TaxRateRef.name, respectively.
TotalAmtJSONOptionalThe value of this field will always be set to zero. Calculated by QuickBooks business logic; any value you supply is over-written by QuickBooks.
Decimal string
Read only: true
TotalAmt (anyOf 1)JSONAlternative
TotalAmt (anyOf 1) (anyOf 1)numberAlternative
TotalAmt (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
TotalAmt (anyOf 2)stringAlternative
TxnDatestringOptionalThe date entered by the user when this transaction occurred. For posting transactions, this is the posting date that affects the financial statements. If the date is not supplied, the current date on the server is used. Sort order is ASC by default.
TxnTaxDetailModelOptionalExpand Read a bill — response body — Bill Txn Tax Detail
This data type provides information for taxes charged on the transaction as a whole. It captures the details sales taxes calculated for the transaction based on the tax codes referenced by the transaction. This can be calculated by QuickBooks business logic or you may supply it when adding a transaction. See Global tax model for more information about this element. If sales tax is disabled ( Preferences.TaxPrefs.UsingSalesTax is set to false ) then TxnTaxDetail is ignored and not stored.

Referenced models: Read a bill — response body — Bill Currency Ref, Read an invoice — response body — Invoice Line item Amount, Description, Description Line Detail, Detail Type, Id, Line Num, Read a journalentry — response body — Journal Entry Line item Amount, Custom Extensions, Description, Detail Type, Id, Journal Entry Line Detail, Line Num, Project Ref, Read a bill — response body — Bill Meta Data, Read an item — response body — Item Class Ref, Read a bill — response body — Bill Txn Tax Detail

Read a journalentry — response body — Journal Entry Line item Amount, Custom Extensions, Description, Detail Type, Id, Journal Entry Line Detail, Line Num, Project Ref

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
AmountJSONOptionalThe amount of the line item.
Decimal string
Amount (anyOf 1)JSONAlternative
Amount (anyOf 1) (anyOf 1)numberAlternative
Amount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Amount (anyOf 2)stringAlternative
CustomExtensionsarrayOptionalArray of custom extension objects that associate additional attributes with the line. The ExtensionType field specifies the type of extension. The currently supported value is DIMENSION . The AssociatedValues array contains key/value pairs referencing Dimensions DefinitionID/Dimension ValueID. Multiple key/value pairs per extension type are supported. This field is designed to support additional extension types in the future. Dimensions is available for Intuit Enterprise Suite.
CustomExtensions[]ModelEach itemExpand Read an item — response body — Item Custom Extensions item
DescriptionstringOptionalFree form text description of the line item that appears in the printed record.
DetailTypestringOptionalSet to JournalEntryLineDetail for this type of line.
IdstringOptionalThe Id of the line item. In requests, if Id matches that for an existing line in the transaction the line is updated. Otherwise, a new line is created. Integer as string.
Read only: true
JournalEntryLineDetailModelOptionalExpand Read a journalentry — response body — Journal Entry Line item Amount, Custom Extensions, Description, Detail Type, Id, Journal Entry Line Detail, Line Num, Project Ref Journal Entry Line Detail
LineNumJSONOptionalSpecifies the position of the line in the collection of transaction lines. Positive integer
Decimal string
LineNum (anyOf 1)JSONAlternative
LineNum (anyOf 1) (anyOf 1)numberAlternative
LineNum (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
LineNum (anyOf 2)stringAlternative
ProjectRefModelOptionalExpand Read an item — response body — Item Class Ref
Reference to the Project ID associated with this transaction.
Conditionally required

Referenced models: Read an item — response body — Item Custom Extensions item, Read a journalentry — response body — Journal Entry Line item Amount, Custom Extensions, Description, Detail Type, Id, Journal Entry Line Detail, Line Num, Project Ref Journal Entry Line Detail, Read an item — response body — Item Class Ref

Read a journalentry — response body — Journal Entry Line item Amount, Custom Extensions, Description, Detail Type, Id, Journal Entry Line Detail, Line Num, Project Ref Journal Entry Line Detail

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
AccountRefModelOptionalExpand Read an item — response body — Item Class Ref
Reference to the account associated with this line. Query the Account name list resource to determine the appropriate Account object for this reference, based on the side of the journal entry represented by this line. Use Account.Id and Account.Name from that object for AccountRef.value and AccountRef.name , respectively.
BillableStatusstringOptionalThe billable status of the journal entry line. The line is to be billed to a customer if the account is an expense account and EntityRef specifies a Customer object. This field is not updatable through an API request. The value automatically changes when an invoice is created. Valid values: Billable , NotBillable , HasBeenBilled
Read only: true
ClassRefModelOptionalExpand Read an item — response body — Item Class Ref
Reference to the Class associated with the transaction. Available if Preferences.AccountingInfoPrefs.ClassTrackingPerTxn is set to true . 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.
DepartmentRefModelOptionalExpand Read an item — response body — Item Class Ref
A reference to a Department object specifying the location of the transaction. Available if Preferences.AccountingInfoPrefs.TrackDepartments is set to true . Query the Department name list resource to determine the appropriate department object for this reference. Use Department.Id and Department.Name from that object for DepartmentRef.value and DepartmentRef.name , respectively.
EntityModelOptionalExpand Read a journalentry — response body — Journal Entry Line item Amount, Custom Extensions, Description, Detail Type, Id, Journal Entry Line Detail, Line Num, Project Ref Journal Entry Line Detail Entity
When you use Accounts Receivable , you must choose a customer in the Name field. When you use Accounts Payable , you must choose a supplier/vendor in the Name field.
Conditionally required
PostingTypestringOptionalIndicates whether this JournalEntry line is a debit or credit. Valid values: Credit , Debit
TaxAmountJSONOptionalTax amount of the line.
Decimal string
TaxAmount (anyOf 1)JSONAlternative
TaxAmount (anyOf 1) (anyOf 1)numberAlternative
TaxAmount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
TaxAmount (anyOf 2)stringAlternative
TaxApplicableOnstringOptionalIndicates whether the tax applicable on the line is sales or purchase. Valid value: Sales , Purchase . Required if TaxCodeRef is specified
Conditionally required
TaxCodeRefModelOptionalExpand Read an item — response body — Item Class Ref
Reference to the TaxCode for this item. 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.
TaxInclusiveAmtJSONOptionalThe total amount of the line items including tax.
Decimal string
TaxInclusiveAmt (anyOf 1)JSONAlternative
TaxInclusiveAmt (anyOf 1) (anyOf 1)numberAlternative
TaxInclusiveAmt (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
TaxInclusiveAmt (anyOf 2)stringAlternative

Referenced models: Read a journalentry — response body — Journal Entry Line item Amount, Custom Extensions, Description, Detail Type, Id, Journal Entry Line Detail, Line Num, Project Ref Journal Entry Line Detail Entity, Read an item — response body — Item Class Ref

Read a journalentry — response body — Journal Entry Line item Amount, Custom Extensions, Description, Detail Type, Id, Journal Entry Line Detail, Line Num, Project Ref Journal Entry Line Detail Entity

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
EntityRefModelOptionalExpand Read an item — response body — Item Class Ref
Query the corresponding name list resource as specified by Entity to determine the appropriate object for this reference. Use the Id and DisplayName values from that object for EntityRef.value and EntityRef.name , respectively.
TypestringOptionalObject type. Output only. Valid values are Vendor , Employee , or Customer .

Referenced models: Read an item — response body — Item Class Ref

Report an issue with this page

Necessary

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

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

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

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

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