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");व्यवसाय सत्र PDF API
Didit के साथ किसी पूरे हो चुके व्यवसाय सत्यापन (KYB) सत्र की 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");Approved, Declined या In Review स्थिति में हो। इसका अनुरोध करने से पहले webhook status.updated की प्रतीक्षा करें।संबंधित
प्राधिकरण
आपकी एप्लिकेशन की API कुंजी, Business Console में Developers -> API keys से। प्राथमिक कुंजी के पास पूर्ण एक्सेस होता है। एक नामित कुंजी को स्कोप किया जा सकता है: प्रति संसाधन none, read या write, कुछ वर्कफ़्लो या स्वीकृत सत्रों तक सीमित, IP पतों की सूची तक सीमित, और समाप्ति तिथि तक सीमित। 401 का अर्थ है कि कुंजी गलत है, निरस्त कर दी गई है या उसकी समय-सीमा समाप्त हो गई है; 403 का अर्थ है कि कोई कुंजी नहीं भेजी गई थी, कुंजी के पास इस संसाधन या कार्रवाई का एक्सेस नहीं है, या अनुरोध उसकी IP सूची से बाहर के पते से आया था; सत्र रूट पर 404 का अर्थ है कि सत्र कुंजी के वर्कफ़्लो या स्थितियों से बाहर है। मीडिया एक्सेस के बिना एक कुंजी को छवि, वीडियो और PDF URL null के रूप में प्राप्त होते हैं, और सत्र write के बिना एक कुंजी को सत्र लिंक और token 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.