> ## Documentation Index
> Fetch the complete documentation index at: https://docs.didit.me/llms.txt
> Use this file to discover all available pages before exploring further.

# インド運転免許証（RTO）照合API

> インド運転免許証（RTO）：Diditの本人確認インフラで、インドの公的データベースと照合します。1回あたり$0.15から従量課金、契約不要、最低利用額なし。

入力データを、インド各州の陸運局（Road Transport Offices）のデータベースと照合して検証します。Diditはこのサービスを`POST /v3/database-validation/`で提供しており、送信されたデータを公式の情報源と照合し、正規化された照合結果を受け取ることができます。

## 対象範囲

* **対象範囲：** > 75%
* **国：** インド
* **サービスID：** `ind_drivers_licence`
* **データドメイン：** 書類
* **カテゴリ：** DriverLicence

## 入力項目

| フィールド | 必須 | 例 |
| - | -: | - |
| `full_name` | はい | `John Doe` |
| `date_of_birth` | はい | `1990-01-01` |
| `driver_license_number` | はい | `SAMPLE-DL-12345` |
| `address.street_1` | いいえ | `123 Sample Street` |
| `address.street_2` | いいえ | `Unit 4` |
| `address.city` | いいえ | `Sample City` |
| `address.region` | いいえ | `Sample State` |
| `address.postal_code` | いいえ | `10001` |
| `vendor_data` | いいえ | `user-1234` |

* **必須の入力項目：** `full_name`、`date_of_birth`、`driver_license_number`
* **任意の入力項目：** `address.street_1`、`address.street_2`、`address.city`、`address.region`、`address.postal_code`、`vendor_data`
* **同意：** 必須
* **ワークフローでの利用：** ワークフローで利用可能
* **カバー率：** > 75%
* **料金：** 成功したクエリ1件あたり\$0.15

## ボディパラメーター

**issuing\_state** `string` *required* (default: IND)

このデータベースサービスのISO 3166-1 alpha-3国コードです。

例：`IND`

**services** `string` *required* (default: ind\_drivers\_licence)

このサービスIDを含む配列です。サービスを指定することで、リクエストの対象をこのデータベースのみに限定できます。

例：`ind_drivers_licence`

**consent** `boolean` *required* (default: true)

このサービスに対するエンドユーザーの明示的な同意です。

例：`true`

**full\_name** `string` *required* (default: John Doe)

検証する法的な氏名です。

例：`John Doe`

**date\_of\_birth** `string` *required* (default: 1990-01-01)

`YYYY-MM-DD`形式の生年月日です。

例：`1990-01-01`

**driver\_license\_number** `string` *required* (default: SAMPLE-DL-12345)

運転免許証番号です。

例：`SAMPLE-DL-12345`

**address** `object`

構造化された居住地の住所オブジェクトです。`street_1`、`street_2`、`city`、`region`、`postal_code`、`country`を使用してください。従来の完全な住所文字列も引き続き受け付けますが、推奨されません。

例：`{"street_1":"123 Sample Street","street_2":"Unit 4","city":"Sample City","region":"Sample State","postal_code":"10001","country":"US"}`

**vendor\_data** `string` (default: user-1234)

この人物に対する永続的なユーザー参照値です（社内のユーザーIDなど）。Diditはこれを使って個別のチェックを同一のエンドユーザーに紐付け、重複検知のノイズを減らします。

例：`user-1234`

## 入力ルールと検証に関する注意事項

* このサービスでは`address`は任意です。完全な`address`文字列を1つ送信すると、Diditは可能な場合に構造化された住所の構成要素へ分割します。または、構造化フィールドを明示的に送信することもできます。
* 住所系のサービスでは、可能な限り単一の`address`文字列ではなく構造化された住所フィールドを送信してください。
* `address.street_1`は番地と通りの種別を含む番地住所です。
* `address.street_2`は部屋番号、ユニット、建物、階、または追加の住所行です。該当する情報がある場合にのみ送信してください。
* `address.city`は市、郊外地区、地区、地域、または近隣地区です。
* `address.region`は州、県、地方、または町です。
* `address.postal_code`は郵便番号です。
* 住所ベースのデータベースサービスでは、少なくとも番地住所と郵便番号が必要です。データソースの照会前に拒否されたリクエストには料金はかかりません。

## 呼び出し方法

