curl
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"}'import requests
url = "https://verification.didit.me/v3/travel-rule/widget/{token}/vasps/"
payload = { "vasp": "9f1c2b34-5d6e-4f70-8a91-b2c3d4e5f607" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({vasp: '9f1c2b34-5d6e-4f70-8a91-b2c3d4e5f607'})
};
fetch('https://verification.didit.me/v3/travel-rule/widget/{token}/vasps/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://verification.didit.me/v3/travel-rule/widget/{token}/vasps/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'vasp' => '9f1c2b34-5d6e-4f70-8a91-b2c3d4e5f607'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://verification.didit.me/v3/travel-rule/widget/{token}/vasps/"
payload := strings.NewReader("{\n \"vasp\": \"9f1c2b34-5d6e-4f70-8a91-b2c3d4e5f607\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://verification.didit.me/v3/travel-rule/widget/{token}/vasps/")
.header("Content-Type", "application/json")
.body("{\n \"vasp\": \"9f1c2b34-5d6e-4f70-8a91-b2c3d4e5f607\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/travel-rule/widget/{token}/vasps/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"vasp\": \"9f1c2b34-5d6e-4f70-8a91-b2c3d4e5f607\"\n}"
response = http.request(request)
puts response.read_body{
"detail": "Counterparty VASP selected; the transfer is being resent.",
"transfer_status": "AWAITING_COUNTERPARTY",
"counterparty_vasp": "Northwind Exchange"
}{
"vasp": [
"No directory entry has this id."
]
}Travel Rule
Widget VASP Selection API: Travel Rule Counterparty
Public, token-keyed endpoint where the end user picks the destination VASP that discovery could not name, and the Travel Rule transfer is routed to it.
POST
/
v3
/
travel-rule
/
widget
/
{token}
/
vasps
/
curl
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"}'import requests
url = "https://verification.didit.me/v3/travel-rule/widget/{token}/vasps/"
payload = { "vasp": "9f1c2b34-5d6e-4f70-8a91-b2c3d4e5f607" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({vasp: '9f1c2b34-5d6e-4f70-8a91-b2c3d4e5f607'})
};
fetch('https://verification.didit.me/v3/travel-rule/widget/{token}/vasps/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://verification.didit.me/v3/travel-rule/widget/{token}/vasps/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'vasp' => '9f1c2b34-5d6e-4f70-8a91-b2c3d4e5f607'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://verification.didit.me/v3/travel-rule/widget/{token}/vasps/"
payload := strings.NewReader("{\n \"vasp\": \"9f1c2b34-5d6e-4f70-8a91-b2c3d4e5f607\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://verification.didit.me/v3/travel-rule/widget/{token}/vasps/")
.header("Content-Type", "application/json")
.body("{\n \"vasp\": \"9f1c2b34-5d6e-4f70-8a91-b2c3d4e5f607\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/travel-rule/widget/{token}/vasps/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"vasp\": \"9f1c2b34-5d6e-4f70-8a91-b2c3d4e5f607\"\n}"
response = http.request(request)
puts response.read_body{
"detail": "Counterparty VASP selected; the transfer is being resent.",
"transfer_status": "AWAITING_COUNTERPARTY",
"counterparty_vasp": "Northwind Exchange"
}{
"vasp": [
"No directory entry has this id."
]
}Path Parameters
Opaque session token returned when the widget session was minted.
Body
application/json
The id of a VASP from GET /v3/travel-rule/widget/{token}/vasps/.