# Parts inventory synchronization

Use this pattern to retrieve changed parts-inventory summaries and selected detail with the identifier required by the detail path.

## Prerequisites

- Part Inventory access is approved for the dealership credential.
- The integration has defined how it will preserve quantities, pricing, supplier/catalog data, and ambiguous null or sentinel dates.
- A checkpoint and `DealerInventoryPartId` deduplication store are available.


## Retrieve summaries

Send `POST /v1/Part/Summary` with an `ApiPartSearchCriteria` body. Available criteria include `PartNumber`, `CatalogName`, created and updated ranges, `Take`, `Skip`, and `OrderBy`.

Each `ApiPart` summary item exposes both:

- `PartId`, described as the DX1 unique part identifier;
- `DealerInventoryPartId`, described as the unique part identifier for the inventory unit.


Preserve both fields in the integration model. The detail path parameter is specifically described as **Dealer inventory part ID**, so use `Items[].DealerInventoryPartId` as `{id}` for the detail call.

## Retrieve selected detail

GET `/v1/Part/GetDealerInventory/{id}`. Detail includes quantities, reorder fields, prices, dates, supersession, UPC, and bin locations.

Review [Cost and profitability data](/docs/dx1-dealership-api/guides/field-conventions#cost-and-profitability-data) before using part pricing fields.

`LastSoldDate` can be null or `1/1/1900` to denote no sales. That rule is field-specific. Do not treat every empty or historical date as a universal sentinel, and do not infer a business meaning for `Avail`, `CurrentActivePrice`, or `Retail` beyond their field descriptions.

## Operational controls

Use updated-date ranges for routine synchronization and created dates for a bounded initial load when appropriate. Commit the checkpoint after selected detail is processed. Enforce the bulk window and both rolling limits even when the payload contains no customer record; quantities and commercial pricing remain dealership data.