# Customer Synchronization

Use this pattern to retrieve changed Customer summaries and request detail only for the customer records required by the dealership-authorized integration.

## Prerequisites

- Customer data access is included in the approved vendor and dealership authorization.
- The integration can protect personal, contact, preference, birthdate, and note data returned by Customer detail.
- A stable checkpoint and deduplication store are available.


## Retrieve Summaries

POST `/v1/Customer/Summary` with `ApiCustomerSearchCriteria`. For an incremental job, keep these fields fixed while paging:

```json
{
  "Take": 500,
  "Skip": 0,
  "FromUpdatedDate": "2025-01-15T00:00:00Z",
  "ToUpdatedDate": "2025-01-16T00:00:00Z"
}
```

Available criteria also include first name, last name, phone, email, created-date ranges, and `OrderBy`. Use those filters only for a defined integration need; do not use personal filters in public diagnostics.

For each response page:

1. Read the `Items` array.
2. Deduplicate on `Items[].CustomerId`.
3. Increase `Skip` by the number of items processed.
4. Use `TotalCount` to measure progress across all available Customer records; also stop defensively on an empty page.


## Retrieve Selected Detail

Use the summary `CustomerId` as `{id}` in `GET /v1/Customer/GetCustomer/{id}`. The detail response includes retail/business names, contact and address fields, preferences, dates, and notes; the [API reference](/docs/dx1-dealership-api/api-reference) controls the complete schema.

Use `GET /v1/Customer/GetGarageList/{id}` with the Customer ID as `{id}` to retrieve confirmed customer-owned units when that access is included in the approved integration.

## Commit and Protect the Checkpoint

Commit the updated-date checkpoint only after required summary and detail records are durably processed. Keep overlap duration as integration configuration, deduplicate by `CustomerId`, and never place retrieved Customer records in examples, issues, or public logs.