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

# 保存 Travel Rule 网络问卷 API

> 通过 Didit 保存网络尽职调查问卷的答案。保存为部分更新，未提交的答案会被保留。



保存网络问卷答案 API 提示词
        将提示词复制到剪贴板



      
      

\<pre>

\`Save answers to Didit's network due-diligence questionnaire for my application.

Endpoint:
PUT https://verification.didit.me/v3/travel-rule/networks/questionnaire/

Authentication:
Use the x-api-key header with my Didit API key.

Request body (application/json), every field optional on a save:
\{
"legal_name": "Example VASP Ltd",
"registration_number": "B-12345678",
"incorporation_country": "ES",
"registered_address": "1 Example Street, Madrid",
"website": "https://example.com",
"lei": "",                                   // optional; a valid ISO 17442 LEI when given
"licences": [{"regulator": "Example Regulator", "jurisdiction": "ES", "licence_type": "CASP", "licence_number": "123"}],
"operating_jurisdictions": ["ES", "PT"],
"compliance_officer_name": "Jane Doe",
"compliance_officer_email": "compliance@example.com",
"aml_ctf_policy_attested": true,
"sanctions_screening_attested": true,
"data_protection_attested": true,
"data_protection_contact_email": "privacy@example.com",   // optional
"expected_monthly_transfers": 500,
"expected_monthly_volume_usd": "250000.00",
"assets": ["BTC", "USDC"]
}

Behavior:
\- Saves are partial: answers you do not send are kept.
\- Only possible while the status is draft or changes_requested (409 otherwise).
\- 403 travel_rule_platform_networks_disabled until network access through Didit opens.

Full guide: /transaction-monitoring/travel-rule.`

\</pre>



      
      

粘贴到



## OpenAPI

````yaml zh/openapi-25.json PUT /v3/travel-rule/networks/questionnaire/
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/travel-rule/networks/questionnaire/:
    put:
      tags:
        - Travel Rule
      summary: 保存网络问卷答案
      description: 在问卷处于 draft 或 changes_requested 状态时保存答案。保存操作是部分保存：您未发送的答案将被保留。
      operationId: updateTravelRuleNetworkQuestionnaire
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TravelRuleNetworkQuestionnaireAnswers'
            example:
              legal_name: Example VASP Ltd
              incorporation_country: ES
              aml_ctf_policy_attested: true
      responses:
        '200':
          description: 包含合并后答案的问卷。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TravelRuleNetworkQuestionnaire'
        '400':
          description: 验证错误，以字段为键。
        '401':
          description: API 密钥缺失或无效。
        '403':
          description: 通过 Didit 会员资格访问网络目前尚未开放。
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                    enum:
                      - travel_rule_platform_networks_disabled
        '409':
          description: 问卷由 Didit 处理或已做出决策：仅在处于 draft 或 changes_requested 状态时才可更改。
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                    enum:
                      - travel_rule_questionnaire_not_editable
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X PUT
            https://verification.didit.me/v3/travel-rule/networks/questionnaire/
            \
              -H 'x-api-key: YOUR_API_KEY' \
              -H 'Content-Type: application/json' \
              -d '{"legal_name": "Example VASP Ltd", "incorporation_country": "ES", "aml_ctf_policy_attested": true}'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY.
            client = Didit()

            result = client.travel_rule.networks.update_questionnaire(
                legal_name="Example VASP Ltd",
                incorporation_country="ES",
                aml_ctf_policy_attested=True,
            )
            print(result)
        - lang: javascript
          label: Node.js
          source: |-
            import Didit from "@didit-protocol/sdk-node";

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

            const result = await didit.travelRule.networks.updateQuestionnaire({
              legal_name: "Example VASP Ltd",
              incorporation_country: "ES",
              aml_ctf_policy_attested: true,
            });
            console.log(result);
        - lang: java
          label: Java
          source: >-
            import me.didit.Didit;

            import me.didit.types.TravelRuleNetworkQuestionnaireAnswers;


            // Reads DIDIT_API_KEY.

            Didit client = new Didit();


            var result =
            client.travelRule().networks().updateQuestionnaire(TravelRuleNetworkQuestionnaireAnswers.builder()
                    .legalName("Example VASP Ltd")
                    .incorporationCountry("ES")
                    .amlCtfPolicyAttested(true)
                    .build());
            System.out.println(result);
        - lang: php
          label: PHP
          source: |-
            <?php

            require 'vendor/autoload.php';

            use Didit\DiditClient;

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

            $result = $didit->travelRule->networks->updateQuestionnaire([
                'legal_name' => 'Example VASP Ltd',
                'incorporation_country' => 'ES',
                'aml_ctf_policy_attested' => true,
            ]);
            print_r($result->toArray());
        - lang: ruby
          label: Ruby
          source: |-
            require "didit"

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

            result = didit.travel_rule.networks.update_questionnaire(
              legal_name: "Example VASP Ltd",
              incorporation_country: "ES",
              aml_ctf_policy_attested: true
            )
            puts result.to_h
        - lang: csharp
          label: .NET
          source: >-
            using System;

            using System.Text.Json;

            using Didit;


            // Reads DIDIT_API_KEY.

            using var client = new DiditClient();


            var result = await
            client.TravelRule.Networks.UpdateQuestionnaireAsync(new
            TravelRuleNetworkQuestionnaireAnswers

            {
                LegalName = "Example VASP Ltd",
                IncorporationCountry = "ES",
                AmlCtfPolicyAttested = true,
            });

            Console.WriteLine(JsonSerializer.Serialize(result));
