QuickBooks: Changeorder schemas
5 QuickBooks schemas with complete fields and constraints.
← Changeorder operations · All schemas
Create a change order — 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. For Invoice objects in global locales: when updating Amount , remove the TxnTaxDetail element in the object before submitting it in the update request payload. 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 SalesItemLineDetail for this type of line. |
Id | string | Optional | The 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 |
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]+)?$ |
SalesItemLineDetail | Model | Required within parent | Expand Create a change order — request body — body Line item Sales Item Line Detail |
Referenced models: Create an item — request body — body Custom Extensions item, Create a change order — request body — body Line item Sales Item Line Detail
Create a change order — request body — body Line item Sales Item 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 for the line item. Available if Preferences.AccountingInfoPrefs.ClassTrackingPerLine 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. |
ItemAccountRef | Model | Optional | Expand Create a purchase order — request body — body Ship To Available with invoice objects, only, and when there is a linkedtxn of type ReimburseCharge for this object. When ItemRef.Id is set to 1, ItemAccountRef maps to the reimbursable charge account. |
ItemRef | Model | Optional | Expand Create a purchase order — request body — body Ship To Reference to an Item object. Query the Item name list resource to determine the appropriate Item object for this reference. Use Item.Id and Item.Name from that object for ItemRef.value and ItemRef.name , respectively. Set ItemRef.value to SHIPPING_ITEM_ID when Line.amount represents transaction-wide shipping charges. Valid when Preferences.SalesFormsPrefs.AllowShipping is set to true . Set ItemRef.value to GRATUITY_ITEM_ID when Line.amount represents transaction-wide gratuity amount. Valid when Preferences.OtherPrefs.Name.SalesFormsPrefs.AllowGratuity is set to true . When a line lacks an ItemRef it is treated as documentation and the Line.Amount attribute is ignored. Applicable to invoice objects, only, and when linktxn specifies a ReimburseCharge . When Item.Id is set to 1, ItemAccountRef refers to reimburse expense account Id. |
MarkupInfo | Model | Optional | Expand Create a change order — request body — body Line item Sales Item Line Detail Markup Info Used to define markup when this line represents a billable expense on the invoice. Markup information for the billable expense line. |
Qty | JSON | Optional | Number of items for the line. Decimal string |
Qty (anyOf 1) | number | Alternative | |
Qty (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?$ |
ServiceDate | string | Optional | Date when the service is performed. |
TaxClassificationRef | Model | Optional | Expand Create a purchase order — request body — body Ship To Reference to the TaxClassification for this item. Available for companies that have automated sales tax enabled. TaxClassificationRef.Name : Currently not populated. TaxClassificationRef.value : The system-defined Tax Classification code that is applied to this line item. For internal use only. Read only: true |
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 item including tax. Decimal string |
TaxInclusiveAmt (anyOf 1) | number | Alternative | |
TaxInclusiveAmt (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?$ |
UnitPrice | JSON | Optional | Unit price of the subject item as referenced by ItemRef . Corresponds to the Rate column on the QuickBooks Online UI to specify either unit price, a discount, or a tax rate for item. If used for unit price, the monetary value of the service or product, as expressed in the home currency. You can override the unit price of the subject item by supplying a new value with create or update operations. If used for a discount or tax rate, express the percentage as a fraction. For example, specify 0.4 for 40% tax. Decimal string |
UnitPrice (anyOf 1) | number | Alternative | |
UnitPrice (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?$ |
Referenced models: Create a change order — request body — body Line item Sales Item Line Detail Markup Info, Create a purchase order — request body — body Ship To
Create a change order — request body — body Line item Sales Item Line Detail Markup Info
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
MarkUpIncomeAccountRef | Model | Optional | Expand Create a purchase order — request body — body Ship To The account associated with the markup. Available with invoice objects, only, and when linktxn specified a ReimburseCharge . Read only: true |
Percent | JSON | Optional | Markup amount expressed as a percent of charges already entered in the current transaction. To enter a rate of 10% use 10.0, not 0.01. Decimal string |
Percent (anyOf 1) | number | Alternative | |
Percent (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?$ |
PriceLevelRef | Model | Optional | Expand Create a purchase order — request body — body Ship To Reference to a PriceLevel for the markup. Support for this element will be available in the coming months. |
Referenced models: Create a purchase order — request body — body Ship To
Delete a change order — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
AcceptedBy | string | Optional | Name of the customer or representative who accepted the change order. Populated when TxnStatus is set to Accepted . |
AcceptedDate | string | Optional | Date the change order was accepted. Populated when TxnStatus is set to Accepted . |
ApplyTaxAfterDiscount | JSON | Optional | If false or null, sales tax is calculated first and then any discount is applied. If true , the discount is subtracted first and then sales tax is calculated. |
ApplyTaxAfterDiscount (anyOf 1) | boolean | Alternative | |
ApplyTaxAfterDiscount (anyOf 2) | string | Alternative | One of: true, false |
ApplyTaxAfterDiscount (anyOf 3) | null | Alternative | |
BillEmail | Model | Optional | Expand Full update companyinfo — request body — body Email Email address where the change order is sent. Required when EmailStatus is set to NeedToSend . Conditionally required |
CustomerMemo | Model | Optional | Expand Void an invoice — request body — body Customer Memo User-entered message to the customer; visible on the Change Order document sent to the customer. |
CustomerRef | Model | Optional | Expand Create a purchase order — request body — body Ship To Reference to the customer associated with this change order. Must match the customer on the parent project estimate. Use Customer.Id and Customer.DisplayName from the Customer object for CustomerRef.value and CustomerRef.name , respectively. |
DocNumber | JSON | Optional | Reference number for the change order (for example, CO-001 ). If not provided, the value is null. |
DocNumber (anyOf 1) | string | Alternative | |
DocNumber (anyOf 2) | null | Alternative | |
EmailStatus | string | Optional | Email status of the change order. Valid values: NotSet , NeedToSend , EmailSent . |
ExpirationDate | string | Optional | Date by which the change order must be accepted before it expires. |
Id | string | Required within parent | |
Line | array | Optional | Individual line items describing the work being added or removed. Supports SalesItemLineDetail and SubTotalLineDetail line types. Every line must include a LinkedTxn array referencing the parent project estimate with TxnType: "Estimate" . All lines must reference the same parent estimate. The Line array uses full-replace behavior on update — lines omitted from an update request are deleted. |
Line[] | JSON | Each item | |
Line[] (anyOf 1) | Model | Alternative | Expand Create a change order — request body — body Line item |
Line[] (anyOf 2) | Model | Alternative | Expand Void an invoice — request body — body Line item Amount, Description, Detail Type, Id, Line Num, Sub Total Line Detail |
Line[] (anyOf 3) | Model | Alternative | Expand Void an invoice — request body — body Line item Amount, Description, Detail Type, Discount Line Detail, Id, Line Num |
Line[] (anyOf 4) | Model | Alternative | Expand Void an invoice — request body — body Line item Amount, Description, Description Line Detail, Detail Type, Id, Line Num |
LinkedTxn | array | Optional | One or more linked transaction references at the header level, reflecting the parent project estimate. Also appears on each line item. Use LinkedTxn.TxnId as the ID in a separate Estimate read request to retrieve details of the linked object. TxnType must always be Estimate . |
LinkedTxn[] | Model | Each item | Expand Create a bill — request body — body Linked Txn item |
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. |
PrintStatus | string | Optional | Printing status of the change order. Valid values: NotSet , NeedToPrint , PrintComplete . |
PrivateNote | string | Optional | Organization-private note about the change order. This note does not appear on documents sent to the customer. |
ProjectRef | Model | Optional | Expand Create a purchase order — request body — body Ship To Reference to the project this change order belongs to. Must reference an active project. Without a valid ProjectRef , the change order will not appear in the Projects dashboard. |
SyncToken | string | Required within parent | |
TotalAmt | JSON | Optional | Total amount of the transaction including all line charges and taxes. Calculated by QuickBooks business logic from the sum of all line Amount values plus applicable tax. Do not include in create or update request bodies; any value supplied is overwritten. Decimal string Read only: true |
TotalAmt (anyOf 1) | number | Alternative | |
TotalAmt (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?$ |
TotalCostAmount | JSON | Optional | Total cost amount of the transaction, calculated from the sum of all line CostAmount values. Calculated by QuickBooks business logic; any value supplied is overwritten. Decimal string Read only: true |
TotalCostAmount (anyOf 1) | number | Alternative | |
TotalCostAmount (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 not supplied, the current date on the server is used. Sort order is ASC by default. |
TxnStatus | string | Optional | Current status of the change order. Valid values: Pending (default — created but not yet reviewed), Accepted (customer approved; project contracted total increases accordingly), Closed (converted to an Invoice or manually closed), Rejected (customer declined; does not affect project total). |
TxnTaxDetail | Model | Optional | Expand Create a bill — request body — body Txn Tax Detail Tax details for the transaction. Captures sales taxes calculated based on tax codes referenced by the transaction lines. |
id | string | Optional | Unique identifier for this object. Read only: true |
domain | string | Optional | |
sparse | boolean | Optional |
Referenced models: Full update companyinfo — request body — body Email, Read a bill — response body — Bill Meta Data, Void an invoice — request body — body Line item Amount, Description, Description Line Detail, Detail Type, Id, Line Num, Void an invoice — request body — body Line item Amount, Description, Detail Type, Discount Line Detail, Id, Line Num, Create a bill — request body — body Linked Txn item, Void an invoice — request body — body Customer Memo, Create a purchase order — request body — body Ship To, Create a change order — request body — body Line item, Void an invoice — request body — body Line item Amount, Description, Detail Type, Id, Line Num, Sub Total Line Detail, Create a bill — request body — body Txn Tax Detail
Read a change order — response body — Change Order
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
AcceptedBy | string | Optional | Name of the customer or representative who accepted the change order. Populated when TxnStatus is set to Accepted . |
AcceptedDate | string | Optional | Date the change order was accepted. Populated when TxnStatus is set to Accepted . |
ApplyTaxAfterDiscount | JSON | Optional | If false or null, sales tax is calculated first and then any discount is applied. If true , the discount is subtracted first and then sales tax is calculated. |
ApplyTaxAfterDiscount (anyOf 1) | boolean | Alternative | |
ApplyTaxAfterDiscount (anyOf 2) | string | Alternative | Known values: true, false |
ApplyTaxAfterDiscount (anyOf 3) | null | Alternative | |
BillEmail | Model | Optional | Expand Full update companyinfo — request body — body Email Email address where the change order is sent. Required when EmailStatus is set to NeedToSend . Conditionally required |
CustomerMemo | Model | Optional | Expand Read an invoice — response body — Invoice Customer Memo User-entered message to the customer; visible on the Change Order document sent to the customer. |
CustomerRef | Model | Optional | Expand Read an item — response body — Item Class Ref Reference to the customer associated with this change order. Must match the customer on the parent project estimate. Use Customer.Id and Customer.DisplayName from the Customer object for CustomerRef.value and CustomerRef.name , respectively. |
DocNumber | JSON | Optional | Reference number for the change order (for example, CO-001 ). If not provided, the value is null. |
DocNumber (anyOf 1) | string | Alternative | |
DocNumber (anyOf 2) | null | Alternative | |
EmailStatus | string | Optional | Email status of the change order. Valid values: NotSet , NeedToSend , EmailSent . |
ExpirationDate | string | Optional | Date by which the change order must be accepted before it expires. |
Id | string | Optional | Unique identifier for this object. Read only: true |
Line | array | Optional | Individual line items describing the work being added or removed. Supports SalesItemLineDetail and SubTotalLineDetail line types. Every line must include a LinkedTxn array referencing the parent project estimate with TxnType: "Estimate" . All lines must reference the same parent estimate. The Line array uses full-replace behavior on update — lines omitted from an update request are deleted. |
Line[] | JSON | Each item | |
Line[] (anyOf 1) | Model | Alternative | Expand Read an invoice — response body — Invoice Line item Amount, Custom Extensions, Description, Detail Type, Id, Line Num, Sales Item Line Detail |
Line[] (anyOf 2) | Model | Alternative | Expand Read an invoice — response body — Invoice Line item Amount, Description, Detail Type, Id, Line Num, Sub Total Line Detail |
Line[] (anyOf 3) | Model | Alternative | Expand Read an invoice — response body — Invoice Line item Amount, Description, Detail Type, Discount Line Detail, Id, Line Num |
Line[] (anyOf 4) | Model | Alternative | Expand Read an invoice — response body — Invoice Line item Amount, Description, Description Line Detail, Detail Type, Id, Line Num |
LinkedTxn | array | Optional | One or more linked transaction references at the header level, reflecting the parent project estimate. Also appears on each line item. Use LinkedTxn.TxnId as the ID in a separate Estimate read request to retrieve details of the linked object. TxnType must always be Estimate . |
LinkedTxn[] | Model | Each item | Expand Read a bill — response body — Bill Linked Txn item |
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. |
PrintStatus | string | Optional | Printing status of the change order. Valid values: NotSet , NeedToPrint , PrintComplete . |
PrivateNote | string | Optional | Organization-private note about the change order. This note does not appear on documents sent to the customer. |
ProjectRef | Model | Optional | Expand Read an item — response body — Item Class Ref Reference to the project this change order belongs to. Must reference an active project. Without a valid ProjectRef , the change order will not appear in the Projects dashboard. |
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 fail. Only the latest version of the object is maintained by QuickBooks Online. Read only: true |
TotalAmt | JSON | Optional | Total amount of the transaction including all line charges and taxes. Calculated by QuickBooks business logic from the sum of all line Amount values plus applicable tax. Do not include in create or update request bodies; any value supplied is overwritten. 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 | |
TotalCostAmount | JSON | Optional | Total cost amount of the transaction, calculated from the sum of all line CostAmount values. Calculated by QuickBooks business logic; any value supplied is overwritten. Decimal string Read only: true |
TotalCostAmount (anyOf 1) | JSON | Alternative | |
TotalCostAmount (anyOf 1) (anyOf 1) | number | Alternative | |
TotalCostAmount (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
TotalCostAmount (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 not supplied, the current date on the server is used. Sort order is ASC by default. |
TxnStatus | string | Optional | Current status of the change order. Valid values: Pending (default — created but not yet reviewed), Accepted (customer approved; project contracted total increases accordingly), Closed (converted to an Invoice or manually closed), Rejected (customer declined; does not affect project total). |
TxnTaxDetail | Model | Optional | Expand Read a bill — response body — Bill Txn Tax Detail Tax details for the transaction. Captures sales taxes calculated based on tax codes referenced by the transaction lines. |
Referenced models: Read an invoice — response body — Invoice Line item Amount, Description, Description Line Detail, Detail Type, Id, Line Num, Read an invoice — response body — Invoice Line item Amount, Description, Detail Type, Discount Line Detail, Id, Line Num, Full update companyinfo — request body — body Email, Read a bill — response body — Bill Linked Txn item, Read an invoice — response body — Invoice Customer Memo, Read a bill — response body — Bill Meta Data, Read an item — response body — Item Class Ref, Read an invoice — response body — Invoice Line item Amount, Custom Extensions, Description, Detail Type, Id, Line Num, Sales Item Line Detail, Read an invoice — response body — Invoice Line item Amount, Description, Detail Type, Id, Line Num, Sub Total Line Detail, Read a bill — response body — Bill Txn Tax Detail