Set up crypto external account verification
curl --request PUT \
--url https://api.enterprise.sandbox.uphold.com/core/external-accounts/{externalAccountId}/verifications/{level} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.enterprise.sandbox.uphold.com/core/external-accounts/{externalAccountId}/verifications/{level}"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.enterprise.sandbox.uphold.com/core/external-accounts/{externalAccountId}/verifications/{level}', 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://api.enterprise.sandbox.uphold.com/core/external-accounts/{externalAccountId}/verifications/{level}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.enterprise.sandbox.uphold.com/core/external-accounts/{externalAccountId}/verifications/{level}"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.enterprise.sandbox.uphold.com/core/external-accounts/{externalAccountId}/verifications/{level}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enterprise.sandbox.uphold.com/core/external-accounts/{externalAccountId}/verifications/{level}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"verification": {
"via": "request-for-information",
"level": "declared",
"status": "pending",
"requestForInformation": {
"id": "19ca55fb-fc52-4209-b765-e3dbdc327231",
"type": "crypto-address-travel-rule",
"status": "pending",
"context": {
"network": "bitcoin",
"addresses": [
"mmLpwJCSnw3SEiN1un8GACvwx4f1ddB6SV"
]
},
"proofOptions": {
"selfDeclaration": {
"schema": {
"type": "object",
"required": [
"isVASP",
"isSelfHostedWallet",
"isSelfOwnedCryptoAddress"
],
"properties": {
"isVASP": {
"type": "boolean"
},
"isSelfHostedWallet": {
"type": "boolean"
},
"isSelfOwnedCryptoAddress": {
"type": "boolean"
}
}
}
}
}
}
}
}{
"verification": {
"via": "request-for-information",
"level": "declared",
"status": "pending",
"requestForInformation": {
"id": "19ca55fb-fc52-4209-b765-e3dbdc327231",
"type": "crypto-address-travel-rule",
"status": "pending",
"context": {
"network": "bitcoin",
"addresses": [
"mmLpwJCSnw3SEiN1un8GACvwx4f1ddB6SV"
]
},
"proofOptions": {
"selfDeclaration": {
"schema": {
"type": "object",
"required": [
"isVASP",
"isSelfHostedWallet",
"isSelfOwnedCryptoAddress"
],
"properties": {
"isVASP": {
"type": "boolean"
},
"isSelfHostedWallet": {
"type": "boolean"
},
"isSelfOwnedCryptoAddress": {
"type": "boolean"
}
}
}
}
}
}
}
}{
"code": "entity_not_found",
"message": "The external account cannot be found",
"details": {
"entity": "external-account"
}
}{
"code": "operation_not_allowed",
"message": "A stronger verification is already completed for this address",
"details": {
"reasons": [
"stronger-verification-already-completed"
]
}
}External accounts
Set up crypto external account verification
Sets up a single-level verification process for a crypto external account.
PUT
/
core
/
external-accounts
/
{externalAccountId}
/
verifications
/
{level}
Set up crypto external account verification
curl --request PUT \
--url https://api.enterprise.sandbox.uphold.com/core/external-accounts/{externalAccountId}/verifications/{level} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.enterprise.sandbox.uphold.com/core/external-accounts/{externalAccountId}/verifications/{level}"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.enterprise.sandbox.uphold.com/core/external-accounts/{externalAccountId}/verifications/{level}', 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://api.enterprise.sandbox.uphold.com/core/external-accounts/{externalAccountId}/verifications/{level}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.enterprise.sandbox.uphold.com/core/external-accounts/{externalAccountId}/verifications/{level}"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.enterprise.sandbox.uphold.com/core/external-accounts/{externalAccountId}/verifications/{level}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enterprise.sandbox.uphold.com/core/external-accounts/{externalAccountId}/verifications/{level}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"verification": {
"via": "request-for-information",
"level": "declared",
"status": "pending",
"requestForInformation": {
"id": "19ca55fb-fc52-4209-b765-e3dbdc327231",
"type": "crypto-address-travel-rule",
"status": "pending",
"context": {
"network": "bitcoin",
"addresses": [
"mmLpwJCSnw3SEiN1un8GACvwx4f1ddB6SV"
]
},
"proofOptions": {
"selfDeclaration": {
"schema": {
"type": "object",
"required": [
"isVASP",
"isSelfHostedWallet",
"isSelfOwnedCryptoAddress"
],
"properties": {
"isVASP": {
"type": "boolean"
},
"isSelfHostedWallet": {
"type": "boolean"
},
"isSelfOwnedCryptoAddress": {
"type": "boolean"
}
}
}
}
}
}
}
}{
"verification": {
"via": "request-for-information",
"level": "declared",
"status": "pending",
"requestForInformation": {
"id": "19ca55fb-fc52-4209-b765-e3dbdc327231",
"type": "crypto-address-travel-rule",
"status": "pending",
"context": {
"network": "bitcoin",
"addresses": [
"mmLpwJCSnw3SEiN1un8GACvwx4f1ddB6SV"
]
},
"proofOptions": {
"selfDeclaration": {
"schema": {
"type": "object",
"required": [
"isVASP",
"isSelfHostedWallet",
"isSelfOwnedCryptoAddress"
],
"properties": {
"isVASP": {
"type": "boolean"
},
"isSelfHostedWallet": {
"type": "boolean"
},
"isSelfOwnedCryptoAddress": {
"type": "boolean"
}
}
}
}
}
}
}
}{
"code": "entity_not_found",
"message": "The external account cannot be found",
"details": {
"entity": "external-account"
}
}{
"code": "operation_not_allowed",
"message": "A stronger verification is already completed for this address",
"details": {
"reasons": [
"stronger-verification-already-completed"
]
}
}
Set up crypto external account verification initiates a verification for a
crypto external account at the given level, or returns the existing one.Authorizations
OAuth 2.0 authentication.
Path Parameters
The external account identifier.
The level of the verification.
Available options:
declared Response
Verification set up or initiated.
Show child attributes
Show child attributes
Was this page helpful?