curl --request POST \
--url https://sandbox.groundtech.co/v3/wallets/{id}/withdrawals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requestId": "f4a5b6c7-0000-4000-8000-000000000001",
"destinationChain": "arbitrum",
"amountUsd": "50.000000",
"token": "usdc",
"destinationAddress": "0x76F8fc6667E239f83a547d4e16225d6a34f6FA22",
"partnerFeeAmountUsd": "0.500000",
"partnerFeeRecipientAddress": "0x1111111111111111111111111111111111111111"
}
'import requests
url = "https://sandbox.groundtech.co/v3/wallets/{id}/withdrawals"
payload = {
"requestId": "f4a5b6c7-0000-4000-8000-000000000001",
"destinationChain": "arbitrum",
"amountUsd": "50.000000",
"token": "usdc",
"destinationAddress": "0x76F8fc6667E239f83a547d4e16225d6a34f6FA22",
"partnerFeeAmountUsd": "0.500000",
"partnerFeeRecipientAddress": "0x1111111111111111111111111111111111111111"
}
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({
requestId: 'f4a5b6c7-0000-4000-8000-000000000001',
destinationChain: 'arbitrum',
amountUsd: '50.000000',
token: 'usdc',
destinationAddress: '0x76F8fc6667E239f83a547d4e16225d6a34f6FA22',
partnerFeeAmountUsd: '0.500000',
partnerFeeRecipientAddress: '0x1111111111111111111111111111111111111111'
})
};
fetch('https://sandbox.groundtech.co/v3/wallets/{id}/withdrawals', 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.groundtech.co/v3/wallets/{id}/withdrawals",
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([
'requestId' => 'f4a5b6c7-0000-4000-8000-000000000001',
'destinationChain' => 'arbitrum',
'amountUsd' => '50.000000',
'token' => 'usdc',
'destinationAddress' => '0x76F8fc6667E239f83a547d4e16225d6a34f6FA22',
'partnerFeeAmountUsd' => '0.500000',
'partnerFeeRecipientAddress' => '0x1111111111111111111111111111111111111111'
]),
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.groundtech.co/v3/wallets/{id}/withdrawals"
payload := strings.NewReader("{\n \"requestId\": \"f4a5b6c7-0000-4000-8000-000000000001\",\n \"destinationChain\": \"arbitrum\",\n \"amountUsd\": \"50.000000\",\n \"token\": \"usdc\",\n \"destinationAddress\": \"0x76F8fc6667E239f83a547d4e16225d6a34f6FA22\",\n \"partnerFeeAmountUsd\": \"0.500000\",\n \"partnerFeeRecipientAddress\": \"0x1111111111111111111111111111111111111111\"\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://sandbox.groundtech.co/v3/wallets/{id}/withdrawals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"requestId\": \"f4a5b6c7-0000-4000-8000-000000000001\",\n \"destinationChain\": \"arbitrum\",\n \"amountUsd\": \"50.000000\",\n \"token\": \"usdc\",\n \"destinationAddress\": \"0x76F8fc6667E239f83a547d4e16225d6a34f6FA22\",\n \"partnerFeeAmountUsd\": \"0.500000\",\n \"partnerFeeRecipientAddress\": \"0x1111111111111111111111111111111111111111\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.groundtech.co/v3/wallets/{id}/withdrawals")
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 \"requestId\": \"f4a5b6c7-0000-4000-8000-000000000001\",\n \"destinationChain\": \"arbitrum\",\n \"amountUsd\": \"50.000000\",\n \"token\": \"usdc\",\n \"destinationAddress\": \"0x76F8fc6667E239f83a547d4e16225d6a34f6FA22\",\n \"partnerFeeAmountUsd\": \"0.500000\",\n \"partnerFeeRecipientAddress\": \"0x1111111111111111111111111111111111111111\"\n}"
response = http.request(request)
puts response.read_bodyWithdraw funds
Starts a withdrawal and reserves its funds. Manual wallets can choose sources. Stock-funded requests require a current price and compatible sell quote. Track the returned withdrawal until delivery.
curl --request POST \
--url https://sandbox.groundtech.co/v3/wallets/{id}/withdrawals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requestId": "f4a5b6c7-0000-4000-8000-000000000001",
"destinationChain": "arbitrum",
"amountUsd": "50.000000",
"token": "usdc",
"destinationAddress": "0x76F8fc6667E239f83a547d4e16225d6a34f6FA22",
"partnerFeeAmountUsd": "0.500000",
"partnerFeeRecipientAddress": "0x1111111111111111111111111111111111111111"
}
'import requests
url = "https://sandbox.groundtech.co/v3/wallets/{id}/withdrawals"
payload = {
"requestId": "f4a5b6c7-0000-4000-8000-000000000001",
"destinationChain": "arbitrum",
"amountUsd": "50.000000",
"token": "usdc",
"destinationAddress": "0x76F8fc6667E239f83a547d4e16225d6a34f6FA22",
"partnerFeeAmountUsd": "0.500000",
"partnerFeeRecipientAddress": "0x1111111111111111111111111111111111111111"
}
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({
requestId: 'f4a5b6c7-0000-4000-8000-000000000001',
destinationChain: 'arbitrum',
amountUsd: '50.000000',
token: 'usdc',
destinationAddress: '0x76F8fc6667E239f83a547d4e16225d6a34f6FA22',
partnerFeeAmountUsd: '0.500000',
partnerFeeRecipientAddress: '0x1111111111111111111111111111111111111111'
})
};
fetch('https://sandbox.groundtech.co/v3/wallets/{id}/withdrawals', 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.groundtech.co/v3/wallets/{id}/withdrawals",
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([
'requestId' => 'f4a5b6c7-0000-4000-8000-000000000001',
'destinationChain' => 'arbitrum',
'amountUsd' => '50.000000',
'token' => 'usdc',
'destinationAddress' => '0x76F8fc6667E239f83a547d4e16225d6a34f6FA22',
'partnerFeeAmountUsd' => '0.500000',
'partnerFeeRecipientAddress' => '0x1111111111111111111111111111111111111111'
]),
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.groundtech.co/v3/wallets/{id}/withdrawals"
payload := strings.NewReader("{\n \"requestId\": \"f4a5b6c7-0000-4000-8000-000000000001\",\n \"destinationChain\": \"arbitrum\",\n \"amountUsd\": \"50.000000\",\n \"token\": \"usdc\",\n \"destinationAddress\": \"0x76F8fc6667E239f83a547d4e16225d6a34f6FA22\",\n \"partnerFeeAmountUsd\": \"0.500000\",\n \"partnerFeeRecipientAddress\": \"0x1111111111111111111111111111111111111111\"\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://sandbox.groundtech.co/v3/wallets/{id}/withdrawals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"requestId\": \"f4a5b6c7-0000-4000-8000-000000000001\",\n \"destinationChain\": \"arbitrum\",\n \"amountUsd\": \"50.000000\",\n \"token\": \"usdc\",\n \"destinationAddress\": \"0x76F8fc6667E239f83a547d4e16225d6a34f6FA22\",\n \"partnerFeeAmountUsd\": \"0.500000\",\n \"partnerFeeRecipientAddress\": \"0x1111111111111111111111111111111111111111\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.groundtech.co/v3/wallets/{id}/withdrawals")
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 \"requestId\": \"f4a5b6c7-0000-4000-8000-000000000001\",\n \"destinationChain\": \"arbitrum\",\n \"amountUsd\": \"50.000000\",\n \"token\": \"usdc\",\n \"destinationAddress\": \"0x76F8fc6667E239f83a547d4e16225d6a34f6FA22\",\n \"partnerFeeAmountUsd\": \"0.500000\",\n \"partnerFeeRecipientAddress\": \"0x1111111111111111111111111111111111111111\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Body
Optional partner-calculated fee as a decimal string deducted from the gross USDC or USDT withdrawal on a supported EVM network, or TRON USDT withdrawal. Supports up to 6 decimal places, must be smaller than amountUsd, and must be supplied with partnerFeeRecipientAddress.
^(?!0(?:\.0{1,6})?$)(?:0|[1-9][0-9]*)(?:\.[0-9]{1,6})?$Recipient of the partner fee on the destination network. Supported for EVM and TRON payouts; supply a valid address for that network together with partnerFeeAmountUsd. In the withdrawal request it must differ from destinationAddress. Not supported for Solana, Stellar, or Tempo payouts.
Response
Withdrawal initiated (or existing withdrawal returned for idempotent retry)
Human-readable reason for failure (only present when status is failed or partially_completed). insufficient_proceeds_after_partner_fee means realized proceeds could not cover the committed partner fee while leaving a positive customer payout, so no payout or partner fee was sent.