# Service and repair-order history

Use this pattern to retrieve repair-order summaries and selected service detail. Keep the repair-order identifiers distinct; they are not interchangeable labels for one value.

## Prerequisites

- RO Deal access is approved for the dealership credential.
- The integration is authorized for customer, unit, job, parts, labor, warranty, recommendation, fee, and tax data.
- A checkpoint and deduplication store can retain the API identifiers without exposing them in public logs.


## Retrieve repair-order summaries

Review [Cost and profitability data](/docs/dx1-dealership-api/guides/field-conventions#cost-and-profitability-data) before using part, price, or cost-related fields returned by repair-order operations.

Send `POST /v1/RoDeal/Summary` with an `ApiRoDealSearchCriteria` body. Available criteria include `DealNo`, `CustomerId`, created and updated ranges, `Take`, `Skip`, and `OrderBy`.

Summary items include:

- `DealId`: UUID described as the RO invoice GUID and used for the detail request;
- `ROHeaderID`: integer identifier for the repair order;
- `RONo`: repair-order number;
- `DealNo`: invoice number.


Deduplicate and sequence detail retrieval with `DealId` unless DX1 supplies different endpoint-specific guidance. Do not substitute `RONo`, `ROHeaderID`, or `DealNo` into a UUID path by assumption.

## Retrieve selected detail

Use the summary `DealId` as `{id}` in `GET /v1/RoDeal/GetDealDetail/{id}`. The method is GET and the placeholder is `{id}`.

The response schema is `ApiRoDealDetail`, covering the top-level repair-order identifiers, Customer, service writer, dates, status, sublet values, and nested unit and job detail.

## Operational controls

Commit the checkpoint after required detail is stored. Retry only the same safe read for the documented scaling condition. Repair-order responses can contain customer and service-history data; exclude payloads from public examples and diagnostics.