> ## 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 거래 상대방

> Didit의 공개 토큰 기반 엔드포인트. 탐색으로 찾지 못한 수신 VASP를 최종 사용자가 직접 선택하면 Travel Rule 전송이 해당 VASP로 라우팅됩니다.



위젯 VASP 선택 API 프롬프트
        프롬프트를 클립보드에 복사



      
      

\<pre>

\`Record the destination VASP an end user picked in the wallet widget, for an outbound Travel Rule transfer whose counterparty discovery could not name.

Endpoint:
POST https://verification.didit.me/v3/travel-rule/widget/{token}/vasps/

Authentication:
None - the widget token in the URL path is the credential. Treat the token as a secret.

Body:
\{"vasp": "id from GET /v3/travel-rule/widget/{token}/vasps/"}

What happens:
\- The transfer is routed to that VASP and sent again. Automatic discovery never overrides the pick.
\- Allowed only for an outbound transfer in COUNTERPARTY_VASP_NOT_FOUND, COUNTERPARTY_VASP_NOT_REACHABLE, or NOT_ENOUGH_COUNTERPARTY_DATA.

What to read from the response:
\- transfer_status - the transfer status after the pick.
\- counterparty_vasp - the name of the VASP that was picked.

Failure modes:
\- 400 - vasp is missing, or no live directory entry has that id.
\- 404 - unknown token.
\- 409 - the widget session is not linked to a transfer, or the transfer is not in a status that accepts a counterparty.
\- 410 - the session expired.

Full guide: /transaction-monitoring/travel-rule#counterparty-discovery.`

\</pre>



      
      

붙여넣을 곳



## OpenAPI

````yaml ko/openapi-25.json POST /v3/travel-rule/widget/{token}/vasps/
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/widget/{token}/vasps/:
    post:
      tags:
        - Travel Rule
      summary: 지갑 위젯에서 거래 상대방 VASP 선택
      description: >-
        위젯 세션 token으로 식별되는 공개 쓰기 endpoint이며 API 키가 필요하지 않습니다. 자동 감지로 확인할 수 없었던
        대상 VASP를 최종 사용자가 직접 선택한 경우입니다. COUNTERPARTY_VASP_NOT_FOUND,
        COUNTERPARTY_VASP_NOT_REACHABLE 또는 NOT_ENOUGH_COUNTERPARTY_DATA 상태의
        아웃바운드 전송만 이를 허용합니다. 전송은 해당 VASP로 라우팅되어 다시 발송되며, 자동 감지가 이 선택을 덮어쓰지 않습니다.
      operationId: selectTravelRuleWidgetVasp
      parameters:
        - name: token
          in: path
          required: true
          description: 위젯 세션이 생성되었을 때 반환된 불투명 세션 token입니다.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - vasp
              properties:
                vasp:
                  type: string
                  format: uuid
                  description: >-
                    `GET /v3/travel-rule/widget/{token}/vasps/`에서 가져온 VASP의
                    `id`입니다.
            example:
              vasp: 9f1c2b34-5d6e-4f70-8a91-b2c3d4e5f607
      responses:
        '200':
          description: 선택이 기록되었으며 전송이 다시 실행되는 중입니다.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  transfer_status:
                    type: string
                    description: 선택 후의 전송 상태입니다.
                  counterparty_vasp:
                    type: string
                    description: 최종 사용자가 선택한 VASP의 이름입니다.
              example:
                detail: Counterparty VASP selected; the transfer is being resent.
                transfer_status: AWAITING_COUNTERPARTY
                counterparty_vasp: Northwind Exchange
        '400':
          description: '`vasp`가 누락되었거나 활성 디렉터리 항목에 해당 ID가 없습니다.'
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: array
                  items:
                    type: string
              example:
                vasp:
                  - No directory entry has this id.
        '404':
          description: 알 수 없는 token입니다.
        '409':
          description: >-
            위젯 세션이 Travel Rule 전송에 연결되어 있지 않거나, 전송이 거래 상대방을 수락하는 상태의 송신 전송이
            아닙니다.
        '410':
          description: 세션이 만료되었습니다.
      security:
        - {}
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X POST
            https://verification.didit.me/v3/travel-rule/widget/{token}/vasps/ \
              -H 'Content-Type: application/json' \
              -d '{"vasp": "9f1c2b34-5d6e-4f70-8a91-b2c3d4e5f607"}'

````

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