```bash cURL theme={null}
curl -X POST "https://verification.didit.me/v3/database-validation/" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "issuing_state=IND" \
  -F "services=ind_drivers_licence" \
  -F "vendor_data=user-1234" \
  -F "consent=true" \
  -F "full_name=John Doe" \
  -F "date_of_birth=1990-01-01" \
  -F "driver_license_number=SAMPLE-DL-12345"
```

```python Python theme={null}
from didit import Didit

# Reads DIDIT_API_KEY.
client = Didit()

result = client.database_validation.validate(
    issuing_state="IND",
    services=["ind_drivers_licence"],
    consent=True,
    full_name="John Doe",
    date_of_birth="1990-01-01",
    driver_license_number="SAMPLE-DL-12345",
    vendor_data="user-1234",
)
print(result)
```

```javascript Node.js theme={null}
import Didit from "@didit-protocol/sdk-node";

// Reads DIDIT_API_KEY.
const didit = new Didit();

const result = await didit.databaseValidation.validate({
  issuing_state: "IND",
  services: ["ind_drivers_licence"],
  consent: true,
  full_name: "John Doe",
  date_of_birth: "1990-01-01",
  driver_license_number: "SAMPLE-DL-12345",
  vendor_data: "user-1234",
});
console.log(result);
```

```go Go theme={null}
ctx := context.Background()
// Reads DIDIT_API_KEY.
client := didit.NewClient()

result, err := client.DatabaseValidation.Validate(ctx, didit.DatabaseValidationValidateParams{
	IssuingState:        "IND",
	Services:            didit.Some([]string{"ind_drivers_licence"}),
	Consent:             didit.Bool(true),
	FullName:            didit.String("John Doe"),
	DateOfBirth:         didit.String("1990-01-01"),
	DriverLicenseNumber: didit.String("SAMPLE-DL-12345"),
	VendorData:          didit.String("user-1234"),
})
if err != nil {
	log.Fatal(err)
}
fmt.Printf("%+v\n", result)
```

```java Java theme={null}
import java.time.LocalDate;
import java.util.List;
import me.didit.Didit;
import me.didit.types.DatabaseValidationValidateParams;

// Reads DIDIT_API_KEY.
Didit client = new Didit();

var result = client.databaseValidation().validate(DatabaseValidationValidateParams.builder()
        .issuingState("IND")
        .services(List.of("ind_drivers_licence"))
        .consent(true)
        .fullName("John Doe")
        .dateOfBirth(LocalDate.parse("1990-01-01"))
        .driverLicenseNumber("SAMPLE-DL-12345")
        .vendorData("user-1234")
        .build());
System.out.println(result);
```

```php PHP theme={null}
<?php

require 'vendor/autoload.php';

use Didit\DiditClient;

// Reads DIDIT_API_KEY.
$didit = new DiditClient();

$result = $didit->databaseValidation->validate([
    'issuing_state' => 'IND',
    'services' => ['ind_drivers_licence'],
    'consent' => true,
    'full_name' => 'John Doe',
    'date_of_birth' => '1990-01-01',
    'driver_license_number' => 'SAMPLE-DL-12345',
    'vendor_data' => 'user-1234',
]);
print_r($result->toArray());
```

```ruby Ruby theme={null}
require "didit"

# Reads DIDIT_API_KEY.
didit = Didit::Client.new

result = didit.database_validation.validate(
  issuing_state: "IND",
  services: ["ind_drivers_licence"],
  consent: true,
  full_name: "John Doe",
  date_of_birth: "1990-01-01",
  driver_license_number: "SAMPLE-DL-12345",
  vendor_data: "user-1234"
)
puts result.to_h
```

```csharp .NET theme={null}
using System;
using System.Text.Json;
using Didit;

// Reads DIDIT_API_KEY.
using var client = new DiditClient();

var result = await client.DatabaseValidation.ValidateAsync(new DatabaseValidationValidateParams
{
    IssuingState = "IND",
    Services = new string[] { "ind_drivers_licence" },
    Consent = true,
    FullName = "John Doe",
    DateOfBirth = "1990-01-01",
    DriverLicenseNumber = "SAMPLE-DL-12345",
    VendorData = "user-1234",
});
Console.WriteLine(JsonSerializer.Serialize(result));
```

