# Terminology and field conventions

Use this glossary to keep resource and identifier names consistent in an integration. Preserve DX1 values as returned unless DX1 defines a conversion.

## Resource glossary

| Term | Meaning in this portal |
|  --- | --- |
| Dealership | The DX1 organization authorizing access. Several schemas identify it with `DealerId`; access and rate limits are dealership-specific. |
| Customer | A retail or business customer record identified by `CustomerId`. Customer data can appear in sales, service, parts-sale, and lead workflows. |
| Lead | A lead record identified by `LeadId`. A lead can be associated with a Customer through `CustomerId`. Leads are read-only in the documented APIs. |
| Inventory unit | A dealership inventory record identified by `DealerInventoryId` in Inventory summary results. |
| Major unit | A unit represented in inventory or a major-unit sale, such as an item in a deal’s `Units` collection. Identifier fields differ by API area; use the field required by the selected operation. |
| Deal | A transaction record. `DealId` identifies major-unit sale and repair-order deal records, but the business context differs by endpoint. |
| Repair order | A service transaction returned by RoDeal operations. Summary fields include `DealId`, `ROHeaderID`, and `RONo`; do not treat those as interchangeable. |
| Part | A parts-inventory record. Summary items expose both `PartId` and `DealerInventoryPartId`; use the identifier required by the selected API path. |
| `api_url` | The base URL returned by authentication and required for subsequent data requests. |


## Identifier glossary

| Field | Use |
|  --- | --- |
| `CustomerId` | UUID for a Customer. Customer summary uses it to retrieve `GET /v1/Customer/GetCustomer/{id}`. Other domains may reference the same customer. |
| `DealerInventoryId` | UUID for an Inventory unit. Inventory summary uses it to retrieve `GET /v1/Inventory/GetDealerInventory/{id}`. |
| `DealId` | UUID for a deal record. Major-unit and repair-order summaries both expose this name; always pair it with the domain and endpoint. |


Path placeholders are named `{id}` even when the corresponding summary field has a more specific name. Keep the typed field name in your model and substitute only its value into the path.

## Dates and time zones

Many fields use the OpenAPI `date-time` format, but not every date-time is explicitly defined as UTC. Preserve offsets when present, store instants consistently, and treat a value as UTC only when its field or policy says so.

Lead search uses `FromCreateDate`/`ToCreateDate`; other summary schemas use `FromCreatedDate`/`ToCreatedDate`. Response fields also differ, such as `UpdatedDate` and `UpdateDate`. Use the exact API spelling.

## Values, nulls, and sentinel dates

- Inventory summary defines `NewUsed` values `N` and `U` and describes `StatusName` examples such as Sold, In Stock, and On Hold.
- Display and preserve state names exactly as the API presents them. Where a response also includes `StateCode`, preserve that field separately rather than deriving one value from the other.
- Parts detail `LastSoldDate` may be null or `1/1/1900`; this does not establish a global sentinel-date rule.
- Null, empty-string, status, price, cost, and enumeration conventions are not defined globally.
Do not normalize state names, status strings, sentinel dates, or commercial values by assumption. Record domain-specific mappings in integration configuration and validate them with synthetic fixtures.


## Cost and profitability data

### Part Cost availability

Part Cost is not available through the DX1 Dealership API because of restrictions and concerns involving DX1’s OEM partners. Requests to expose Part Cost are considered by DX1’s executive business units. No change or Part Cost inclusion has been approved for release, and DX1 does not have an update or planned release date to share. Unless and until that position changes, Part Cost will remain unavailable.

API consumers must not infer Part Cost from `Price`, `Retail`, `InvoiceAmt`, `TotalCost`, or other sales amounts.

### Profitability calculations

DX1 does not publish a single canonical profitability value through the Dealership API. Profitability can depend on the transaction state, dealership configuration, and components that are not fully exposed through the API, including individual Part Cost.

`Inventory.TotalCost`, `InvoiceAmt`, and `Parts[].Price` must not be treated as a complete or authoritative DX1 profitability calculation. A third party may calculate its own estimate from the available fields, but it must identify the result as an estimate and document which costs and adjustments were included or excluded.

Results may differ from DX1 screens because those screens can use additional transaction data and dealership settings that are not available through the API.