QuickBooks: Journalentry schemas
8 QuickBooks schemas with complete fields and constraints.
← Journalentry operations · All schemas
Create a journalentry — request body — body Line item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
Amount | JSON | Required within parent | The amount of the line item. Decimal string |
Amount (anyOf 1) | number | Alternative | |
Amount (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?$ |
CustomExtensions | array | Optional | Array 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[] | Model | Each item | Expand Create an item — request body — body Custom Extensions item |
Description | string | Optional | Free form text description of the line item that appears in the printed record. |
DetailType | string | Required within parent | Set to JournalEntryLineDetail for this type of line. |
Id | string | Optional | The 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 |
JournalEntryLineDetail | Model | Required within parent | Expand Create a journalentry — request body — body Line item Journal Entry Line Detail |
LineNum | JSON | Optional | Specifies the position of the line in the collection of transaction lines. Positive integer Decimal string |
LineNum (anyOf 1) | number | Alternative | |
LineNum (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?$ |
ProjectRef | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
AccountRef | Model | Required within parent | Expand 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. |
BillableStatus | string | Optional | The 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 |
ClassRef | Model | Optional | Expand 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. |
DepartmentRef | Model | Optional | Expand 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. |
Entity | Model | Optional | Expand 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 |
PostingType | string | Required within parent | Indicates whether this JournalEntry line is a debit or credit. Valid values: Credit , Debit |
TaxAmount | JSON | Optional | Tax amount of the line. Decimal string |
TaxAmount (anyOf 1) | number | Alternative | |
TaxAmount (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?$ |
TaxApplicableOn | string | Optional | Indicates whether the tax applicable on the line is sales or purchase. Valid value: Sales , Purchase . Required if TaxCodeRef is specified Conditionally required |
TaxCodeRef | Model | Optional | Expand 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. |
TaxInclusiveAmt | JSON | Optional | The total amount of the line items including tax. Decimal string |
TaxInclusiveAmt (anyOf 1) | number | Alternative | |
TaxInclusiveAmt (anyOf 2) | string | Alternative | Pattern: ^-?[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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
EntityRef | Model | Required within parent | Expand 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. |
Type | string | Optional | Object 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
Adjustment | JSON | Optional | Indicates whether this transaction is a journal entry adjustment. |
Adjustment (anyOf 1) | boolean | Alternative | |
Adjustment (anyOf 2) | string | Alternative | One of: true, false |
CurrencyRef | Model | Optional | Expand 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 |
DocNumber | JSON | Optional | Reference 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) | string | Alternative | |
DocNumber (anyOf 2) | null | Alternative | |
ExchangeRate | JSON | Optional | The 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) | number | Alternative | |
ExchangeRate (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?$ |
GlobalTaxCalculation | string | Optional | Method in which tax is applied. Allowed values are: TaxExcluded , TaxInclusive . Not applicable to US companies; required for non-US companies. Conditionally required |
HomeTotalAmt | JSON | Optional | The 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) | number | Alternative | |
HomeTotalAmt (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?$ |
Id | string | Required within parent | |
Line | array | Optional | Individual 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[] | JSON | Each item | |
Line[] (anyOf 1) | Model | Alternative | Expand Create a journalentry — request body — body Line item |
Line[] (anyOf 2) | Model | Alternative | Expand Void an invoice — request body — body Line item Amount, Description, Description Line Detail, Detail Type, Id, Line Num |
MetaData | Model | Optional | Expand 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. |
PrivateNote | string | Optional | User entered, organization-private note about the transaction. |
RecurDataRef | Model | Optional | Expand 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 |
SyncToken | string | Required within parent | |
TaxRateRef | Model | Optional | Expand 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. |
TotalAmt | JSON | Optional | The 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) | number | Alternative | |
TotalAmt (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?$ |
TxnDate | string | Optional | The 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. |
TxnTaxDetail | Model | Optional | Expand 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. |
id | string | Optional | Unique identifier for this object. Read only: true |
domain | string | Optional | |
sparse | boolean | Optional |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
Adjustment | JSON | Optional | Indicates whether this transaction is a journal entry adjustment. |
Adjustment (anyOf 1) | boolean | Alternative | |
Adjustment (anyOf 2) | string | Alternative | Known values: true, false |
CurrencyRef | Model | Optional | Expand 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 |
DocNumber | JSON | Optional | Reference 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) | string | Alternative | |
DocNumber (anyOf 2) | null | Alternative | |
ExchangeRate | JSON | Optional | The 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) | JSON | Alternative | |
ExchangeRate (anyOf 1) (anyOf 1) | number | Alternative | |
ExchangeRate (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
ExchangeRate (anyOf 2) | string | Alternative | |
GlobalTaxCalculation | string | Optional | Method in which tax is applied. Allowed values are: TaxExcluded , TaxInclusive . Not applicable to US companies; required for non-US companies. Conditionally required |
HomeTotalAmt | JSON | Optional | The 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) | JSON | Alternative | |
HomeTotalAmt (anyOf 1) (anyOf 1) | number | Alternative | |
HomeTotalAmt (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
HomeTotalAmt (anyOf 2) | string | Alternative | |
Id | string | Optional | Unique identifier for this object. Read only: true |
Line | array | Optional | Individual 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[] | JSON | Each item | |
Line[] (anyOf 1) | Model | Alternative | Expand 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) | Model | Alternative | Expand Read an invoice — response body — Invoice Line item Amount, Description, Description Line Detail, Detail Type, Id, Line Num |
MetaData | Model | Optional | Expand 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. |
PrivateNote | string | Optional | User entered, organization-private note about the transaction. |
RecurDataRef | Model | Optional | Expand 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 |
SyncToken | string | Optional | Version 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 |
TaxRateRef | Model | Optional | Expand 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. |
TotalAmt | JSON | Optional | The 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) | JSON | Alternative | |
TotalAmt (anyOf 1) (anyOf 1) | number | Alternative | |
TotalAmt (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
TotalAmt (anyOf 2) | string | Alternative | |
TxnDate | string | Optional | The 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. |
TxnTaxDetail | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
Amount | JSON | Optional | The amount of the line item. Decimal string |
Amount (anyOf 1) | JSON | Alternative | |
Amount (anyOf 1) (anyOf 1) | number | Alternative | |
Amount (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Amount (anyOf 2) | string | Alternative | |
CustomExtensions | array | Optional | Array 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[] | Model | Each item | Expand Read an item — response body — Item Custom Extensions item |
Description | string | Optional | Free form text description of the line item that appears in the printed record. |
DetailType | string | Optional | Set to JournalEntryLineDetail for this type of line. |
Id | string | Optional | The 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 |
JournalEntryLineDetail | Model | Optional | Expand 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 |
LineNum | JSON | Optional | Specifies the position of the line in the collection of transaction lines. Positive integer Decimal string |
LineNum (anyOf 1) | JSON | Alternative | |
LineNum (anyOf 1) (anyOf 1) | number | Alternative | |
LineNum (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
LineNum (anyOf 2) | string | Alternative | |
ProjectRef | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
AccountRef | Model | Optional | Expand 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. |
BillableStatus | string | Optional | The 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 |
ClassRef | Model | Optional | Expand 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. |
DepartmentRef | Model | Optional | Expand 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. |
Entity | Model | Optional | Expand 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 |
PostingType | string | Optional | Indicates whether this JournalEntry line is a debit or credit. Valid values: Credit , Debit |
TaxAmount | JSON | Optional | Tax amount of the line. Decimal string |
TaxAmount (anyOf 1) | JSON | Alternative | |
TaxAmount (anyOf 1) (anyOf 1) | number | Alternative | |
TaxAmount (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
TaxAmount (anyOf 2) | string | Alternative | |
TaxApplicableOn | string | Optional | Indicates whether the tax applicable on the line is sales or purchase. Valid value: Sales , Purchase . Required if TaxCodeRef is specified Conditionally required |
TaxCodeRef | Model | Optional | Expand 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. |
TaxInclusiveAmt | JSON | Optional | The total amount of the line items including tax. Decimal string |
TaxInclusiveAmt (anyOf 1) | JSON | Alternative | |
TaxInclusiveAmt (anyOf 1) (anyOf 1) | number | Alternative | |
TaxInclusiveAmt (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
TaxInclusiveAmt (anyOf 2) | string | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
EntityRef | Model | Optional | Expand 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. |
Type | string | Optional | Object type. Output only. Valid values are Vendor , Employee , or Customer . |
Referenced models: Read an item — response body — Item Class Ref