---
title: Master Mapping Doc
slug: api-marketplace/master-mapping-doc
createdAt: 2024-05-16T09:38:23.535Z
---

# Overview

The RTO mappings is a part of MMV master mapping API. It provides, rto code location from the client master file. Using this API we could find the location details of the given rto

The API has one main endpoint:

The MMV master mapping API has the endpoint `api.signzy.app/api/v3/mmv-master-mapping`. This API would give the  MMV, insurer, rto location details based on client file.

# Guidelines to get MMV mapping

The MMV master mapping API, the client need to provide the manufacturer name, model, fuel-type ,cubic capacity they want to map. This would provide them the mmv variant IDs with the match score details in the output.

## Sample Input and output

### Input Table

```json
data-raw '{
    "vehicleManufacturerName": "MAHINDRA & MAHINDRA LIMITED",
    "fuelType": "DIESEL",
    "model": "MAHINDRA TUV300 T8 BSIV",
    "cubicCapacity": "1493",
    "vehicleInsuranceCompanyName": "ROYAL SUNDARAM ALLIANCE INSURANCE CO.LTD.",
    "rtoCode": "HR03",
    "clientId": "MGMSZY"
}'
```

### Input Table

| Input Key                   | Data Type | Description                                         |
| --------------------------- | --------- | --------------------------------------------------- |
| vehicleManufacturerName     | String    | Name of the vehicle manufacturer                    |
| fuelType                    | String    | Type of fuel used by the vehicle                    |
| model                       | String    | Model of the vehicle                                |
| cubicCapacity               | String    | Engine capacity of the vehicle in cubic centimeters |
| vehicleInsuranceCompanyName | String    | Name of the company providing vehicle insurance     |
| rtoCode                     | String    | Code of the Regional Transport Office (RTO)         |
| clientId                    | String    | Identifier for the client                           |

### Output

:::CodeblockTabs
MMV mapping Output

```json
{
    "result": {
        "mmvVariantMapping": [
            {
                "variantId": "MM0748",
                "make": "MAHINDRA & MAHINDRA",
                "fuelType": "Diesel",
                "model": "TUV300",
                "variant": "T8",
                "cubicCapacity": 1493,
                "matchScore": 1
            },
            {
                "variantId": "MM0750",
                "make": "MAHINDRA & MAHINDRA",
                "fuelType": "Diesel",
                "model": "TUV300",
                "variant": "T8 AMT",
                "cubicCapacity": 1493,
                "matchScore": 0.87
            },
            {
                "variantId": "MM12119",
                "make": "MAHINDRA & MAHINDRA",
                "fuelType": "Diesel",
                "model": "TUV300",
                "variant": "T8 100 HP REFRESH",
                "cubicCapacity": 1493,
                "matchScore": 0.87
            },
            {
                "variantId": "MM12118",
                "make": "MAHINDRA & MAHINDRA",
                "fuelType": "Diesel",
                "model": "TUV300",
                "variant": "T8 100 HP REFRESH",
                "cubicCapacity": 1493,
                "matchScore": 0.87
            },
            {
                "variantId": "MM0745",
                "make": "MAHINDRA & MAHINDRA",
                "fuelType": "Diesel",
                "model": "TUV300",
                "variant": "T4 PLUS",
                "cubicCapacity": 1493,
                "matchScore": 0.82
            }
        ]
    }
}
```
:::

### Output Table

| Input Key         | Data Type | Description                                                               |
| ----------------- | --------- | ------------------------------------------------------------------------- |
| result            | Object    | Parent object containing the mmvVariantMapping array                      |
| mmvVariantMapping | Array     | Array containing objects that map vehicle variants                        |
| variantId         | String    | Unique identifier for the vehicle variant                                 |
| make              | String    | Manufacturer of the vehicle                                               |
| fuelType          | String    | Type of fuel used by the vehicle                                          |
| model             | String    | Model of the vehicle                                                      |
| variant           | String    | Specific variant of the vehicle model                                     |
| cubicCapacity     | Number    | Engine capacity of the vehicle in cubic centimeters                       |
| matchScore        | Number    | Score indicating how well the variant matches the given criteria (0 to 1) |

