> ## 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.

# लेन-देन PDF रिपोर्ट API

> Didit से मॉनिटर किए गए लेन-देन की PDF रिपोर्ट डाउनलोड करें, जिसमें निर्णय, पक्ष, अलर्ट, नियम रन, स्क्रीनिंग परिणाम और संबंधित लेन-देन शामिल हों।



लेन-देन PDF रिपोर्ट जनरेट करने के लिए API प्रॉम्प्ट
        प्रॉम्प्ट को क्लिपबोर्ड पर कॉपी करें



      
      

\<pre>

\`Download one Didit monitored transaction as a PDF report through the Management API.

Endpoint:
GET https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/transactions/{transaction_uuid}/pdf/

Authentication:
Use the x-api-key header with my Didit API key. A scoped key needs media: read and transactions: read, because a PDF report counts as media. Keys limited to specific workflows or to approved sessions cannot call this endpoint.

Goal:
\- Get a PDF of a transaction for an audit file, a handoff to another team, or a regulator request.

Path parameters:
\- organization_id: my organization UUID.
\- application_id: the UUID of the application my API key belongs to. Any other application returns 403.
\- transaction_uuid: the Didit transaction uuid, not my own txn_id.

Behavior:
\- The response body is the PDF itself (Content-Type: application/pdf). Do not parse it as JSON.
\- Content-Disposition is always attachment; filename=transaction_{transaction_uuid}.pdf.
\- The report covers the overview and verdict, parties and payment methods, custom properties, alerts and rule runs, screening and Travel Rule results, the network summary, the cost breakdown, up to 50 related transactions and the 20 most recent activity entries.
\- It is rendered from the transaction's current data on every call. Nothing is stored and nothing is billed. Rendering can take a few seconds, so use a generous client timeout.

Example call:
curl -X GET "https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/transactions/{transaction_uuid}/pdf/" \
-H "x-api-key: YOUR_API_KEY" \
-o transaction_report.pdf

Failure modes (JSON bodies):
\- 401: the API key has expired.
\- 403: missing API key (a wrong, revoked or expired key gets 401) ({"detail": "Authentication credentials were not provided or are invalid."}), an application_id that is not my key's application ({"detail": "You do not have permission to perform this action."}), a scoped key without media: read ({"detail": "This API key has no read access to media."}) or transactions: read, a key with workflow or status limits, or a request from outside the key's IP allowlist.
\- 404: no transaction with this uuid in my application ({"detail": "No Transaction matches the given query."}).
\- 429: more than 600 GET requests per minute with this key; wait Retry-After seconds and retry.

Side effects: none.

For the full integration shape, see /integration/integration-prompt.`

\</pre>



      
      

यहाँ पेस्ट करें

