> ## 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: salva questionario di rete con API

> Salva le risposte al questionario di due diligence di rete di Didit. I salvataggi sono parziali e mantengono ogni risposta non inviata.



Prompt API per salvare le risposte al questionario della rete
        Copia il prompt negli appunti



      
      

\<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>



      
      

Incolla in



## OpenAPI

````yaml it/openapi-25.json PUT /v3/travel-rule/networks/questionnaire/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: API di verifica dell'identità. Autenticati con l'intestazione x-api-key.
servers:
  - url: https://verification.didit.me
security: []
tags: []
paths:
  /v3/travel-rule/networks/questionnaire/:
    put:
      tags:
        - Travel Rule
      summary: Salva le risposte al questionario di rete
      description: >-
        Salva le risposte al questionario finché si trova nello stato draft o
        changes_requested. I salvataggi sono parziali: le risposte non inviate
        vengono mantenute.
      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: Il questionario con le risposte unite.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TravelRuleNetworkQuestionnaire'
        '400':
          description: Errore di validazione, indicizzato per campo.
        '401':
          description: Chiave API mancante o non valida.
        '403':
          description: L'accesso alla rete tramite l'adesione a Didit non è ancora aperto.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                    enum:
                      - travel_rule_platform_networks_disabled
        '409':
          description: >-
            Il questionario è in carico a Didit o è stato deciso: può cambiare
            solo quando è in stato draft o 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: >-
        Questionario di due diligence di rete di Didit. I salvataggi sono
        parziali: un salvataggio conserva ogni risposta non indicata. L'invio
        richiede tutti i campi tranne lei e data_protection_contact_email, e che
        le tre attestazioni siano true.
      properties:
        legal_name:
          type: string
          maxLength: 255
        registration_number:
          type: string
          maxLength: 255
        incorporation_country:
          type: string
          minLength: 2
          maxLength: 2
          description: Codice paese ISO 3166-1 alpha-2.
        registered_address:
          type: string
          maxLength: 1000
        website:
          type: string
          format: uri
          maxLength: 500
        lei:
          type: string
          maxLength: 20
          description: Opzionale. Un LEI ISO 17442 valido, se fornito.
        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: Codice paese ISO 3166-1 alpha-2.
              licence_type:
                type: string
                maxLength: 255
              licence_number:
                type: string
                maxLength: 255
          description: Ogni licenza o registrazione detenuta dal VASP.
        operating_jurisdictions:
          type: array
          minItems: 1
          maxItems: 250
          items:
            type: string
            minLength: 2
            maxLength: 2
            description: Codice paese 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: Deve essere true per l'invio.
        sanctions_screening_attested:
          type: boolean
          description: Deve essere true per l'invio.
        data_protection_attested:
          type: boolean
          description: Deve essere true per l'invio.
        data_protection_contact_email:
          type: string
          format: email
          description: Opzionale.
        expected_monthly_transfers:
          type: integer
          minimum: 0
        expected_monthly_volume_usd:
          type: string
          format: decimal
          description: >-
            Volume mensile previsto in USD, fino a 2 cifre decimali. Restituito
            come stringa.
        assets:
          type: array
          minItems: 1
          maxItems: 200
          items:
            type: string
            maxLength: 32
          description: >-
            Ticker degli asset, memorizzati in maiuscolo, ordinati e
            deduplicati.
    TravelRuleNetworkQuestionnaire:
      type: object
      properties:
        status:
          type: string
          enum:
            - draft
            - submitted
            - changes_requested
            - approved
            - rejected
          description: >-
            Le risposte possono essere salvate mentre sono in bozza o in
            modifiche richieste; gli stati di invio, approvazione e rifiuto
            vengono gestiti da 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: >-
            Nota di Didit sulla sua ultima decisione, ad esempio le modifiche da
            apportare.
        history:
          type: array
          readOnly: true
          description: Ogni cambio di stato, dal più vecchio al più recente.
          items:
            type: object
            properties:
              at:
                type: string
                format: date-time
              from:
                type: string
              to:
                type: string
              note:
                type: string
                description: Nota di revisione o risposta della rete, quando presente.
        updated_at:
          type: string
          format: date-time
          nullable: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        La chiave API della tua applicazione, da Developers -> API keys nella
        Business Console. La chiave primaria ha accesso completo. Una chiave con
        nome può avere un ambito definito: nessuno, lettura o scrittura per
        risorsa, limitata ad alcuni workflow o a sessioni approvate, a un elenco
        di indirizzi IP e a una data di scadenza. 401 indica che la chiave è
        errata, revocata o scaduta; 403 indica che non è stata inviata alcuna
        chiave, che la chiave non ha accesso a questa risorsa o azione, oppure
        che la richiesta proviene da un indirizzo non incluso nel suo elenco IP;
        404 su una route di sessione indica che la sessione non rientra nei
        workflow o negli stati previsti dalla chiave. Una chiave senza accesso
        ai media riceve gli URL di immagini, video e PDF come null, e una chiave
        senza permessi di scrittura sulle sessioni riceve link e token di
        sessione come null. Consulta https://docs.didit.me/console/api-keys.

````

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