成功した呼び出しはすべてHTTP `200`を返します。**`outcome_code`**フィールドは実際に何が起きたかを示し、たとえば生体認証の不一致（`BIOMETRIC_NO_MATCH`）と読み取れなかったセルフィー（`BIOMETRIC_IMAGE_UNUSABLE`）を区別します。表示される`status`は機能のデフォルトのステータスであり、設定した[Partial Match / No Matchのアクション](https://docs.didit.me/ja/core-technology/database-validation/database-validation-warnings.md)によって上書きされる場合があります。

**`MATCH`**：登記データベースが本人を確認し、チェックしたすべてのフィールドが一致しました。

```json 200 OK — MATCH theme={null}
{
  "request_id": "req_01H…",
  "status": "Approved",
  "issuing_state": "IND",
  "match_type": "full_match",
  "validations": [
    {
      "outcome_code": "MATCH",
      "service_id": "ind_drivers_licence",
      "service_name": "India Drivers Licence (RTO)",
      "source_data": {
        "address": "123 Sample Street",
        "address_match_score": "1.000",
        "date_of_birth": "1990-01-01",
        "identification_number": "SAMPLE-ID-12345",
        "verifications": {
          "date_of_birth": true,
          "full_name": true,
          "identification_number": true
        }
      },
      "validation": {
        "date_of_birth": "full_match",
        "full_name": "full_match",
        "identification_number": "full_match"
      }
    }
  ]
}
```

**`PARTIAL_MATCH`**：識別番号は見つかりましたが、1つ以上の個人情報フィールド（通常は氏名または生年月日）が完全には一致しませんでした。

```json 200 OK — PARTIAL_MATCH theme={null}
{
  "request_id": "req_01H…",
  "status": "In Review",
  "issuing_state": "IND",
  "match_type": "partial_match",
  "validations": [
    {
      "outcome_code": "PARTIAL_MATCH",
      "service_id": "ind_drivers_licence",
      "service_name": "India Drivers Licence (RTO)",
      "source_data": {
        "address": "123 Sample Street",
        "address_match_score": "1.000",
        "date_of_birth": "1990-01-01",
        "identification_number": "SAMPLE-ID-12345",
        "verifications": {
          "date_of_birth": true,
          "full_name": false,
          "identification_number": true
        }
      },
      "validation": {
        "date_of_birth": "full_match",
        "full_name": "no_match",
        "identification_number": "full_match"
      }
    }
  ]
}
```

**`NO_MATCH`**：登記データベースは送信されたデータに一致するものを返しませんでした。

```json 200 OK — NO_MATCH theme={null}
{
  "request_id": "req_01H…",
  "status": "Declined",
  "issuing_state": "IND",
  "match_type": "no_match",
  "validations": [
    {
      "outcome_code": "NO_MATCH",
      "service_id": "ind_drivers_licence",
      "service_name": "India Drivers Licence (RTO)",
      "source_data": {
        "date_of_birth": "NO_MATCH",
        "full_name": "NO_MATCH",
        "identification_number": "NO_MATCH"
      },
      "validation": {
        "date_of_birth": "no_match",
        "full_name": "no_match",
        "identification_number": "no_match"
      }
    }
  ]
}
```

## 返却されるデータ

`source_data`に含まれる具体的なフィールドは、レジストリが返す内容によって異なります。`ind_drivers_licence`向けに生成された例では、現在次の正規化された構造が記載されています。

* `address`
* `address_match_score`
* `date_of_birth`
* `identification_number`

## 料金とSLA

インドの運転免許証（RTO）照会は、Diditが検証元から明確な結果を受け取った場合にのみ課金されます。

* **1回あたりの料金：** \$0.15 USD。
* **請求：** 成功した照会ごとに課金されます。登録機関に接続できない場合、必須フィールドが不足している場合、またはリクエストが検証元に到達する前に拒否された場合は課金されません。
* **レイテンシー：** 通常、p95は2秒未満です。
* **可用性：** Didit側で四半期あたり99.9%です。下流の検証元の可用性は国やデータセットによって異なります。

## 関連情報

* [インドのデータベース検証の概要](https://docs.didit.me/api-reference/database-validation/india.md)
* [データベース検証の概要](https://docs.didit.me/ja/core-technology/database-validation/overview.md)
* [結果コード](https://docs.didit.me/ja/core-technology/database-validation/database-validation-outcome-codes.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.