Skip to content

v_ai_items

Products and services catalog (inventory, non-inventory, service, group, category items)

  • Populated by: QuickBooks Online, QuickBooks Desktop, Xero, NetSuite

Columns

Name Type Nullable Allowed values Description
id character varying No — Kipper's internal row id, not the accounting system's id (that is source_id, where the view has one).
data_source_id character varying Yes — The entity (connected data source) this row belongs to. External IDs (source_id and the *_external_id columns) and company names are unique only within one entity, so join related rows on data_source_id as well as their external IDs.
source_id character varying Yes — The record's id in the accounting system; the join hints show which *_external_id columns point to it.
source_created_at timestamp with time zone Yes — Timestamp when this record was originally created in the source system. Preserves the original creation date from the accounting software.
source_updated_at timestamp with time zone Yes — Timestamp when this record was last modified in the source system. Used to detect changes and determine if re-sync is needed.
additional_detail_json jsonb Yes — Stores any additional details as JSON that do not fit into standard fields. Used for source-specific data or custom attributes.
last_synced_at timestamp with time zone Yes — Timestamp of the last sync operation that included this record. Used to detect stale records that may have been deleted in the source system.
name character varying Yes — Display name of the item as shown in the source system
type character varying Yes Service, Inventory, NonInventory, Group, Category Kipper normalized item type. This field is only partially normalized across providers: NetSuite item types are not yet mapped to this vocabulary, so values other than 'Service', 'Inventory', 'NonInventory', 'Group' and 'Category' may appear.
code character varying Yes — SKU or item code used to uniquely identify the item in the source system
is_active boolean No — Indicates whether the item is currently active and available for use in transactions
sales_description text Yes — Description of the item that appears on sales forms (invoices, sales receipts, etc.)
purchase_description text Yes — Description of the item that appears on purchase forms (bills, purchase orders, etc.)
purchase_price character varying Yes — Default purchase cost of the item when buying from vendors
parent_external_id character varying Yes — ID of the parent item in the source system.
income_account_external_id character varying Yes — ID of the income account in the source system.
expense_account_external_id character varying Yes — ID of the expense account in the source system.
asset_account_external_id character varying Yes — ID of the asset account in the source system.
class_external_id character varying Yes — ID of the class/department in the source system.

Joins

Relationships this view takes part in. External IDs are unique only within one connected entity, so every external-ID join matches on data_source_id as well.

  • v_ai_transaction_lines.item_external_id = v_ai_items.source_id AND v_ai_transaction_lines.data_source_id = v_ai_items.data_source_id

Across entities

A workspace can hold several connected companies. A query run across all of them returns rows from each, and external IDs (source_id and the *_external_id columns) and company names are unique only within one entity — so match on data_source_id too whenever you join or group.