Update a registered blockchain address
curl --request PUT \
--url https://sandbox-api.borderless.xyz/v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accountAlias": "user@example.com",
"address": "0x46Be1B5b35708e369b943CE6094c6f0484d480A7",
"asset": "USDC_POLYGON",
"status": "Suspended"
}
'import requests
url = "https://sandbox-api.borderless.xyz/v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId}"
payload = {
"accountAlias": "user@example.com",
"address": "0x46Be1B5b35708e369b943CE6094c6f0484d480A7",
"asset": "USDC_POLYGON",
"status": "Suspended"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accountAlias: 'user@example.com',
address: '0x46Be1B5b35708e369b943CE6094c6f0484d480A7',
asset: 'USDC_POLYGON',
status: 'Suspended'
})
};
fetch('https://sandbox-api.borderless.xyz/v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId}', 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://sandbox-api.borderless.xyz/v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'accountAlias' => 'user@example.com',
'address' => '0x46Be1B5b35708e369b943CE6094c6f0484d480A7',
'asset' => 'USDC_POLYGON',
'status' => 'Suspended'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://sandbox-api.borderless.xyz/v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId}"
payload := strings.NewReader("{\n \"accountAlias\": \"user@example.com\",\n \"address\": \"0x46Be1B5b35708e369b943CE6094c6f0484d480A7\",\n \"asset\": \"USDC_POLYGON\",\n \"status\": \"Suspended\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://sandbox-api.borderless.xyz/v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accountAlias\": \"user@example.com\",\n \"address\": \"0x46Be1B5b35708e369b943CE6094c6f0484d480A7\",\n \"asset\": \"USDC_POLYGON\",\n \"status\": \"Suspended\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.borderless.xyz/v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountAlias\": \"user@example.com\",\n \"address\": \"0x46Be1B5b35708e369b943CE6094c6f0484d480A7\",\n \"asset\": \"USDC_POLYGON\",\n \"status\": \"Suspended\"\n}"
response = http.request(request)
puts response.read_bodyMastercard Crypto Credential
Update a registered blockchain address
Changes a registered address, addressed by its id. Use it either to change the status, or to replace the address, its asset, or the account alias it belongs to. Send only the fields you want to change.
PUT
/
v1
/
mastercard
/
crypto-credential
/
crypto-addresses
/
{cryptoAddressId}
Update a registered blockchain address
curl --request PUT \
--url https://sandbox-api.borderless.xyz/v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accountAlias": "user@example.com",
"address": "0x46Be1B5b35708e369b943CE6094c6f0484d480A7",
"asset": "USDC_POLYGON",
"status": "Suspended"
}
'import requests
url = "https://sandbox-api.borderless.xyz/v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId}"
payload = {
"accountAlias": "user@example.com",
"address": "0x46Be1B5b35708e369b943CE6094c6f0484d480A7",
"asset": "USDC_POLYGON",
"status": "Suspended"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accountAlias: 'user@example.com',
address: '0x46Be1B5b35708e369b943CE6094c6f0484d480A7',
asset: 'USDC_POLYGON',
status: 'Suspended'
})
};
fetch('https://sandbox-api.borderless.xyz/v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId}', 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://sandbox-api.borderless.xyz/v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'accountAlias' => 'user@example.com',
'address' => '0x46Be1B5b35708e369b943CE6094c6f0484d480A7',
'asset' => 'USDC_POLYGON',
'status' => 'Suspended'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://sandbox-api.borderless.xyz/v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId}"
payload := strings.NewReader("{\n \"accountAlias\": \"user@example.com\",\n \"address\": \"0x46Be1B5b35708e369b943CE6094c6f0484d480A7\",\n \"asset\": \"USDC_POLYGON\",\n \"status\": \"Suspended\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://sandbox-api.borderless.xyz/v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accountAlias\": \"user@example.com\",\n \"address\": \"0x46Be1B5b35708e369b943CE6094c6f0484d480A7\",\n \"asset\": \"USDC_POLYGON\",\n \"status\": \"Suspended\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.borderless.xyz/v1/mastercard/crypto-credential/crypto-addresses/{cryptoAddressId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountAlias\": \"user@example.com\",\n \"address\": \"0x46Be1B5b35708e369b943CE6094c6f0484d480A7\",\n \"asset\": \"USDC_POLYGON\",\n \"status\": \"Suspended\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Body
application/json
Replace the token tied to a specific blockchain held at the address.
Available options:
POL, USDT_POLYGON, USDC_POLYGON, SBC_POLYGON, ETH, USDT_ETHEREUM, USDC_ETHEREUM, PYUSD_ETHEREUM, DAI_ETHEREUM, EURC_ETHEREUM, SBC_ETHEREUM, TRX, USDT_TRON, SBC_TRON, ETH_BASE, USDC_BASE, USDB_BASE, USDB_ETHEREUM, EURC_BASE, SBC_BASE, ETH_OPTIMISM, USDT_OPTIMISM, USDC_OPTIMISM, BTC, CELO, CUSD_CELO, USDC_CELO, SBC_CELO, SOL, USDC_SOLANA, USDT_SOLANA, PYUSD_SOLANA, USDP_SOLANA, EURC_SOLANA, SBC_SOLANA Example:
"USDC_POLYGON"
Response
204
Crypto address updated successfully.
Was this page helpful?