curl -X POST https://verification.didit.me/v3/travel-rule/pickup/{token}/respond/ \
-H 'Content-Type: application/json' \
-d '{"decision": "accept", "beneficiary_name": "Carlos Ruiz"}'import requests
url = "https://verification.didit.me/v3/travel-rule/pickup/{token}/respond/"
payload = {
"decision": "accept",
"beneficiary_name": "Carlos Ruiz"
}
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({decision: 'accept', beneficiary_name: 'Carlos Ruiz'})
};
fetch('https://verification.didit.me/v3/travel-rule/pickup/{token}/respond/', 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/pickup/{token}/respond/",
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([
'decision' => 'accept',
'beneficiary_name' => 'Carlos Ruiz'
]),
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/pickup/{token}/respond/"
payload := strings.NewReader("{\n \"decision\": \"accept\",\n \"beneficiary_name\": \"Carlos Ruiz\"\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/pickup/{token}/respond/")
.header("Content-Type", "application/json")
.body("{\n \"decision\": \"accept\",\n \"beneficiary_name\": \"Carlos Ruiz\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/travel-rule/pickup/{token}/respond/")
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 \"decision\": \"accept\",\n \"beneficiary_name\": \"Carlos Ruiz\"\n}"
response = http.request(request)
puts response.read_body{
"status": "COMPLETED"
}API di risposta al pickup via email: Travel Rule
Con Didit, accetta o rifiuta uno scambio Travel Rule da un link di pickup email monouso e fornisci il nome del beneficiario.
curl -X POST https://verification.didit.me/v3/travel-rule/pickup/{token}/respond/ \
-H 'Content-Type: application/json' \
-d '{"decision": "accept", "beneficiary_name": "Carlos Ruiz"}'import requests
url = "https://verification.didit.me/v3/travel-rule/pickup/{token}/respond/"
payload = {
"decision": "accept",
"beneficiary_name": "Carlos Ruiz"
}
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({decision: 'accept', beneficiary_name: 'Carlos Ruiz'})
};
fetch('https://verification.didit.me/v3/travel-rule/pickup/{token}/respond/', 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/pickup/{token}/respond/",
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([
'decision' => 'accept',
'beneficiary_name' => 'Carlos Ruiz'
]),
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/pickup/{token}/respond/"
payload := strings.NewReader("{\n \"decision\": \"accept\",\n \"beneficiary_name\": \"Carlos Ruiz\"\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/pickup/{token}/respond/")
.header("Content-Type", "application/json")
.body("{\n \"decision\": \"accept\",\n \"beneficiary_name\": \"Carlos Ruiz\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/travel-rule/pickup/{token}/respond/")
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 \"decision\": \"accept\",\n \"beneficiary_name\": \"Carlos Ruiz\"\n}"
response = http.request(request)
puts response.read_body{
"status": "COMPLETED"
}Parametri del percorso
Parametri della query
Il valore ?contact= del link. Utilizzato quando il payload non invia alcun contact.
Corpo
accept, decline Il nome del beneficiario registrato nei tuoi archivi, elaborato tramite la regola sui nomi del VASP ordinante. ivms_response ha la precedenza se indica il beneficiario.
255Il motivo per cui rifiuti. Registrato nella cronologia dei trasferimenti del VASP mittente. Vuoto (valore predefinito) se non indichi alcun motivo.
, data_mismatch, not_our_customer, wallet_not_hosted, sanctions, risk_appetite, jurisdiction, insufficient_data, other Testo libero; obbligatorio quando decision è decline e decline_reason è other.
512La tua risposta IVMS 101 completa. Il rispettivo nome del beneficiario ha la precedenza su beneficiary_name.
Il contatto a cui è stato inviato il link, ricavato dal valore ?contact= del link. Quando il body lo omette, viene utilizzato il parametro di query contact.