curl --fail -X GET 'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/businesses/22222222-3333-4444-5555-666666666666/pdf/' \
-H 'x-api-key: YOUR_API_KEY' \
--output business_report.pdffrom didit import Didit
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
client = Didit()
content = client.businesses.generate_session_pdf(
"22222222-3333-4444-5555-666666666666",
)
with open("download.pdf", "wb") as file:
file.write(content)import { writeFile } from "node:fs/promises";
import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
const didit = new Didit();
const content = await didit.businesses.generateSessionPdf("22222222-3333-4444-5555-666666666666");
await writeFile("download.pdf", Buffer.from(await content.arrayBuffer()));ctx := context.Background()
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
client := didit.NewClient()
resp, err := client.Businesses.GenerateSessionPDF(ctx, "22222222-3333-4444-5555-666666666666")
if err != nil {
log.Fatal(err)
}
defer resp.Body.Close()
file, err := os.Create("download.pdf")
if err != nil {
log.Fatal(err)
}
defer file.Close()
if _, err := io.Copy(file, resp.Body); err != nil {
log.Fatal(err)
}import java.nio.file.Path;
import me.didit.Didit;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
Didit client = new Didit();
client.businesses().generateSessionPdf("22222222-3333-4444-5555-666666666666")
.writeTo(Path.of("download.pdf"));<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
$didit = new DiditClient();
$content = $didit->businesses->generateSessionPdf('22222222-3333-4444-5555-666666666666');
$content->saveTo('download.pdf');require "didit"
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
didit = Didit::Client.new
content = didit.businesses.generate_session_pdf("22222222-3333-4444-5555-666666666666")
File.binwrite("download.pdf", content)using System;
using Didit;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
using var client = new DiditClient();
var content = await client.Businesses.GenerateSessionPdfAsync("22222222-3333-4444-5555-666666666666");
await content.SaveToAsync("download.pdf");"<string>"企業セッションPDF API(KYBレポート)
Didit Management APIで、完了した企業認証(KYB)セッション1件のPDFレポートをダウンロードできます。法人登記データ、主要人物、所有者、書類、AML、レビューを収録。
curl --fail -X GET 'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/businesses/22222222-3333-4444-5555-666666666666/pdf/' \
-H 'x-api-key: YOUR_API_KEY' \
--output business_report.pdffrom didit import Didit
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
client = Didit()
content = client.businesses.generate_session_pdf(
"22222222-3333-4444-5555-666666666666",
)
with open("download.pdf", "wb") as file:
file.write(content)import { writeFile } from "node:fs/promises";
import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
const didit = new Didit();
const content = await didit.businesses.generateSessionPdf("22222222-3333-4444-5555-666666666666");
await writeFile("download.pdf", Buffer.from(await content.arrayBuffer()));ctx := context.Background()
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
client := didit.NewClient()
resp, err := client.Businesses.GenerateSessionPDF(ctx, "22222222-3333-4444-5555-666666666666")
if err != nil {
log.Fatal(err)
}
defer resp.Body.Close()
file, err := os.Create("download.pdf")
if err != nil {
log.Fatal(err)
}
defer file.Close()
if _, err := io.Copy(file, resp.Body); err != nil {
log.Fatal(err)
}import java.nio.file.Path;
import me.didit.Didit;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
Didit client = new Didit();
client.businesses().generateSessionPdf("22222222-3333-4444-5555-666666666666")
.writeTo(Path.of("download.pdf"));<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
$didit = new DiditClient();
$content = $didit->businesses->generateSessionPdf('22222222-3333-4444-5555-666666666666');
$content->saveTo('download.pdf');require "didit"
# Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
# and DIDIT_APPLICATION_ID.
didit = Didit::Client.new
content = didit.businesses.generate_session_pdf("22222222-3333-4444-5555-666666666666")
File.binwrite("download.pdf", content)using System;
using Didit;
// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
// and DIDIT_APPLICATION_ID.
using var client = new DiditClient();
var content = await client.Businesses.GenerateSessionPdfAsync("22222222-3333-4444-5555-666666666666");
await content.SaveToAsync("download.pdf");"<string>"Approved、Declined、In Reviewのいずれかになった後でのみ取得できます。リクエストする前に、status.updatedWebhookを待ってください。関連情報
承認
お客様のアプリケーションのAPIキーです。Business ConsoleのDevelopers -> API keysで取得できます。プライマリキーはフルアクセス権を持ちます。名前付きキーにはスコープを設定できます。リソースごとのアクセス権(なし、読み取り、書き込み)、一部のワークフローまたは承認済みセッションへの限定、IPアドレスのリストへの限定、有効期限の設定です。401は、キーが誤っている、失効している、または期限切れであることを意味します。403は、キーが送信されていない、キーにこのリソースやアクションへのアクセス権がない、またはIPリスト外のアドレスからリクエストが送信されたことを意味します。セッションのルートでの404は、セッションがキーのワークフローまたはステータスの対象外であることを意味します。メディアへのアクセス権がないキーでは、画像、動画、PDFのURLがnullで返されます。セッションの書き込み権限がないキーでは、セッションのリンクとトークンがnullで返されます。詳細は次を参照してください: https://docs.didit.me/console/api-keys
パスパラメータ
組織のUUIDです。
アプリケーションのUUID。APIキーが属するアプリケーションである必要があります。他のアプリケーションでキーを使用すると403が返されます。
法人確認 (KYB)セッションのsession_idで、セッション作成時に返されたものです。別のアプリケーションのセッションを指定すると404が返されます。
レスポンス
レンダリングされたPDF。バイナリのapplication/pdfとして直接返されます。
The response is of type file.