# Guidelines to get Insurer mapping

The MMV master mapping API, the client need to provide the insurer name , they want to map. This would provide them the insurer details in the output.

## Sample Input and output

### Input Table

```json
data-raw '{
    "vehicleManufacturerName": "MAHINDRA & MAHINDRA LIMITED",
    "fuelType": "DIESEL",
    "model": "MAHINDRA TUV300 T8 BSIV",
    "cubicCapacity": "1493",
    "vehicleInsuranceCompanyName": "ROYAL SUNDARAM ALLIANCE INSURANCE CO.LTD.",
    "rtoCode": "HR03",
    "clientId": "MGMSZY"
}'
```

### Input Table

| Input Key                   | Data Type | Description                                         |
| --------------------------- | --------- | --------------------------------------------------- |
| vehicleManufacturerName     | String    | Name of the vehicle manufacturer                    |
| fuelType                    | String    | Type of fuel used by the vehicle                    |
| model                       | String    | Model of the vehicle                                |
| cubicCapacity               | String    | Engine capacity of the vehicle in cubic centimeters |
| vehicleInsuranceCompanyName | String    | Name of the company providing vehicle insurance     |
| rtoCode                     | String    | Code of the Regional Transport Office (RTO)         |
| clientId                    | String    | Identifier for the client                           |

### Output

:::CodeblockTabs
Insurer mapping Output

```json
{
    "result": {
        "insurerMapping": [
            {
                "code": "RSAI",
                "score": 1
            }
        ]
    }
}
```
:::

### Output Table

| Input Key      | Data Type | Description                                                |
| -------------- | --------- | ---------------------------------------------------------- |
| result         | Object    | Parent object containing the insurerMapping array          |
| insurerMapping | Array     | Array containing objects that map insurer codes            |
| code           | String    | Insurer ID present in client master file                   |
| score          | Integer   | Match score for the Insurer details present in client file |



# Guidelines to get RTO mapping

The MMV master mapping API, the client need to provide the rto code, they want to map. This would provide them the rto location details in the output.

## Sample Input and output

### Input Table

```json
data-raw '{
    "vehicleManufacturerName": "MAHINDRA & MAHINDRA LIMITED",
    "fuelType": "DIESEL",
    "model": "MAHINDRA TUV300 T8 BSIV",
    "cubicCapacity": "1493",
    "vehicleInsuranceCompanyName": "ROYAL SUNDARAM ALLIANCE INSURANCE CO.LTD.",
    "rtoCode": "HR03",
    "clientId": "MGMSZY"
}'
```

### Input Table

| Input Key                   | Data Type | Description                                         |
| --------------------------- | --------- | --------------------------------------------------- |
| vehicleManufacturerName     | String    | Name of the vehicle manufacturer                    |
| fuelType                    | String    | Type of fuel used by the vehicle                    |
| model                       | String    | Model of the vehicle                                |
| cubicCapacity               | String    | Engine capacity of the vehicle in cubic centimeters |
| vehicleInsuranceCompanyName | String    | Name of the company providing vehicle insurance     |
| rtoCode                     | String    | Code of the Regional Transport Office (RTO)         |
| clientId                    | String    | Identifier for the client                           |

### Output

:::CodeblockTabs
RTO mapping Output

```json
{
    "result": {
        "rtoLocationMapping": [
            {
                "rtoCode": "HR03",
                "city": "PANCHKULA"
            }
        ]
    }
}
```
:::

### Output Table

| Input Key          | Data Type | Description                                                 |
| ------------------ | --------- | ----------------------------------------------------------- |
| result             | Object    | Parent object containing the rtoLocationMapping array       |
| rtoLocationMapping | Array     | Array containing objects that map RTO codes to their cities |
| rtoCode            | String    | Code of the Regional Transport Office (RTO)                 |
| city               | String    | City corresponding to the given RTO code                    |

