Search Results hz_cust_accounts
Overview
HZ_CUST_ACCOUNTS is the foundational customer account table within the Oracle E-Business Suite Trading Community Architecture (TCA). Owned by the AR schema and validated in both release 12.1.1 and 12.2.2, it stores the account-level record for every customer relationship defined in the system. While HZ_PARTIES holds the underlying party — a person, organization, or group — the customer account represents the specific business relationship that a party maintains with the selling enterprise. A single party may therefore own multiple customer accounts, each carrying its own account number, credit terms, profile settings, and transaction history.
In the ETRM metadata, HZ_CUST_ACCOUNTS is classified heuristically as a hub in Data Vault modeling terms. This is a sensible suggestion: the table is the central anchor to which a very large number of dependent transactional and profile tables attach via CUST_ACCOUNT_ID. Its surrogate primary key, defined by HZ_CUST_ACCOUNTS_PK, is CUST_ACCOUNT_ID.
Key Information Stored
The table contains 139 documented columns. The most operationally significant include:
- CUST_ACCOUNT_ID — the surrogate primary key, generated for each customer account record and used as the foreign key by virtually every downstream table.
- PARTY_ID — foreign key to HZ_PARTIES, linking the account to its owning party.
- ACCOUNT_NUMBER — the user-facing customer number; a business-key candidate enforced by unique index HZ_CUST_ACCOUNTS_U2.
- ORIG_SYSTEM_REFERENCE — the account identifier from a legacy or external source system; a business-key candidate under unique index HZ_CUST_ACCOUNTS_U3, used during data migration and integration.
- STATUS, ACCT_LIFE_CYCLE_STATUS, ACCOUNT_ACTIVATION_DATE, and ACCOUNT_TERMINATION_DATE — govern whether the account is active and its lifecycle window.
- CUSTOMER_TYPE and CUSTOMER_CLASS_CODE — classify the relationship (for example, external versus internal, and the customer class used for reporting and pricing).
- PAYMENT_TERM_ID — foreign key to PN_PAYMENT_TERMS_ALL, defining default payment terms.
- ORDER_TYPE_ID — foreign key to SO_ORDER_TYPES_115_ALL, defining the default order type.
- PRICE_LIST_ID, SALES_CHANNEL_CODE, and PRIMARY_SALESREP_ID — commercial attributes controlling pricing and sales attribution.
- CURRENT_BALANCE — the running account balance used in credit and collections analysis.
- ACCOUNT_NAME and DEPARTMENT — descriptive identifiers.
- ORG_ID and OBJECT_VERSION_NUMBER — multi-org security context and optimistic locking.
- Attribute and global attribute flexfields (ATTRIBUTE1–20, GLOBAL_ATTRIBUTE1–20) — extend the table without schema changes.
The three unique indexes (U1 on CUST_ACCOUNT_ID, U2 on ACCOUNT_NUMBER, U3 on ORIG_SYSTEM_REFERENCE) distinguish the surrogate key from the two documented business-key candidates.
Common Use Cases and Queries
Because HZ_CUST_ACCOUNTS is the hub of the customer model, it is joined in nearly every receivables, order management, and collections report. A typical pattern retrieves the account together with its party and site:
- Resolving an account number to a surrogate key:
SELECT cust_account_id FROM hz_cust_accounts WHERE account_number = :p_account_number. - Joining to the party to obtain the customer name:
SELECT a.account_number, p.party_name FROM hz_cust_accounts a, hz_parties p WHERE a.party_id = p.party_id. - Locating accounts that are inactive:
SELECT account_number FROM hz_cust_accounts WHERE status = 'I'. - Reporting open balances by account: joining to AR_PAYMENT_SCHEDULES_ALL or AR_CUSTOMER_TRX_ALL on the customer ID columns to aggregate outstanding amounts.
- Migrating legacy customers: querying on ORIG_SYSTEM_REFERENCE to reconcile loaded accounts against the source system.
- Collections and credit exposure: joining to AR_CREDIT_HISTORIES for aging and current-balance analysis.
Related Objects
The FK relationship data shows HZ_CUST_ACCOUNTS as the target of an extensive set of dependencies. The most significant include:
- HZ_PARTIES — parent party record, joined on PARTY_ID and SELLING_PARTY_ID.
- HZ_CUST_ACCT_SITES_ALL — customer sites (addresses and site uses), joined on CUST_ACCOUNT_ID.
- HZ_CUST_ACCOUNT_ROLES — role assignments such as bill-to and ship-to contacts, joined on CUST_ACCOUNT_ID.
- HZ_CUSTOMER_PROFILES — TCA profile settings including credit and statement options, joined on CUST_ACCOUNT_ID.
- HZ_CUST_ACCT_RELATE_ALL — self-referencing relationships between accounts via CUST_ACCOUNT_ID and RELATED_CUST_ACCOUNT_ID.
- RA_CUSTOMER_TRX_ALL — receivables transactions, joined on BILL_TO_CUSTOMER_ID, SHIP_TO_CUSTOMER_ID, and PAYING_CUSTOMER_ID.
- AR_PAYMENT_SCHEDULES_ALL and AR_CASH_RECEIPTS_ALL — payment and receipt data, joined on CUSTOMER_ID and pay-from columns.
- OE_ORDER_HEADERS_ALL — order management transactions through END_CUSTOMER_ID.
- HZ_BILLING_PREFERENCES and HZ_CUST_PROFILE_AMTS — billing and profile amount configuration, joined on CUST_ACCOUNT_ID.
Through these relationships, HZ_CUST_ACCOUNTS serves as the authoritative anchor for customer identity and account structure across the entire EBS application suite.
-
Table: HZ_CUST_ACCOUNTS
12.1.1
owner:AR, object_type:TABLE, fnd_design_data:AR.HZ_CUST_ACCOUNTS, object_name:HZ_CUST_ACCOUNTS, status:VALID, product: AR - Receivables , description: Stores information about customer accounts. , implementation_dba_data: AR.HZ_CUST_ACCOUNTS ,
-
Table: HZ_CUST_ACCOUNTS
12.2.2
owner:AR, object_type:TABLE, fnd_design_data:AR.HZ_CUST_ACCOUNTS, object_name:HZ_CUST_ACCOUNTS, status:VALID, product: AR - Receivables , description: Stores information about customer accounts. , implementation_dba_data: AR.HZ_CUST_ACCOUNTS ,
-
Table: RA_INTERFACE_LINES_ALL
12.2.2
owner:AR, object_type:TABLE, fnd_design_data:AR.RA_INTERFACE_LINES_ALL, object_name:RA_INTERFACE_LINES_ALL, status:VALID, product: AR - Receivables , description: Information for each invoice line imported using AutoInvoice , implementation_dba_data: AR.RA_INTERFACE_LINES_ALL ,
-
Table: OE_LINE_ACKS
12.2.2
owner:ONT, object_type:TABLE, fnd_design_data:ONT.OE_LINE_ACKS, object_name:OE_LINE_ACKS, status:VALID, product: ONT - Order Management , description: This table stores information about the acknowledgements for Order Lines. , implementation_dba_data: ONT.OE_LINE_ACKS ,
-
Table: OE_LINE_ACKS
12.1.1
owner:ONT, object_type:TABLE, fnd_design_data:ONT.OE_LINE_ACKS, object_name:OE_LINE_ACKS, status:VALID, product: ONT - Order Management , description: This table stores information about the acknowledgements for Order Lines. , implementation_dba_data: ONT.OE_LINE_ACKS ,
-
Table: OE_HEADER_ACKS
12.1.1
owner:ONT, object_type:TABLE, fnd_design_data:ONT.OE_HEADER_ACKS, object_name:OE_HEADER_ACKS, status:VALID, product: ONT - Order Management , description: This tables stores information about the acknowledgements for Order Headers. , implementation_dba_data: ONT.OE_HEADER_ACKS ,
-
Table: OE_HEADER_ACKS
12.2.2
owner:ONT, object_type:TABLE, fnd_design_data:ONT.OE_HEADER_ACKS, object_name:OE_HEADER_ACKS, status:VALID, product: ONT - Order Management , description: This tables stores information about the acknowledgements for Order Headers. , implementation_dba_data: ONT.OE_HEADER_ACKS ,
-
Table: RA_INTERFACE_LINES_ALL
12.1.1
owner:AR, object_type:TABLE, fnd_design_data:AR.RA_INTERFACE_LINES_ALL, object_name:RA_INTERFACE_LINES_ALL, status:VALID, product: AR - Receivables , description: Information for each invoice line imported using AutoInvoice , implementation_dba_data: AR.RA_INTERFACE_LINES_ALL ,
-
VIEW: APPS.OKS_AUTH_PARTYACCTS_V
12.2.2
-
VIEW: APPS.XNB_SALESORDER_ACCOUNTS_V
12.1.1
-
VIEW: APPS.XNB_SALESORDER_ACCOUNTS_V
12.2.2
-
APPS.OZF_QP_QUAL_PVT SQL Statements
12.1.1
-
VIEW: APPS.OKS_AUTH_PARTYACCTS_V
12.1.1
-
Table: OE_LINES_IFACE_ALL
12.2.2
owner:ONT, object_type:TABLE, fnd_design_data:ONT.OE_LINES_IFACE_ALL, object_name:OE_LINES_IFACE_ALL, status:VALID, product: ONT - Order Management , description: This is a multi-org table for sales order lines open interface. , implementation_dba_data: ONT.OE_LINES_IFACE_ALL ,
-
APPS.CSC_SERVICE_KEY_PVT SQL Statements
12.2.2
-
APPS.CSC_SERVICE_KEY_PVT SQL Statements
12.1.1
-
Table: OE_LINES_IFACE_ALL
12.1.1
owner:ONT, object_type:TABLE, fnd_design_data:ONT.OE_LINES_IFACE_ALL, object_name:OE_LINES_IFACE_ALL, status:VALID, product: ONT - Order Management , description: This is a multi-org table for sales order lines open interface. , implementation_dba_data: ONT.OE_LINES_IFACE_ALL ,
-
VIEW: APPS.LNS_LOAN_INFO
12.2.2
-
VIEW: APPS.AR_CUSTOMER_SEARCH_V
12.1.1
-
VIEW: APPS.IEX_CUST_ACCOUNTS_V
12.2.2
-
VIEW: APPS.OZF_FUNDS_PAID_V
12.1.1
-
VIEW: APPS.AR_CUSTOMER_SEARCH_V
12.2.2
-
VIEW: APPS.MST_CUST_CUST_INCOMP_V
12.1.1
-
VIEW: APPS.AR_CORRECT_GL_LINES_V
12.2.2
-
VIEW: APPS.IEX_CUST_ACCOUNTS_V
12.1.1
-
VIEW: APPS.CSD_CUSTOMER_DETAILS_V
12.2.2
-
VIEW: APPS.CS_SR_HZ_CUST_CONT_V
12.2.2
-
VIEW: APPS.OZF_RESALE_HEADERS_V
12.1.1
-
VIEW: APPS.AR_CORRECT_GL_LINES_V
12.1.1
-
VIEW: APPS.OKL_BATCH_RECEIPTS_SUMMARY_UV
12.2.2
-
VIEW: APPS.CSD_CUSTOMER_DETAILS_V
12.1.1
-
VIEW: APPS.CS_SR_HZ_CUST_CONT_V
12.1.1
-
APPS.PV_SEED_DERIVED_PKG SQL Statements
12.2.2
-
APPS.IBY_FNDCPT_COMMON_PUB SQL Statements
12.1.1
-
VIEW: APPS.OZF_FUNDS_PAID_V
12.2.2
-
VIEW: APPS.HZ_CUST_ACCOUNTS_DFV
12.1.1
-
APPS.OE_CREATE_ACCOUNT_INFO SQL Statements
12.1.1
-
VIEW: APPS.OE_AK_END_CUS_V
12.1.1
-
APPS.IBY_EVAL_AR_FACTORS_PKG SQL Statements
12.2.2
-
APPS.IBY_EVAL_AR_FACTORS_PKG SQL Statements
12.1.1
-
APPS.IBU_HOME_PAGE_PVT SQL Statements
12.2.2
-
VIEW: APPS.ARI_CUSTOMER_SEARCH_V
12.1.1
-
Table: PA_DRAFT_INVOICES_ALL
12.2.2
owner:PA, object_type:TABLE, fnd_design_data:PA.PA_DRAFT_INVOICES_ALL, object_name:PA_DRAFT_INVOICES_ALL, status:VALID, product: PA - Projects , description: Information about draft invoices generated for projects , implementation_dba_data: PA.PA_DRAFT_INVOICES_ALL ,
-
VIEW: APPS.OZF_RESALE_HEADERS_V
12.2.2
-
VIEW: APPS.OE_AK_END_CUS_V
12.2.2
-
VIEW: APPS.OKL_BATCH_RECEIPTS_SUMMARY_UV
12.1.1
-
VIEW: APPS.QPR_SR_OM_QUOTE_LINES_V
12.1.1
-
APPS.OZF_QP_QUAL_PVT SQL Statements
12.2.2
-
Table: PA_DRAFT_INVOICES_ALL
12.1.1
owner:PA, object_type:TABLE, fnd_design_data:PA.PA_DRAFT_INVOICES_ALL, object_name:PA_DRAFT_INVOICES_ALL, status:VALID, product: PA - Projects , description: Information about draft invoices generated for projects , implementation_dba_data: PA.PA_DRAFT_INVOICES_ALL ,
-
APPS.PV_SEED_DERIVED_PKG SQL Statements
12.1.1