Field Mapping Cheat Sheet
This page is the practical side-by-side reference for the most common BriteCore entities. It is meant to reduce the friction of translating between:
- raw CSV exports
- API objects and nested JSON payloads
- SQL/report views such as
v_*
The goal is not to list every possible field in every system. The goal is to show the common identifiers and the highest-value fields that are used for joins, lookups, and the first pass of reconstruction.
How to read this sheet
The same record often appears in three shapes:
- CSV: flat, raw, and split by concern
- API: nested object/payload with child arrays
- SQL/report: flattened, denormalized view
A very reliable rule is that the API and SQL/report layers usually match each other much more closely than either matches the raw CSV naming convention. The CSV layer tends to preserve legacy or export-style names such as contactId, claimNumber, and policyNumber, while the API and report layers usually normalize to contact_id, claim_number, and policy_number.
The key is usually the same across all three:
- base entity id
- business key or number
- parent/child linkage id
- date or status fields for the lifecycle
Core identifier patterns
These are the most important recurring patterns to remember:
contactId/contact_id/id→ contact identityclaimId/claim_id/id→ claim identityrevisionId/revision_id→ policy-term lineage anchorpolicyId/policy_id/policy_number→ policy identity and human-readable lookuppropertyId/property_id→ property/risk identitycontactId+claimIdin bridge tables → claim-to-contact relationship rowsrevisionId+contactIdin bridge tables → revision-to-contact relationship rows
Contacts
Most important fields
| Concern | CSV field names | API object pattern | SQL/report pattern |
|---|---|---|---|
| Contact id | contactId |
id |
contact_id |
| Name | name |
name |
contact_name |
| Type | type |
type |
contact_type |
| Agency fields | agencyNumber, producerNumber, vendorNumber |
agency_number, producer_number, vendor_number |
agency_number, producer_number, vendor_number |
noticeEmailId, confirmationEmail, claimActivityEmailId |
emails[], primary_email_id |
primary_email, user_email |
|
| Phone | phones are in a separate file; raw CSV phones.csv |
phones[] |
primary_phone, cell_phone, home_phone, work_phone |
| Address | addresses are split across addresses.csv |
addresses[] |
address_line_1, address_city, address_state, address_zip |
| Roles | systemTags, position |
roles[] with name values |
roles |
| Status | active, terminated, terminationReason |
is_agent, terminated, termination_reason |
deleted, agent_terminated, termination_reason |
| Timestamps | dateAdded, dateUpdated |
source_update_date, date_added / date_updated variants |
date_added, date_updated |
Typical contact reconstruction flow
From raw CSV:
- start with
contacts.csvfor the core record - then join to
addresses.csvoncontactId - then join to
phones.csvoncontactId - then join to
emails.csvoncontactId - relationship records may come from bridge or lookup files
From API:
- one call to
contacts.get_contact(contact_id=...) - nested arrays such as
addresses,phones,emails,roles
From SQL/report:
- base table:
v_contacts - one row per contact (
contact_id) - flattened communication and role fields
Example identity mapping
CSV: contactId = 00025e4c-af2e-4a1e-bdc6-3808ae83e7ce
API: id = 00025e4c-af2e-4a1e-bdc6-3808ae83e7ce
SQL: contact_id = 00025e4c-af2e-4a1e-bdc6-3808ae83e7ce
Claims
Most important fields
| Concern | CSV field names | API object pattern | SQL/report pattern |
|---|---|---|---|
| Claim id | id |
id |
claim_id |
| Claim number | claimNumber |
claim_number |
claim_number |
| Policy linkage | policyId, policyNumber, revisionId |
policy_id, policy_number, revision_id |
policy_number, revision_id, policy_type_id |
| Status | status |
status |
claim_status |
| Type | claimType |
claim_type |
claim_type |
| Loss date | lossDate |
loss_date |
loss_date |
| Date reported | dateReported |
date_reported |
date_reported |
| Location | lossAddressLine1, lossAddressCity, lossAddressState, lossAddressZip |
loss_address or nested location object |
loss_location_address_1, loss_location_address_city, loss_location_address_state |
| Catastrophe | catId |
catastrophe_id |
catastrophe_id, cat_code, cat_pcs |
| Description | description |
description |
description |
| Related records | claims_contacts.csv, claims_payments.csv, claims_perils.csv |
claim_contacts, claim_payments, claim_items endpoints |
v_claims_contacts, v_claim_payments, v_claim_items |
Typical claim reconstruction flow
From raw CSV:
claims.csvgives the claim master recordclaims_contacts.csvgives the people and parties on the claimclaims_payments.csvgives payment recordsclaims_payments_item_amounts.csvgives per-item payment detailclaims_perils.csvgives coverage/peril detailclaims_changes.csvgives the lifecycle or change trail
From API:
claims.get_claim(claim_id=...)orclaims.get_claim(claim_number=...)- then relationship calls like
get_claim_contacts,get_claim_payments
From SQL/report:
- base table:
v_claims - detail views:
v_claims_contacts,v_claim_payments,v_claim_items,v_claims_dates,v_claims_perils
Policies and revisions
Most important fields
| Concern | CSV field names | API object pattern | SQL/report pattern |
|---|---|---|---|
| Policy number | policyNumber |
policy_number |
policy_number |
| Policy id | policyId |
id or policy_id |
policy_id |
| Revision id | revisionId |
revision_id |
revision_id |
| Policy term id | policyTermId |
policy_term_id |
policy_term_id |
| Effective date | effectiveDate |
effective_date |
term_effective_date |
| Expiration date | expirationDate |
expiration_date |
term_expiration_date |
| Status | policyStatus |
status or policy_status |
policy_status |
| Billing | billingSchedule |
billing_schedule |
billing_schedule |
| Cancellation | cancelDate, policyCancellationReason |
cancellation data |
cancel_date, policy_cancellation_reason |
Typical policy/revision reconstruction flow
From raw CSV:
policies.csvgives the policy master identitypolicy_terms.csvgives term-level dates and renewal statusrevisions.csvgives revision lifecycle and policy status detail- related files such as
addresses.csv,phones.csv,mortgagees.csv, andproperties.csvadd child context
From API:
policies.retrieve_policy(policy_number=...)policies.retrieve_policy_ids(policy_number=...)returns the id chain, includingrevision_idpolicies.retrieve_policy_terms(...)andpolicies.retrieve_revision_details(...)add term/revision context
From SQL/report:
- base table:
v_revisions - additional policy tables and relationship views attach the policy context, contacts, agencies, properties, and claims
Key lineage rule
This is the central policy lineage pattern:
policy_number
-> policy_id / revision_id
-> revision_id -> claims / properties / contacts / agencies
Properties and risks
Most important fields
| Concern | CSV field names | API object pattern | SQL/report pattern |
|---|---|---|---|
| Property id | propertyId |
id or property_id |
property_id |
| Revision id | revisionId |
revision_id |
revision_id |
| Address | riskAddressLine1, riskCity, riskState, riskZip |
address / nested property location |
risk_address_line_1, risk_city, risk_state, risk_zip |
| County | riskCounty |
county or county_id |
risk_county or county-related fields |
| Name | propertyName |
name |
property_name |
| Inspection | riskInspectionRequestedDate, riskNextInspectionDate |
inspection metadata | inspection or risk-detail fields |
| Location metadata | riskLatitude, riskLongitude |
latitude, longitude |
risk_latitude, risk_longitude |
Typical property reconstruction flow
properties.csvgives the master property/risk rowsrevisionIdties the property back to the policy revisionmortgagees.csvcan add mortgagee/interest records tied to the property and revision
Payments and monetary records
Most important fields
| Concern | CSV field names | API object pattern | SQL/report pattern |
|---|---|---|---|
| Payment record id | id |
id |
payment id or related payment table |
| Claim linkage | claimId |
claim_id |
claim_id |
| Policy linkage | policyId, revisionId |
policy_id, revision_id |
policy_id, revision_id |
| Amount | amount / claimPaymentAmount |
amount |
payment amount columns |
| Date | transactionDate |
transaction_date |
transaction_date |
| Status/voids | voided, voidedDate |
voided, voided_date |
voided, voided_date |
Typical payment reconstruction flow
claims_payments.csvgives claim-payment recordsclaims_payments_item_amounts.csvgives the itemized amounts within each paymentpolicy_payments.csvor similar may hold payment records at the policy layer
Recommended mapping patterns
When you are mapping a record across layers, use this order:
- find the base entity row in the CSV export
- identify the stable id and business key
- map to the same key in the API payload
- join to the corresponding SQL/report view by the same id
- then fan out through bridge tables using the relationship keys
Short rule of thumb
- CSVs usually give the raw grain and the entity-level key names
- APIs usually give the current nested object plus child collections
- report views usually flatten and join the same data for business reporting
If you keep the base id and parent-child linkage id in mind, almost all of the entity mapping becomes consistent.