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"
}Responder a recogida por email: API de Travel Rule
Con la API de Didit, acepta o rechaza un intercambio de Travel Rule desde un enlace de email de un solo uso e indica el nombre 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"
}Parámetros de ruta
Parámetros de consulta
El valor ?contact= del enlace. Se usa cuando el cuerpo no envía contact.
Cuerpo
accept, decline El nombre del beneficiario tal como figura en tus registros, evaluado con la regla de nombres del VASP emisor. ivms_response tiene prioridad cuando indica el nombre del beneficiario.
255Por qué rechazas. Se registra en la cronología de la transferencia del VASP emisor. Vacío (el valor predeterminado) cuando no indicas ningún motivo.
, data_mismatch, not_our_customer, wallet_not_hosted, sanctions, risk_appetite, jurisdiction, insufficient_data, other Texto libre; obligatorio cuando decision es decline y decline_reason es other.
512Tu respuesta IVMS 101 completa. Su nombre de beneficiario prevalece sobre beneficiary_name.
El contacto al que se envió el enlace, tomado del valor ?contact= del enlace. Si el cuerpo no lo incluye, se usa el parámetro de consulta contact.