P2P Internal Transfer (Platform User To User)
curl --request POST \
--url https://crypto.westminister.tech/api/v1/auth/transfers/p2p \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "<string>",
"to_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_address": "<string>",
"to_alias": "10000001",
"from_wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pricing_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fx_rate_quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fiat_currency": "<string>",
"fiat_amount_equivalent": "<string>"
}
'import requests
url = "https://crypto.westminister.tech/api/v1/auth/transfers/p2p"
payload = {
"amount": "<string>",
"to_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_address": "<string>",
"to_alias": "10000001",
"from_wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pricing_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fx_rate_quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fiat_currency": "<string>",
"fiat_amount_equivalent": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '<string>',
to_user_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
to_address: '<string>',
to_alias: '10000001',
from_wallet_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
pricing_profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
fx_rate_quote_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
fiat_currency: '<string>',
fiat_amount_equivalent: '<string>'
})
};
fetch('https://crypto.westminister.tech/api/v1/auth/transfers/p2p', 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://crypto.westminister.tech/api/v1/auth/transfers/p2p",
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([
'amount' => '<string>',
'to_user_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'to_address' => '<string>',
'to_alias' => '10000001',
'from_wallet_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'pricing_profile_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'fx_rate_quote_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'fiat_currency' => '<string>',
'fiat_amount_equivalent' => '<string>'
]),
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://crypto.westminister.tech/api/v1/auth/transfers/p2p"
payload := strings.NewReader("{\n \"amount\": \"<string>\",\n \"to_user_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"to_address\": \"<string>\",\n \"to_alias\": \"10000001\",\n \"from_wallet_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pricing_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fx_rate_quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fiat_currency\": \"<string>\",\n \"fiat_amount_equivalent\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://crypto.westminister.tech/api/v1/auth/transfers/p2p")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"<string>\",\n \"to_user_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"to_address\": \"<string>\",\n \"to_alias\": \"10000001\",\n \"from_wallet_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pricing_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fx_rate_quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fiat_currency\": \"<string>\",\n \"fiat_amount_equivalent\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://crypto.westminister.tech/api/v1/auth/transfers/p2p")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"<string>\",\n \"to_user_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"to_address\": \"<string>\",\n \"to_alias\": \"10000001\",\n \"from_wallet_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pricing_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fx_rate_quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fiat_currency\": \"<string>\",\n \"fiat_amount_equivalent\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"transfer": {
"id": "11111111-1111-1111-1111-111111111111",
"transfer_type": "P2P",
"from_user_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"to_user_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
"to_address": "TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8",
"from_address": "TQyD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
"to_address_resolved": "TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8",
"asset": "USDC",
"crypto_amount": "2500.00000000",
"network": "tron",
"status": "completed",
"tx_hash": "0xabc123",
"memo": null
},
"message": "P2P transfer completed successfully",
"correlation_id": "req-12345",
"idempotent_replay": false
}Transfers
P2P Internal Transfer (Platform User To User)
Send the selected stablecoin asset (USDT or USDC) from the authenticated user to another user. Provide exactly one of to_user_id, platform to_address, or numeric wallet to_alias.
Optional commercial snapshot: send all of pricing_profile_id, fx_rate_quote_id, fiat_currency, fiat_amount_equivalent together, or omit all.
POST
/
api
/
v1
/
auth
/
transfers
/
p2p
P2P Internal Transfer (Platform User To User)
curl --request POST \
--url https://crypto.westminister.tech/api/v1/auth/transfers/p2p \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "<string>",
"to_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_address": "<string>",
"to_alias": "10000001",
"from_wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pricing_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fx_rate_quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fiat_currency": "<string>",
"fiat_amount_equivalent": "<string>"
}
'import requests
url = "https://crypto.westminister.tech/api/v1/auth/transfers/p2p"
payload = {
"amount": "<string>",
"to_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_address": "<string>",
"to_alias": "10000001",
"from_wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pricing_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fx_rate_quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fiat_currency": "<string>",
"fiat_amount_equivalent": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '<string>',
to_user_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
to_address: '<string>',
to_alias: '10000001',
from_wallet_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
pricing_profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
fx_rate_quote_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
fiat_currency: '<string>',
fiat_amount_equivalent: '<string>'
})
};
fetch('https://crypto.westminister.tech/api/v1/auth/transfers/p2p', 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://crypto.westminister.tech/api/v1/auth/transfers/p2p",
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([
'amount' => '<string>',
'to_user_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'to_address' => '<string>',
'to_alias' => '10000001',
'from_wallet_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'pricing_profile_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'fx_rate_quote_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'fiat_currency' => '<string>',
'fiat_amount_equivalent' => '<string>'
]),
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://crypto.westminister.tech/api/v1/auth/transfers/p2p"
payload := strings.NewReader("{\n \"amount\": \"<string>\",\n \"to_user_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"to_address\": \"<string>\",\n \"to_alias\": \"10000001\",\n \"from_wallet_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pricing_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fx_rate_quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fiat_currency\": \"<string>\",\n \"fiat_amount_equivalent\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://crypto.westminister.tech/api/v1/auth/transfers/p2p")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"<string>\",\n \"to_user_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"to_address\": \"<string>\",\n \"to_alias\": \"10000001\",\n \"from_wallet_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pricing_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fx_rate_quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fiat_currency\": \"<string>\",\n \"fiat_amount_equivalent\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://crypto.westminister.tech/api/v1/auth/transfers/p2p")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"<string>\",\n \"to_user_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"to_address\": \"<string>\",\n \"to_alias\": \"10000001\",\n \"from_wallet_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"pricing_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fx_rate_quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fiat_currency\": \"<string>\",\n \"fiat_amount_equivalent\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"transfer": {
"id": "11111111-1111-1111-1111-111111111111",
"transfer_type": "P2P",
"from_user_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"to_user_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
"to_address": "TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8",
"from_address": "TQyD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
"to_address_resolved": "TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8",
"asset": "USDC",
"crypto_amount": "2500.00000000",
"network": "tron",
"status": "completed",
"tx_hash": "0xabc123",
"memo": null
},
"message": "P2P transfer completed successfully",
"correlation_id": "req-12345",
"idempotent_replay": false
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Reuse this key only when retrying the same P2P request. A different payload returns 409.
Maximum string length:
128Body
application/json
Available options:
USDT, USDC Available options:
tron, ethereum, solana Pattern:
^[0-9]+$Example:
"10000001"
Response
Transfer result
⌘I