Confirm custodial remittance draft
curl --request POST \
--url https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts/{id}/confirm \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts/{id}/confirm"
payload = {}
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({})
};
fetch('https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts/{id}/confirm', 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/{id}/confirm",
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([
]),
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/{id}/confirm"
payload := strings.NewReader("{}")
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/{id}/confirm")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts/{id}/confirm")
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 = "{}"
response = http.request(request)
puts response.read_body{
"order": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"offer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"asset": "<string>",
"crypto_amount": "<string>",
"usdt_amount": "<string>",
"fiat_amount": "<string>",
"fiat_currency": "<string>",
"wallet_address": "<string>",
"payment_method": "<string>",
"payment_txn_id": {
"String": "<string>",
"Valid": true
},
"blockchain_txn_hash": {
"String": "<string>",
"Valid": true
},
"expires_at": "2023-11-07T05:31:56Z",
"completed_at": {
"Time": "2023-11-07T05:31:56Z",
"Valid": true
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": {
"Time": "2023-11-07T05:31:56Z",
"Valid": true
},
"merchant_request_id": {
"String": "<string>",
"Valid": true
},
"checkout_request_id": {
"String": "<string>",
"Valid": true
},
"mpesa_receipt_number": {
"String": "<string>",
"Valid": true
},
"payment_phone_number": {
"String": "<string>",
"Valid": true
},
"sender_name": {
"String": "<string>",
"Valid": true
},
"sender_country": {
"String": "<string>",
"Valid": true
},
"sender_phone": {
"String": "<string>",
"Valid": true
},
"beneficiary_bank_name": {
"String": "<string>",
"Valid": true
},
"beneficiary_bank_code": {
"String": "<string>",
"Valid": true
},
"beneficiary_bank_branch": {
"String": "<string>",
"Valid": true
},
"beneficiary_bank_address": {
"String": "<string>",
"Valid": true
},
"beneficiary_account_name": {
"String": "<string>",
"Valid": true
},
"beneficiary_account_number": {
"String": "<string>",
"Valid": true
},
"beneficiary_swift_code": {
"String": "<string>",
"Valid": true
},
"escrow_wallet_address": {
"String": "<string>",
"Valid": true
},
"escrow_network": {
"String": "<string>",
"Valid": true
},
"escrow_reference": {
"String": "<string>",
"Valid": true
},
"deposit_tx_hash": {
"String": "<string>",
"Valid": true
},
"deposit_confirmations": 123,
"deposit_detected_at": {
"Time": "2023-11-07T05:31:56Z",
"Valid": true
}
},
"custodial_transfer": {},
"remittance_draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Orders
Confirm custodial remittance draft
Creates an OFF_RAMP_SELL order with order_subtype = custodial_remittance_offramp, links the draft, and broadcasts USDT/USDC from the customer custodial wallet to the draft escrow address. On-chain confirmation follows the standard escrow watcher path. mobile money B2C pays beneficiary_phone after crypto_received.
POST
/
api
/
v1
/
auth
/
remittance
/
custodial
/
drafts
/
{id}
/
confirm
Confirm custodial remittance draft
curl --request POST \
--url https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts/{id}/confirm \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts/{id}/confirm"
payload = {}
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({})
};
fetch('https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts/{id}/confirm', 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/{id}/confirm",
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([
]),
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/{id}/confirm"
payload := strings.NewReader("{}")
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/{id}/confirm")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://crypto.westminister.tech/api/v1/auth/remittance/custodial/drafts/{id}/confirm")
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 = "{}"
response = http.request(request)
puts response.read_body{
"order": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"offer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"asset": "<string>",
"crypto_amount": "<string>",
"usdt_amount": "<string>",
"fiat_amount": "<string>",
"fiat_currency": "<string>",
"wallet_address": "<string>",
"payment_method": "<string>",
"payment_txn_id": {
"String": "<string>",
"Valid": true
},
"blockchain_txn_hash": {
"String": "<string>",
"Valid": true
},
"expires_at": "2023-11-07T05:31:56Z",
"completed_at": {
"Time": "2023-11-07T05:31:56Z",
"Valid": true
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": {
"Time": "2023-11-07T05:31:56Z",
"Valid": true
},
"merchant_request_id": {
"String": "<string>",
"Valid": true
},
"checkout_request_id": {
"String": "<string>",
"Valid": true
},
"mpesa_receipt_number": {
"String": "<string>",
"Valid": true
},
"payment_phone_number": {
"String": "<string>",
"Valid": true
},
"sender_name": {
"String": "<string>",
"Valid": true
},
"sender_country": {
"String": "<string>",
"Valid": true
},
"sender_phone": {
"String": "<string>",
"Valid": true
},
"beneficiary_bank_name": {
"String": "<string>",
"Valid": true
},
"beneficiary_bank_code": {
"String": "<string>",
"Valid": true
},
"beneficiary_bank_branch": {
"String": "<string>",
"Valid": true
},
"beneficiary_bank_address": {
"String": "<string>",
"Valid": true
},
"beneficiary_account_name": {
"String": "<string>",
"Valid": true
},
"beneficiary_account_number": {
"String": "<string>",
"Valid": true
},
"beneficiary_swift_code": {
"String": "<string>",
"Valid": true
},
"escrow_wallet_address": {
"String": "<string>",
"Valid": true
},
"escrow_network": {
"String": "<string>",
"Valid": true
},
"escrow_reference": {
"String": "<string>",
"Valid": true
},
"deposit_tx_hash": {
"String": "<string>",
"Valid": true
},
"deposit_confirmations": 123,
"deposit_detected_at": {
"Time": "2023-11-07T05:31:56Z",
"Valid": true
}
},
"custodial_transfer": {},
"remittance_draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}⌘I