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

# Очистить решение по контрагенту VASP: API Travel Rule

> Очистите решение вашего приложения по контрагенту VASP в Travel Rule в Didit; после этого организация снова следует решению своего бренда.



Промпт API: сброс решения VASP
        Скопировать промпт в буфер обмена



      
      

\<pre>

\`Clear my application's own decision on a Travel Rule counterparty VASP.

Endpoint:
DELETE https://verification.didit.me/v3/travel-rule/vasps/{vasp_id}/decision/

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

What happens:
\- 200 with {"decision": ...}: the decision that applies once mine is cleared. That is null, or for an entity of a brand the brand's decision, which the entity follows again (inherited_from names the brand).
\- Transactions my rules evaluate afterwards read the new counterparty_dd_status.

Failure modes:
\- 404 - no directory entry or listed Didit network member has this id, or my application has no decision of its own on it. A decision the entity only follows from its brand is cleared on the brand.

Full guide: /transaction-monitoring/travel-rule#your-decision-on-a-counterparty.`

\</pre>



      
      

Вставьте в



## OpenAPI

````yaml ru/openapi-25.json DELETE /v3/travel-rule/vasps/{vasp_id}/decision/
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/vasps/{vasp_id}/decision/:
    delete:
      tags:
        - Travel Rule
      summary: Сбросить ваше решение по VASP
      description: >-
        Сбросить собственное решение вашего приложения по контрагенту. Ответ
        содержит решение, которое применяется после этого: null или, для
        сущности бренда, решение бренда, которому эта сущность снова следует.
      operationId: clearTravelRuleVaspDecision
      parameters:
        - name: vasp_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: >-
            id строки из GET /v3/travel-rule/vasps/: запись справочника или
            участник сети Didit.
      responses:
        '200':
          description: >-
            Решение сброшено; тело ответа содержит решение, которое применяется
            сейчас.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TravelRuleCounterpartyDecisionResponse'
              example:
                decision: null
        '404':
          description: >-
            Ни один контрагент не имеет такого id, либо у вашего приложения нет
            собственного решения по нему (решение, унаследованное только от
            бренда, нельзя сбросить здесь: сбросьте решение бренда).
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
              examples:
                Unknown id:
                  value:
                    detail: No directory entry or Didit network member has this id.
                No decision of its own:
                  value:
                    detail: >-
                      This application has no decision of its own on this
                      counterparty.
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X DELETE
            https://verification.didit.me/v3/travel-rule/vasps/{vasp_id}/decision/
            \
              -H 'x-api-key: YOUR_API_KEY'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY.
            client = Didit()

            result = client.travel_rule.clear_vasp_decision(
                "11111111-2222-3333-4444-555555555555",
            )
            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.clearVaspDecision("11111111-2222-3333-4444-555555555555");

            console.log(result);
        - lang: go
          label: Go
          source: "ctx := context.Background()\n// Reads DIDIT_API_KEY.\nclient := didit.NewClient()\n\nresult, err := client.TravelRule.ClearVASPDecision(ctx, \"11111111-2222-3333-4444-555555555555\")\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Printf(\"%+v\\n\", result)"
        - lang: java
          label: Java
          source: >-
            import me.didit.Didit;


            // Reads DIDIT_API_KEY.

            Didit client = new Didit();


            var result =
            client.travelRule().clearVaspDecision("11111111-2222-3333-4444-555555555555");

            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->clearVaspDecision('11111111-2222-3333-4444-555555555555');

            print_r($result->toArray());
        - lang: ruby
          label: Ruby
          source: >-
            require "didit"


            # Reads DIDIT_API_KEY.

            didit = Didit::Client.new


            result =
            didit.travel_rule.clear_vasp_decision("11111111-2222-3333-4444-555555555555")

            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.ClearVaspDecisionAsync("11111111-2222-3333-4444-555555555555");

            Console.WriteLine(JsonSerializer.Serialize(result));
components:
  schemas:
    TravelRuleCounterpartyDecisionResponse:
      type: object
      properties:
        decision:
          allOf:
            - $ref: '#/components/schemas/TravelRuleCounterpartyDecision'
          nullable: true
          description: >-
            Решение, применимое к контрагенту для вашего приложения: собственное
            или (для сущности бренда) решение бренда. Null, если решение
            отсутствует.
    TravelRuleCounterpartyDecision:
      type: object
      description: >-
        Решение вашего приложения по VASP-контрагенту. Доступно только вашему
        приложению: оно никогда не изменяет общую запись каталога, и другой
        клиент никогда его не увидит. Оно действует только через ваши правила
        транзакций (поле правила counterparty_dd_status и пресеты
        travel-rule-counterparty-blocked и travel-rule-counterparty-restricted);
        оно никогда не меняет маршрутизацию перевода.
      properties:
        decision:
          type: string
          enum:
            - APPROVED
            - RESTRICTED
            - BLOCKED
          description: >-
            APPROVED: ваша команда подтвердила контрагента. RESTRICTED: переводы
            в его адрес могут быть выполнены после проверки. BLOCKED: ваша
            команда отклонила его.
        reason:
          type: string
          maxLength: 255
          description: >-
            Указанная вами причина в виде произвольного текста; пустая строка,
            если причина не указана.
        decided_by:
          type: string
          description: >-
            Пользователь консоли, который принял или последним изменил решение.
            Пусто, если оно было принято с помощью API-ключа.
        updated_at:
          type: string
          format: date-time
        inherited_from:
          type: object
          nullable: true
          description: >-
            Бренд, решению которого следует эта сущность, поскольку вы не
            приняли решение по самой сущности. Null, если решение принято самим
            контрагентом.
          properties:
            id:
              type: string
              format: uuid
            name:
              type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API-ключ вашего приложения из раздела «Разработчикам» -> «API-ключи» в
        Business Console. Основной ключ имеет полный доступ. Именованный ключ
        может иметь ограниченную область действия: без доступа, чтение или
        запись для каждого ресурса, ограничение определенными сценариями или
        одобренными сессиями, списком IP-адресов и сроком действия. 401
        означает, что ключ неверен, отозван или его срок действия истек; 403
        означает, что ключ не был передан, у ключа нет доступа к этому ресурсу
        или действию, либо запрос поступил с адреса вне его списка IP-адресов;
        404 на маршруте сессии означает, что сессия не входит в сценарии или
        статусы ключа. Ключ без доступа к медиа получает URL изображений, видео
        и PDF как null, а ключ без прав на запись сессий получает ссылки на
        сессии и токены как null. См. https://docs.didit.me/console/api-keys.

````

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