# Pre-Accident Valuation API Suite

To deliver a PAV-style experience you can leverage existing API endpoints to deliver your desired UX. Below is a broad guide on how to achieve a similar outcome. Each integration will have nuances and specific commercial differences - don't hesitate to speak to your Integrations support person or sales executive for guidance.&#x20;

### Workflow Overview

<figure><img src="https://content.gitbook.com/content/K6ugEamiHrCyaXQ4C4xg/blobs/wxRWLO6VMa9QSdMhLnOP/image.png" alt=""><figcaption><p>A basic overview of the PAV-Style integration workflow</p></figcaption></figure>

### Isolate The Vehicle ID

To begin the journey you will need to convert a real-world identifier into an vehicle ID to progress through the wider set of data. You can do this in four common ways;

1. [Registration Plate Search](https://devhub.autograb.com/nz-autograb-api-doc/vehicle-search/registration-plate-search) - the most common identifier consumers and agents are familiar with.
2. [VIN Search](https://devhub.autograb.com/nz-autograb-api-doc/vehicle-search/vin-search) - for unregistered or for scenarios where a plate is not known
3. [Facet (Drop Down) Search](https://devhub.autograb.com/nz-autograb-api-doc/vehicle-search/facet-search) - for scenarios where a standard identifier is not known or where the data delivered from upstream (Road Authority) is not reliable.&#x20;

{% hint style="info" %}
Explore [other vehicle discovery mechanisms here.](https://devhub.autograb.com/nz-autograb-api-doc/vehicle-search/vehicle-searching-basics)
{% endhint %}

For example, the response from a Registration search is below. Importantly you want to identify the ID,  `"id": "5932950835167232"` for use in future steps.&#x20;

We offer a range of data enrichment packs to deliver more information in your registration or VIN lookups, [explore them all here](https://devhub.autograb.com/nz-autograb-api-doc/other-products-and-resources/broken-reference). Consider the usage of the compliance information or vehicle age products.&#x20;

### Extrapolate Into Your Workflows

#### Get Market Data

To understand the position of that vehicle in the market you would call on the [Market Overla](https://devhub.autograb.com/nz-autograb-api-doc/sourcing/market-overlay)y service. This would deliver you a large payload of information on the competitive set of the vehicle.&#x20;

To enrich your Overlay information we suggest employing additional features. For this use case, those are

1. [All Images](https://devhub.autograb.com/autograb-api-doc/sourcing/market-overlay/features#all-images) - to get all the images attached to the lead inside AutoGrab.
2. [Primary Description ](https://devhub.autograb.com/autograb-api-doc/sourcing/market-overlay/features#primary-listing-description)- to get the primary detailed description of each listing for UI display purposes.&#x20;

#### Perform A Valuation

To understand the value of the vehicle you will want to run a Valuation using the [Pricing](https://devhub.autograb.com/nz-autograb-api-doc/valuation/valuation-predictions) endpoint. That will give you the current retail and trade values for the vehicle. Consider employing the [Bounds feature ](https://devhub.autograb.com/nz-autograb-api-doc/valuation/valuation-predictions/valuation-features)to understand the valuation upper and lower thresholds as part of this calculation.&#x20;
