curl --request POST \
--url https://verification.didit.me/v3/id-verification/wallets/google-wallet/ \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Idempotency-Key: your-unique-attempt-key' \
--header 'Content-Type: application/json' \
--data '{
"country": "USA",
"vendor_data": "your-customer-reference",
"metadata": {
"reference": "example"
},
"origin": "https://app.example.com"
}'import requests
url = "https://verification.didit.me/v3/id-verification/wallets/google-wallet/"
payload = {
"country": "USA",
"vendor_data": "your-customer-reference",
"metadata": { "reference": "example" },
"origin": "https://app.example.com"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
country: 'USA',
vendor_data: 'your-customer-reference',
metadata: {reference: 'example'},
origin: 'https://app.example.com'
})
};
fetch('https://verification.didit.me/v3/id-verification/wallets/google-wallet/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://verification.didit.me/v3/id-verification/wallets/google-wallet/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'country' => 'USA',
'vendor_data' => 'your-customer-reference',
'metadata' => [
'reference' => 'example'
],
'origin' => 'https://app.example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://verification.didit.me/v3/id-verification/wallets/google-wallet/"
payload := strings.NewReader("{\n \"country\": \"USA\",\n \"vendor_data\": \"your-customer-reference\",\n \"metadata\": {\n \"reference\": \"example\"\n },\n \"origin\": \"https://app.example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://verification.didit.me/v3/id-verification/wallets/google-wallet/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"country\": \"USA\",\n \"vendor_data\": \"your-customer-reference\",\n \"metadata\": {\n \"reference\": \"example\"\n },\n \"origin\": \"https://app.example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/id-verification/wallets/google-wallet/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country\": \"USA\",\n \"vendor_data\": \"your-customer-reference\",\n \"metadata\": {\n \"reference\": \"example\"\n },\n \"origin\": \"https://app.example.com\"\n}"
response = http.request(request)
puts response.read_body{
"request_id": "00000000-0000-4000-8000-000000000001",
"wallet_verification": {
"wallet": {
"id": "google_wallet",
"name": "Google Wallet",
"issuing_authority": "Google Wallet (ID pass) and US state issuers (mobile driving licence)"
},
"country": "USA",
"status": "Not Finished",
"outcome": "pending",
"error": null,
"interaction": "digital_credentials",
"simulated": false,
"expires_at": "2026-01-01T10:10:00Z",
"next_action": {
"type": "request_digital_credential",
"digital_credentials": {
"protocol": "openid4vp-v1-signed",
"request": {
"requests": [
{
"protocol": "openid4vp-v1-signed",
"data": {
"request": "<compact JWS signed by Didit>"
}
}
]
}
}
},
"identity": null,
"attributes": null,
"level_of_assurance": null,
"verified_at": null,
"signature_valid": null,
"credential_type": "person_identification"
},
"vendor_data": "your-customer-reference",
"metadata": {
"reference": "example"
},
"created_at": "2026-01-01T10:00:00Z"
}{
"error": "<string>",
"detail": "<string>"
}{
"detail": "Forbidden - User doesn't have permission"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Google Wallet ID本人確認API
DiditでGoogle Wallet IDによる本人確認を自社アプリケーションに連携。対応国、認証ステップ、結果、料金を確認できます。
curl --request POST \
--url https://verification.didit.me/v3/id-verification/wallets/google-wallet/ \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Idempotency-Key: your-unique-attempt-key' \
--header 'Content-Type: application/json' \
--data '{
"country": "USA",
"vendor_data": "your-customer-reference",
"metadata": {
"reference": "example"
},
"origin": "https://app.example.com"
}'import requests
url = "https://verification.didit.me/v3/id-verification/wallets/google-wallet/"
payload = {
"country": "USA",
"vendor_data": "your-customer-reference",
"metadata": { "reference": "example" },
"origin": "https://app.example.com"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
country: 'USA',
vendor_data: 'your-customer-reference',
metadata: {reference: 'example'},
origin: 'https://app.example.com'
})
};
fetch('https://verification.didit.me/v3/id-verification/wallets/google-wallet/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://verification.didit.me/v3/id-verification/wallets/google-wallet/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'country' => 'USA',
'vendor_data' => 'your-customer-reference',
'metadata' => [
'reference' => 'example'
],
'origin' => 'https://app.example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://verification.didit.me/v3/id-verification/wallets/google-wallet/"
payload := strings.NewReader("{\n \"country\": \"USA\",\n \"vendor_data\": \"your-customer-reference\",\n \"metadata\": {\n \"reference\": \"example\"\n },\n \"origin\": \"https://app.example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://verification.didit.me/v3/id-verification/wallets/google-wallet/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"country\": \"USA\",\n \"vendor_data\": \"your-customer-reference\",\n \"metadata\": {\n \"reference\": \"example\"\n },\n \"origin\": \"https://app.example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/id-verification/wallets/google-wallet/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country\": \"USA\",\n \"vendor_data\": \"your-customer-reference\",\n \"metadata\": {\n \"reference\": \"example\"\n },\n \"origin\": \"https://app.example.com\"\n}"
response = http.request(request)
puts response.read_body{
"request_id": "00000000-0000-4000-8000-000000000001",
"wallet_verification": {
"wallet": {
"id": "google_wallet",
"name": "Google Wallet",
"issuing_authority": "Google Wallet (ID pass) and US state issuers (mobile driving licence)"
},
"country": "USA",
"status": "Not Finished",
"outcome": "pending",
"error": null,
"interaction": "digital_credentials",
"simulated": false,
"expires_at": "2026-01-01T10:10:00Z",
"next_action": {
"type": "request_digital_credential",
"digital_credentials": {
"protocol": "openid4vp-v1-signed",
"request": {
"requests": [
{
"protocol": "openid4vp-v1-signed",
"data": {
"request": "<compact JWS signed by Didit>"
}
}
]
}
}
},
"identity": null,
"attributes": null,
"level_of_assurance": null,
"verified_at": null,
"signature_valid": null,
"credential_type": "person_identification"
},
"vendor_data": "your-customer-reference",
"metadata": {
"reference": "example"
},
"created_at": "2026-01-01T10:00:00Z"
}{
"error": "<string>",
"detail": "<string>"
}{
"detail": "Forbidden - User doesn't have permission"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}workflow_idは不要です。
開始時のレスポンスは次に行う認証アクションを示すものであり、承認済みの本人確認結果ではありません。
対応範囲と有効化
| プロパティ | 値 |
|---|---|
| ウォレット | Google Wallet ID |
| ウォレットID | google_wallet |
| 対応国 | |
| 本番環境でのウォレット有効化 | ⏳ 近日提供予定 |
| 公開されているウォレット料金 | 完了した認証1件あたり$0.20 |
本人が行う操作
ページまたはアプリがGoogle Walletに直接リクエストします。リダイレクトやDidit側でホストされるページはありません。 開始時に指定したorigin上のユーザー操作の中でnext_action.digital_credentials.requestをnavigator.credentials.get({digital: request})に渡すか、Android Credential ManagerにGetDigitalCredentialOptionとして渡します。
その後、ウォレットから返された内容をウォレットのレスポンスを送信に送信します。
ウォレットが別のデバイスにある場合は、ブラウザが独自のQRコードを表示します。
結果を受け取る
デジタルIDウォレットAPIガイドに従って、認証の進行状況を追跡し、結果を取得します。 ウォレットが本人を認証した証拠として扱えるのは、完了し検証済みとなった結果のみです。 返される本人情報の属性はウォレットによって異なります。住所、顔写真、またはリクエストしたすべての属性が含まれているとは想定しないでください。関連情報
承認
お客様のアプリケーションのAPIキーです。Business ConsoleのDevelopers -> API keysで取得できます。プライマリキーはフルアクセス権を持ちます。名前付きキーにはスコープを設定できます。リソースごとのアクセス権(なし、読み取り、書き込み)、一部のワークフローまたは承認済みセッションへの限定、IPアドレスのリストへの限定、有効期限の設定です。401は、キーが誤っている、失効している、または期限切れであることを意味します。403は、キーが送信されていない、キーにこのリソースやアクションへのアクセス権がない、またはIPリスト外のアドレスからリクエストが送信されたことを意味します。セッションのルートでの404は、セッションがキーのワークフローまたはステータスの対象外であることを意味します。メディアへのアクセス権がないキーでは、画像、動画、PDFのURLがnullで返されます。セッションの書き込み権限がないキーでは、セッションのリンクとトークンがnullで返されます。詳細は次を参照してください: https://docs.didit.me/console/api-keys
ヘッダー
任意の再試行安全キーです(最大255文字)。同じキー、ウォレット、リクエストボディで再試行すると、2回目のサインインを開始せずに元の検証結果が返されます。同じキーで別のウォレットまたはリクエストボディを指定すると、409 idempotency_key_reusedが返されます。
ボディ
Google Wallet認証を開始します(USA、GBR、BRA、SGP、TWN)。
Google Wallet IDの国を示すISO 3166-1 alpha-3コード。
USA- USAGBR- GBRBRA- BRASGP- SGPTWN- TWN
USA, GBR, BRA, SGP, TWN ページまたはアプリがウォレットに問い合わせる場所です。ページのhttpsオリジン(ホストがアプリケーションのallowed_return_hostsに含まれているか、ホワイトラベルドメインである必要があります。例: https://app.example.com)、またはandroid:apk-key-hash [blocked]:<アプリ署名証明書のSHA-256をbase64化した値、パディングなし>を指定します。それ以外の場所からのリクエストはウォレットが拒否します。
1 - 256この認証に対するお客様独自の参照値です(例:お客様のユーザーID)。結果とWebhookで返されます。
認証とともに保存され、結果とWebhookで返される任意のJSONオブジェクトです。
Show child attributes
Show child attributes
サンドボックスアプリケーション専用:シミュレートする結果です。'wallet_cancelled'、'wallet_timeout'、'wallet_provider_error'のいずれかを指定し、それ以外のシナリオ(または指定なし)は検証済みになります。本番アプリケーションでは拒否されます。全カタログはGET /v1/sandbox/scenarios/で確認できます。
1