---
title: Vehicle previous owners detail api
slug: api-marketplace/vehicle-previous-owners-detail-api
createdAt: 2024-05-08T14:02:32.228Z
---

# Introduction

This service is used for retrieving the details of Previous Owners details by entering the vehicle registration number.

## How to call the API

You will need to login before sending the request. You are required to pass the access token received from the login call as the authorization header in the request.

## API cURL

:::CodeblockTabs
Pre-Prod

```json
curl --location 'https://api-preproduction.signzy.app/api/v3/vehicle/previous-owner-details' \
--header 'Authorization: <Yout Auth Token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "vehicleNumber": "XY12XY1234"
}'
```

Prod

```json
curl --location 'https://api.signzy.app/api/v3/vehicle/previous-owner-details' \
--header 'Authorization: <Yout Auth Token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "vehicleNumber": "XY12XY1234"
}'
```
:::

## Input Description Table

| Parameter     | Required | Type   | Description                                |
| ------------- | -------- | ------ | ------------------------------------------ |
| vehicleNumber | Yes      | String | Vehicle number which needs to be searched. |

## Output

```json
{
    "result": {
        "previousOwnerCount": "3",
        "owners": [
            {
                "ownerCount": "1",
                "owner_name": "XXYY XXYY"
            },
            {
                "ownerCount": "2",
                "owner_name": "ABCD ABCD"
            },
            {
                "ownerCount": "3",
                "owner_name": "John Doe"
            }
        ]
    }
}
```

## Output Description Table

| Parameter          | Value  | Description                     |
| ------------------ | ------ | ------------------------------- |
| previousOwnerCount | String | Total Count of previous owners. |
| ownerCount         | String | sl. no                          |
| owner\_name        | String | owner name                      |

## Error Response

:::CodeblockTabs
Error(404)

```json
{
    "error": {
        "name": "error",
        "message": "Vehicle data not found",
        "status": 404,
        "reason": "ERROR: Data Not Found!",
        "type": "Not Found",
        "statusCode": 404
    }
}
```

Error(400)

```json
{
    "error": {
        "name": "error",
        "message": "Vehicle number is required",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 400
    }
}
```
:::

:::hint{type="info"}
### Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for making the documents or any of our services better.


You can reach out to us at [help@signzy.com](#).
:::