components:
  schemas:
    TravelRuleNetworkQuestionnaireAnswers:
      type: object
      description: >-
        Didit 网络尽职调查问卷。保存操作是部分保存：保存会保留所有未提及的答案。提交时除 lei 和
        data_protection_contact_email 之外的所有字段均为必填项，且三项证明必须为 true。
      properties:
        legal_name:
          type: string
          maxLength: 255
        registration_number:
          type: string
          maxLength: 255
        incorporation_country:
          type: string
          minLength: 2
          maxLength: 2
          description: ISO 3166-1 alpha-2 国家/地区代码。
        registered_address:
          type: string
          maxLength: 1000
        website:
          type: string
          format: uri
          maxLength: 500
        lei:
          type: string
          maxLength: 20
          description: 可选。若提供，须为有效的 ISO 17442 LEI。
        licences:
          type: array
          minItems: 1
          items:
            type: object
            required:
              - regulator
              - jurisdiction
              - licence_type
              - licence_number
            properties:
              regulator:
                type: string
                maxLength: 255
              jurisdiction:
                type: string
                minLength: 2
                maxLength: 2
                description: ISO 3166-1 alpha-2 国家/地区代码。
              licence_type:
                type: string
                maxLength: 255
              licence_number:
                type: string
                maxLength: 255
          description: 该 VASP 持有的每项许可证或注册。
        operating_jurisdictions:
          type: array
          minItems: 1
          maxItems: 250
          items:
            type: string
            minLength: 2
            maxLength: 2
            description: ISO 3166-1 alpha-2 国家/地区代码。
        compliance_officer_name:
          type: string
          maxLength: 255
        compliance_officer_email:
          type: string
          format: email
        aml_ctf_policy_attested:
          type: boolean
          description: 提交时必须为 true。
        sanctions_screening_attested:
          type: boolean
          description: 提交时必须为 true。
        data_protection_attested:
          type: boolean
          description: 提交时必须为 true。
        data_protection_contact_email:
          type: string
          format: email
          description: 可选。
        expected_monthly_transfers:
          type: integer
          minimum: 0
        expected_monthly_volume_usd:
          type: string
          format: decimal
          description: 预期的每月交易量（美元），最多保留 2 位小数。以字符串形式返回。
        assets:
          type: array
          minItems: 1
          maxItems: 200
          items:
            type: string
            maxLength: 32
          description: 资产代号，存储为大写、已排序并去重。
    TravelRuleNetworkQuestionnaire:
      type: object
      properties:
        status:
          type: string
          enum:
            - draft
            - submitted
            - changes_requested
            - approved
            - rejected
          description: >-
            答案可在 draft 或 changes_requested 状态下保存；submitted、approved 和 rejected
            则由 Didit 负责推进。
        answers:
          $ref: '#/components/schemas/TravelRuleNetworkQuestionnaireAnswers'
        submitted_at:
          type: string
          format: date-time
          nullable: true
        reviewed_at:
          type: string
          format: date-time
          nullable: true
        review_note:
          type: string
          description: Didit 对其最新决策的备注，例如需要修改的内容。
        history:
          type: array
          readOnly: true
          description: 每次状态变更，按时间正序排列。
          items:
            type: object
            properties:
              at:
                type: string
                format: date-time
              from:
                type: string
              to:
                type: string
              note:
                type: string
                description: 审核备注或网络回复（如果有）。
        updated_at:
          type: string
          format: date-time
          nullable: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        您的应用 API 密钥，可在 Business Console 的“开发者 -> API
        密钥”中获取。主密钥拥有完整访问权限。指定名称的密钥可设置作用域：针对每个资源设为无权限、只读或读写，限定于特定工作流或已通过的会话、限定于
        IP 地址列表，以及设置到期日期。401 表示密钥错误、已撤销或已过期；403 表示未发送密钥、密钥无权访问该资源或操作，或请求来自其 IP
        列表之外的地址；在会话路由上返回 404 表示该会话不在该密钥允许的工作流或状态范围内。没有媒体访问权限的密钥获取到的图片、视频和 PDF
        URL 将为 null；没有会话写入权限的密钥获取到的会话链接和 token 将为 null。请参阅
        https://docs.didit.me/console/api-keys。

````

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