curl --request POST \
--url https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts \
--header 'Content-Type: application/json' \
--data '
{
"flow_type": "remittance",
"custodial_wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"beneficiary_fiat_amount": "<string>",
"fiat_currency": "KES",
"pricing_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fx_rate_quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sender_name": "<string>",
"sender_country": "<string>",
"sender_phone": "<string>",
"beneficiary_country": "<string>",
"beneficiary_phone": "<string>",
"asset": "<string>",
"fee_bearer": "sender",
"beneficiary_name": "<string>",
"payout_method": "mpesa"
}
'import requests
url = "https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts"
payload = {
"flow_type": "remittance",
"custodial_wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"beneficiary_fiat_amount": "<string>",
"fiat_currency": "KES",
"pricing_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fx_rate_quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sender_name": "<string>",
"sender_country": "<string>",
"sender_phone": "<string>",
"beneficiary_country": "<string>",
"beneficiary_phone": "<string>",
"asset": "<string>",
"fee_bearer": "sender",
"beneficiary_name": "<string>",
"payout_method": "mpesa"
}
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({
flow_type: 'remittance',
custodial_wallet_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
beneficiary_fiat_amount: '<string>',
fiat_currency: 'KES',
pricing_profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
fx_rate_quote_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sender_name: '<string>',
sender_country: '<string>',
sender_phone: '<string>',
beneficiary_country: '<string>',
beneficiary_phone: '<string>',
asset: '<string>',
fee_bearer: 'sender',
beneficiary_name: '<string>',
payout_method: 'mpesa'
})
};
fetch('https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts', 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/remittance/custodial/drafts",
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([
'flow_type' => 'remittance',
'custodial_wallet_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'beneficiary_fiat_amount' => '<string>',
'fiat_currency' => 'KES',
'pricing_profile_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'fx_rate_quote_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sender_name' => '<string>',
'sender_country' => '<string>',
'sender_phone' => '<string>',
'beneficiary_country' => '<string>',
'beneficiary_phone' => '<string>',
'asset' => '<string>',
'fee_bearer' => 'sender',
'beneficiary_name' => '<string>',
'payout_method' => 'mpesa'
]),
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://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts"
payload := strings.NewReader("{\n \"flow_type\": \"remittance\",\n \"custodial_wallet_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"beneficiary_fiat_amount\": \"<string>\",\n \"fiat_currency\": \"KES\",\n \"pricing_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fx_rate_quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sender_name\": \"<string>\",\n \"sender_country\": \"<string>\",\n \"sender_phone\": \"<string>\",\n \"beneficiary_country\": \"<string>\",\n \"beneficiary_phone\": \"<string>\",\n \"asset\": \"<string>\",\n \"fee_bearer\": \"sender\",\n \"beneficiary_name\": \"<string>\",\n \"payout_method\": \"mpesa\"\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://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts")
.header("Content-Type", "application/json")
.body("{\n \"flow_type\": \"remittance\",\n \"custodial_wallet_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"beneficiary_fiat_amount\": \"<string>\",\n \"fiat_currency\": \"KES\",\n \"pricing_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fx_rate_quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sender_name\": \"<string>\",\n \"sender_country\": \"<string>\",\n \"sender_phone\": \"<string>\",\n \"beneficiary_country\": \"<string>\",\n \"beneficiary_phone\": \"<string>\",\n \"asset\": \"<string>\",\n \"fee_bearer\": \"sender\",\n \"beneficiary_name\": \"<string>\",\n \"payout_method\": \"mpesa\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts")
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 \"flow_type\": \"remittance\",\n \"custodial_wallet_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"beneficiary_fiat_amount\": \"<string>\",\n \"fiat_currency\": \"KES\",\n \"pricing_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fx_rate_quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sender_name\": \"<string>\",\n \"sender_country\": \"<string>\",\n \"sender_phone\": \"<string>\",\n \"beneficiary_country\": \"<string>\",\n \"beneficiary_phone\": \"<string>\",\n \"asset\": \"<string>\",\n \"fee_bearer\": \"sender\",\n \"beneficiary_name\": \"<string>\",\n \"payout_method\": \"mpesa\"\n}"
response = http.request(request)
puts response.read_body{
"draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"draft": {},
"pricing_snapshot_note": "<string>"
}Create custodial remittance draft
Creates a remittance draft after the customer taps Next. The server validates the custodial wallet, pricing profile, and FX quote. It computes KES to USDT or USDC amounts (per the priced asset) and allocates a dedicated escrow receive address for this remittance. Draft expiry is configured via REMITTANCE_DRAFT_EXPIRY_MINUTES (default: 15 minutes).
curl --request POST \
--url https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts \
--header 'Content-Type: application/json' \
--data '
{
"flow_type": "remittance",
"custodial_wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"beneficiary_fiat_amount": "<string>",
"fiat_currency": "KES",
"pricing_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fx_rate_quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sender_name": "<string>",
"sender_country": "<string>",
"sender_phone": "<string>",
"beneficiary_country": "<string>",
"beneficiary_phone": "<string>",
"asset": "<string>",
"fee_bearer": "sender",
"beneficiary_name": "<string>",
"payout_method": "mpesa"
}
'import requests
url = "https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts"
payload = {
"flow_type": "remittance",
"custodial_wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"beneficiary_fiat_amount": "<string>",
"fiat_currency": "KES",
"pricing_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fx_rate_quote_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sender_name": "<string>",
"sender_country": "<string>",
"sender_phone": "<string>",
"beneficiary_country": "<string>",
"beneficiary_phone": "<string>",
"asset": "<string>",
"fee_bearer": "sender",
"beneficiary_name": "<string>",
"payout_method": "mpesa"
}
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({
flow_type: 'remittance',
custodial_wallet_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
beneficiary_fiat_amount: '<string>',
fiat_currency: 'KES',
pricing_profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
fx_rate_quote_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
sender_name: '<string>',
sender_country: '<string>',
sender_phone: '<string>',
beneficiary_country: '<string>',
beneficiary_phone: '<string>',
asset: '<string>',
fee_bearer: 'sender',
beneficiary_name: '<string>',
payout_method: 'mpesa'
})
};
fetch('https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts', 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/remittance/custodial/drafts",
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([
'flow_type' => 'remittance',
'custodial_wallet_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'beneficiary_fiat_amount' => '<string>',
'fiat_currency' => 'KES',
'pricing_profile_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'fx_rate_quote_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'sender_name' => '<string>',
'sender_country' => '<string>',
'sender_phone' => '<string>',
'beneficiary_country' => '<string>',
'beneficiary_phone' => '<string>',
'asset' => '<string>',
'fee_bearer' => 'sender',
'beneficiary_name' => '<string>',
'payout_method' => 'mpesa'
]),
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://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts"
payload := strings.NewReader("{\n \"flow_type\": \"remittance\",\n \"custodial_wallet_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"beneficiary_fiat_amount\": \"<string>\",\n \"fiat_currency\": \"KES\",\n \"pricing_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fx_rate_quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sender_name\": \"<string>\",\n \"sender_country\": \"<string>\",\n \"sender_phone\": \"<string>\",\n \"beneficiary_country\": \"<string>\",\n \"beneficiary_phone\": \"<string>\",\n \"asset\": \"<string>\",\n \"fee_bearer\": \"sender\",\n \"beneficiary_name\": \"<string>\",\n \"payout_method\": \"mpesa\"\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://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts")
.header("Content-Type", "application/json")
.body("{\n \"flow_type\": \"remittance\",\n \"custodial_wallet_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"beneficiary_fiat_amount\": \"<string>\",\n \"fiat_currency\": \"KES\",\n \"pricing_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fx_rate_quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sender_name\": \"<string>\",\n \"sender_country\": \"<string>\",\n \"sender_phone\": \"<string>\",\n \"beneficiary_country\": \"<string>\",\n \"beneficiary_phone\": \"<string>\",\n \"asset\": \"<string>\",\n \"fee_bearer\": \"sender\",\n \"beneficiary_name\": \"<string>\",\n \"payout_method\": \"mpesa\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts")
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 \"flow_type\": \"remittance\",\n \"custodial_wallet_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"beneficiary_fiat_amount\": \"<string>\",\n \"fiat_currency\": \"KES\",\n \"pricing_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"fx_rate_quote_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"sender_name\": \"<string>\",\n \"sender_country\": \"<string>\",\n \"sender_phone\": \"<string>\",\n \"beneficiary_country\": \"<string>\",\n \"beneficiary_phone\": \"<string>\",\n \"asset\": \"<string>\",\n \"fee_bearer\": \"sender\",\n \"beneficiary_name\": \"<string>\",\n \"payout_method\": \"mpesa\"\n}"
response = http.request(request)
puts response.read_body{
"draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"draft": {},
"pricing_snapshot_note": "<string>"
}Body
remittance Net fiat the beneficiary receives (e.g. KES)
"KES"
Preferred active ISO 3166-1 alpha-3 sender country code. Example GBR. Legacy alpha-2 input is accepted and normalized to alpha-3
Preferred active ISO 3166-1 alpha-3 beneficiary country code. Example KEN. Legacy alpha-2 input is accepted and normalized to alpha-3
Optional. Must match pricing asset resolved from pricing profile and fx quote when supplied
sender, receiver mpesa, bank