pub struct Item {Show 35 fields
pub id: Option<String>,
pub sync_token: Option<String>,
pub meta_data: Option<MetaData>,
pub active: Option<bool>,
pub asset_account_ref: Option<NtRef>,
pub description: Option<String>,
pub domain: Option<String>,
pub expense_account_ref: Option<NtRef>,
pub fully_qualified_name: Option<String>,
pub income_account_ref: Option<NtRef>,
pub inv_start_date: Option<NaiveDate>,
pub sales_tax_included: Option<bool>,
pub sales_tax_code_ref: Option<NtRef>,
pub class_ref: Option<NtRef>,
pub source: Option<String>,
pub purchase_tax_included: Option<bool>,
pub reorder_point: Option<f64>,
pub purchase_dec: Option<String>,
pub pref_vendor_ref: Option<NtRef>,
pub purchase_tax_code_ref: Option<NtRef>,
pub purchase_cost: Option<f64>,
pub parent_ref: Option<NtRef>,
pub tax_classification_ref: Option<NtRef>,
pub item_category_type: Option<String>,
pub item_type: Option<ItemType>,
pub level: Option<i64>,
pub name: Option<String>,
pub purchase_desc: Option<String>,
pub qty_on_hand: Option<i64>,
pub sku: Option<String>,
pub sparse: Option<bool>,
pub sub_item: Option<bool>,
pub taxable: Option<bool>,
pub track_qty_on_hand: Option<bool>,
pub unit_price: Option<f64>,
}Expand description
Item
Represents a product or service that can be purchased or sold. Items determine posting accounts (income, expense, inventory) and pricing.
Creation requirements:
QBCreatable::can_create()returns true when:nameandexpense_account_refare present, and- for
ItemType::Inventory:income_account_ref,asset_account_ref,inv_start_date, andqty_on_handare present - for
ItemType::Service:income_account_refis present - for
ItemType::NonInventory: no additional fields beyondnameandexpense_account_ref - if
item_typeisNone:asset_account_refmust be present
Update semantics:
QBFullUpdatable::can_full_update()returns true whenhas_read()is true (ID + sync token) andnameis present.
API reference: https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/item
Fields§
§id: Option<String>§sync_token: Option<String>§meta_data: Option<MetaData>§active: Option<bool>If true, the object is currently enabled for use by QuickBooks.
asset_account_ref: Option<NtRef>Reference to the Inventory Asset account that tracks the current value of the inventory.
If the same account is used for all inventory items, the current balance of this account will represent the current total value of the inventory.
Query the Account name list resource to determine the appropriate Account object for this reference.
Use Account.id and Account.name from that object for AssetAccountRef.value and AssetAccountRef.name, respectively.
Required for Inventory item types.
description: Option<String>Description of the item.
- max character: maximum of 4000 chars
domain: Option<String>Documentation unavailable.
expense_account_ref: Option<NtRef>Reference to the expense account used to pay the vendor for this item.
Must be an account with account type of Cost of Goods Sold.
Query the Account name list resource to determine the appropriate Account object for this reference.
Use Account.id and Account.name from that object for ExpenseAccountRef.value and ExpenseAccountRef.name, respectively.
For France locales:
- This is an optional field.
- This is the purchase account id, If not provided it defaults to the default purchase account: 605100 and 601100 are the default expense accounts used for Service and Product type of item, respectively.
Required for Inventory, NonInventory, and Service item types
fully_qualified_name: Option<String>Fully qualified name of the entity. The fully qualified name prepends the topmost parent, followed by each sub element separated by colons. Takes the form of Item:SubItem. Returned from an existing object and not input on a new object. Limited to 5 levels.
- filterable
- read only
- system defined
income_account_ref: Option<NtRef>§inv_start_date: Option<NaiveDate>§sales_tax_included: Option<bool>§sales_tax_code_ref: Option<NtRef>§class_ref: Option<NtRef>§source: Option<String>§purchase_tax_included: Option<bool>§reorder_point: Option<f64>§purchase_dec: Option<String>§pref_vendor_ref: Option<NtRef>§purchase_tax_code_ref: Option<NtRef>§purchase_cost: Option<f64>§parent_ref: Option<NtRef>§tax_classification_ref: Option<NtRef>§item_category_type: Option<String>Classification that specifies the use of this item. Available when endpoint is evoked with the minorversion=3 query parameter. Read-only after object is created. Valid values include: Product and Service.
Applicable for France companies only.
item_type: Option<ItemType>§level: Option<i64>§name: Option<String>§purchase_desc: Option<String>§qty_on_hand: Option<i64>§sku: Option<String>§sparse: Option<bool>§sub_item: Option<bool>§taxable: Option<bool>§track_qty_on_hand: Option<bool>§unit_price: Option<f64>