यह रिपोर्ट लेन-देन के मौजूदा डेटा से मांग पर बनाई जाती है, इसलिए स्थिति बदलने के बाद अद्यतन प्रति पाने के लिए इसे फिर से कॉल करें। अन्य लेन-देन endpoints के विपरीत, यह एप्लिकेशन-स्कोप्ड पाथ पर होता है: URL में अपने संगठन की ID और उस एप्लिकेशन की ID डालें जिससे आपकी API कुंजी जुड़ी है। देखें [अपने संगठन की ID खोजें](https://docs.didit.me/hi/getting-started/api-authentication.md#अपना-संगठन-id-ढूँढें)।> [!NOTE]
>
> PDF रिपोर्ट को मीडिया माना जाता है। [स्कोप्ड API कुंजी](https://docs.didit.me/hi/console/api-keys.md) को **media: read** के साथ **transactions: read** की भी ज़रूरत होती है, और जिस कुंजी के पास मीडिया की पहुंच नहीं है उसे `403` मिलेगा, भले ही वह [लेन-देन प्राप्त करें](https://docs.didit.me/hi/management-api/transactions/get.md) से लेन-देन को JSON में पढ़ सकती हो।


## OpenAPI

````yaml hi/openapi-25.json GET /v3/organization/{organization_id}/application/{application_id}/transactions/{transaction_uuid}/pdf/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: पहचान सत्यापन API। x-api-key हेडर के साथ प्रमाणीकृत करें।
servers:
  - url: https://verification.didit.me
security: []
tags: []
paths:
  /v3/organization/{organization_id}/application/{application_id}/transactions/{transaction_uuid}/pdf/:
    get:
      tags:
        - Transactions
      summary: लेन-देन PDF रिपोर्ट डाउनलोड करें
      description: >-
        एक मॉनिटर किए गए लेन-देन को PDF रिपोर्ट के रूप में रेंडर करें: अवलोकन और
        निर्णय, पक्ष और भुगतान विधियाँ, कस्टम प्रॉपर्टीज़, अलर्ट और नियम रन,
        स्क्रीनिंग और Travel Rule परिणाम, नेटवर्क सारांश, लागत विवरण, अधिकतम 50
        संबंधित लेन-देन और 20 सबसे हालिया गतिविधि प्रविष्टियाँ। बॉडी स्वयं PDF
        (`application/pdf`) है, JSON नहीं।


        रिपोर्ट प्रत्येक कॉल पर लेन-देन के वर्तमान डेटा से रेंडर की जाती है,
        इसलिए स्थिति परिवर्तन के बाद फिर से इसका अनुरोध करें। कुछ भी संग्रहीत
        नहीं किया जाता है और कुछ भी बिल नहीं किया जाता है। रेंडरिंग में कुछ
        सेकंड लग सकते हैं, इसलिए एक उदार क्लाइंट टाइमआउट का उपयोग करें।


        यह endpoint एप्लिकेशन-स्कोप वाले पाथ पर स्थित है: URL में अपना संगठन ID
        और उस एप्लिकेशन की ID डालें जिससे आपकी API कुंजी संबंधित है ([अपना संगठन
        ID
        खोजें](https://docs.didit.me/hi/getting-started/api-authentication#अपना-संगठन-id-ढूँढें))।
        एक PDF रिपोर्ट को मीडिया माना जाता है: एक स्कोप्ड API कुंजी को `media:
        read` और `transactions: read` की आवश्यकता होती है, और कुछ वर्कफ़्लो या
        स्वीकृत सत्रों तक सीमित कुंजी इसे कॉल नहीं कर सकती है।
      operationId: get_transaction_pdf
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: संगठन UUID।
          example: 11111111-2222-3333-4444-555555555555
        - name: application_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: >-
            एप्लिकेशन UUID। यह वही एप्लिकेशन होना चाहिए जिससे API कुंजी संबंधित
            है: किसी अन्य एप्लिकेशन पर उपयोग की गई कुंजी को `403` मिलता है।
          example: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
        - name: transaction_uuid
          in: path
          required: true
          description: >-
            Didit लेन-देन UUID: `POST /v3/transactions/` और `GET
            /v3/transactions/` द्वारा लौटाया गया `uuid`। आपकी अपनी `txn_id`
            स्वीकार नहीं की जाती है।
          schema:
            type: string
            format: uuid
          example: abcdef12-3456-7890-abcd-ef1234567890
      responses:
        '200':
          description: >-
            रेंडर किया गया PDF, सीधे बाइनरी `application/pdf` के रूप में लौटाया
            गया।
          headers:
            Content-Disposition:
              description: हमेशा `attachment; filename=transaction_{transaction_uuid}.pdf`।
              schema:
                type: string
                example: >-
                  attachment;
                  filename=transaction_abcdef12-3456-7890-abcd-ef1234567890.pdf
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        '401':
          description: >-
            API कुंजी की समय-सीमा समाप्त हो गई है। केवल समाप्ति तिथि के साथ बनाई
            गई कुंजी ही समाप्त हो सकती है; उस तिथि के बाद इसके साथ किया गया
            प्रत्येक अनुरोध `401` रिस्पॉन्स देता है।
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              examples:
                Expired key:
                  value:
                    detail: This API key has expired.
        '403':
          description: >-
            अनुरोध की अनुमति नहीं है। `detail` देखें: एक अनुपलब्ध API कुंजी
            (गलत, निरस्त या समय-सीमा समाप्त कुंजी पर `401` मिलता है), एक
            `application_id` जो कुंजी का एप्लिकेशन नहीं है, `media: read` या
            `transactions: read` के बिना एक स्कोप्ड कुंजी, वर्कफ़्लो या स्वीकृत
            सत्रों तक सीमित एक कुंजी, या कुंजी की IP सूची के बाहर से अनुरोध।
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              examples:
                Missing or invalid key:
                  value:
                    detail: >-
                      Authentication credentials were not provided or are
                      invalid.
                Another application:
                  value:
                    detail: You do not have permission to perform this action.
                Scoped key without media read:
                  value:
                    detail: This API key has no read access to media.
                Scoped key without transactions read:
                  value:
                    detail: This API key has no read access to transactions.
                Key limited to workflows or approved sessions:
                  value:
                    detail: >-
                      This API key only reaches sessions inside its workflow or
                      status limits, so it can't use this endpoint.
                Outside the key's IP list:
                  value:
                    detail: This API key can't be used from this IP address.
        '404':
          description: >-
            एप्लिकेशन में इस UUID वाला कोई लेन-देन मौजूद नहीं है (कभी नहीं बनाया
            गया, हटा दिया गया, या किसी अन्य एप्लिकेशन के स्वामित्व में है)। एक
            `transaction_uuid` जो UUID नहीं है, API तक नहीं पहुंचता है: यह इस
            JSON बॉडी के बजाय `404` HTML पेज लौटाता है।
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              examples:
                Not found:
                  value:
                    detail: No Transaction matches the given query.
        '429':
          description: >-
            इस API कुंजी के साथ प्रति मिनट 600 से अधिक GET अनुरोध। `Retry-After`
            में दिए गए सेकंड तक प्रतीक्षा करें, फिर पुनः प्रयास करें।
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              examples:
                Throttled:
                  value:
                    detail: >-
                      GET request rate limit exceeded. You can make up to 600
                      requests per minute.
          headers:
            Retry-After:
              description: वर्तमान एक-मिनट की विंडो रीसेट होने तक के सेकंड।
              schema:
                type: integer
                example: 23
            X-RateLimit-Limit:
              description: इस बजट में प्रति मिनट अनुमत अनुरोध।
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: वर्तमान विंडो में शेष अनुरोध।
              schema:
                type: integer
            X-RateLimit-Reset:
              description: Unix समय जब विंडो रीसेट होती है।
              schema:
                type: integer
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl --fail -X GET
            'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/transactions/abcdef12-3456-7890-abcd-ef1234567890/pdf/'
            \
              -H 'x-api-key: YOUR_API_KEY' \
              --output transaction_report.pdf
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
            # and DIDIT_APPLICATION_ID.
            client = Didit()

            content = client.transactions.generate_pdf(
                "abcdef12-3456-7890-abcd-ef1234567890",
            )
            with open("download.pdf", "wb") as file:
                file.write(content)
        - lang: javascript
          label: Node.js
          source: >-
            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.transactions.generatePdf("abcdef12-3456-7890-abcd-ef1234567890");

            await writeFile("download.pdf", Buffer.from(await
            content.arrayBuffer()));
        - lang: go
          label: Go
          source: "ctx := context.Background()\n// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID\n// and DIDIT_APPLICATION_ID.\nclient := didit.NewClient()\n\nresp, err := client.Transactions.GeneratePDF(ctx, \"abcdef12-3456-7890-abcd-ef1234567890\")\nif err != nil {\n\tlog.Fatal(err)\n}\ndefer resp.Body.Close()\nfile, err := os.Create(\"download.pdf\")\nif err != nil {\n\tlog.Fatal(err)\n}\ndefer file.Close()\nif _, err := io.Copy(file, resp.Body); err != nil {\n\tlog.Fatal(err)\n}"
        - lang: java
          label: Java
          source: >-
            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.transactions().generatePdf("abcdef12-3456-7890-abcd-ef1234567890")
                    .writeTo(Path.of("download.pdf"));
        - lang: php
          label: PHP
          source: >-
            <?php


            require 'vendor/autoload.php';


            use Didit\DiditClient;


            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID

            // and DIDIT_APPLICATION_ID.

            $didit = new DiditClient();


            $content =
            $didit->transactions->generatePdf('abcdef12-3456-7890-abcd-ef1234567890');

            $content->saveTo('download.pdf');
        - lang: ruby
          label: Ruby
          source: >-
            require "didit"


            # Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID

            # and DIDIT_APPLICATION_ID.

            didit = Didit::Client.new


            content =
            didit.transactions.generate_pdf("abcdef12-3456-7890-abcd-ef1234567890")

            File.binwrite("download.pdf", content)
        - lang: csharp
          label: .NET
          source: >-
            using System;

            using Didit;


            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID

            // and DIDIT_APPLICATION_ID.

            using var client = new DiditClient();


            var content = await
            client.Transactions.GeneratePdfAsync("abcdef12-3456-7890-abcd-ef1234567890");

            await content.SaveToAsync("download.pdf");
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        आपकी एप्लिकेशन की 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।

````

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