curl --request POST \
--url https://sandbox-api.borderless.xyz/v1/deposits/quotes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "100.00",
"accountId": "cm2c4x3cc000019stwv7um4zl",
"asset": "BTC",
"fiat": "USD",
"country": "US",
"paymentMethod": "ACH",
"developerFee": "5.00",
"counterPartyIdentityId": "cm2c4x3cc000019stwv7um4zl",
"businessIdentityId": "cm2c4x3cc000019stwv7um4zl"
}
'import requests
url = "https://sandbox-api.borderless.xyz/v1/deposits/quotes"
payload = {
"amount": "100.00",
"accountId": "cm2c4x3cc000019stwv7um4zl",
"asset": "BTC",
"fiat": "USD",
"country": "US",
"paymentMethod": "ACH",
"developerFee": "5.00",
"counterPartyIdentityId": "cm2c4x3cc000019stwv7um4zl",
"businessIdentityId": "cm2c4x3cc000019stwv7um4zl"
}
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: '100.00',
accountId: 'cm2c4x3cc000019stwv7um4zl',
asset: 'BTC',
fiat: 'USD',
country: 'US',
paymentMethod: 'ACH',
developerFee: '5.00',
counterPartyIdentityId: 'cm2c4x3cc000019stwv7um4zl',
businessIdentityId: 'cm2c4x3cc000019stwv7um4zl'
})
};
fetch('https://sandbox-api.borderless.xyz/v1/deposits/quotes', 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/deposits/quotes",
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' => '100.00',
'accountId' => 'cm2c4x3cc000019stwv7um4zl',
'asset' => 'BTC',
'fiat' => 'USD',
'country' => 'US',
'paymentMethod' => 'ACH',
'developerFee' => '5.00',
'counterPartyIdentityId' => 'cm2c4x3cc000019stwv7um4zl',
'businessIdentityId' => 'cm2c4x3cc000019stwv7um4zl'
]),
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/deposits/quotes"
payload := strings.NewReader("{\n \"amount\": \"100.00\",\n \"accountId\": \"cm2c4x3cc000019stwv7um4zl\",\n \"asset\": \"BTC\",\n \"fiat\": \"USD\",\n \"country\": \"US\",\n \"paymentMethod\": \"ACH\",\n \"developerFee\": \"5.00\",\n \"counterPartyIdentityId\": \"cm2c4x3cc000019stwv7um4zl\",\n \"businessIdentityId\": \"cm2c4x3cc000019stwv7um4zl\"\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-api.borderless.xyz/v1/deposits/quotes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"100.00\",\n \"accountId\": \"cm2c4x3cc000019stwv7um4zl\",\n \"asset\": \"BTC\",\n \"fiat\": \"USD\",\n \"country\": \"US\",\n \"paymentMethod\": \"ACH\",\n \"developerFee\": \"5.00\",\n \"counterPartyIdentityId\": \"cm2c4x3cc000019stwv7um4zl\",\n \"businessIdentityId\": \"cm2c4x3cc000019stwv7um4zl\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.borderless.xyz/v1/deposits/quotes")
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\": \"100.00\",\n \"accountId\": \"cm2c4x3cc000019stwv7um4zl\",\n \"asset\": \"BTC\",\n \"fiat\": \"USD\",\n \"country\": \"US\",\n \"paymentMethod\": \"ACH\",\n \"developerFee\": \"5.00\",\n \"counterPartyIdentityId\": \"cm2c4x3cc000019stwv7um4zl\",\n \"businessIdentityId\": \"cm2c4x3cc000019stwv7um4zl\"\n}"
response = http.request(request)
puts response.read_body{
"limits": {
"transaction": {
"fiat": "USD",
"minAmount": "123",
"maxAmount": "123"
}
},
"fiat": "USD",
"country": "AF",
"asset": "POL",
"paymentMethod": "ACH",
"fromAmount": "10",
"toAmount": "8.99",
"exchangeRate": "0.999",
"totalFee": "1",
"orchestrationFee": "1",
"quoteId": "cm2c4x3cc000019stwv7um4zl",
"expiresAt": "2026-04-27T12:30:00.000Z",
"fees": [
{
"componentType": "PaymentMethod",
"collectionMode": "Spread",
"valueSource": "Static",
"amount": "1.5",
"currency": "USD",
"originalAmount": "5",
"originalCurrency": "MXN",
"exchangeRate": "0.0571428571"
}
]
}Create executable Deposit Quote
Create an executable Deposit quote that can later be referenced by its quoteId when initiating a deposit. The quote is valid until the returned expiresAt timestamp.
curl --request POST \
--url https://sandbox-api.borderless.xyz/v1/deposits/quotes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "100.00",
"accountId": "cm2c4x3cc000019stwv7um4zl",
"asset": "BTC",
"fiat": "USD",
"country": "US",
"paymentMethod": "ACH",
"developerFee": "5.00",
"counterPartyIdentityId": "cm2c4x3cc000019stwv7um4zl",
"businessIdentityId": "cm2c4x3cc000019stwv7um4zl"
}
'import requests
url = "https://sandbox-api.borderless.xyz/v1/deposits/quotes"
payload = {
"amount": "100.00",
"accountId": "cm2c4x3cc000019stwv7um4zl",
"asset": "BTC",
"fiat": "USD",
"country": "US",
"paymentMethod": "ACH",
"developerFee": "5.00",
"counterPartyIdentityId": "cm2c4x3cc000019stwv7um4zl",
"businessIdentityId": "cm2c4x3cc000019stwv7um4zl"
}
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: '100.00',
accountId: 'cm2c4x3cc000019stwv7um4zl',
asset: 'BTC',
fiat: 'USD',
country: 'US',
paymentMethod: 'ACH',
developerFee: '5.00',
counterPartyIdentityId: 'cm2c4x3cc000019stwv7um4zl',
businessIdentityId: 'cm2c4x3cc000019stwv7um4zl'
})
};
fetch('https://sandbox-api.borderless.xyz/v1/deposits/quotes', 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/deposits/quotes",
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' => '100.00',
'accountId' => 'cm2c4x3cc000019stwv7um4zl',
'asset' => 'BTC',
'fiat' => 'USD',
'country' => 'US',
'paymentMethod' => 'ACH',
'developerFee' => '5.00',
'counterPartyIdentityId' => 'cm2c4x3cc000019stwv7um4zl',
'businessIdentityId' => 'cm2c4x3cc000019stwv7um4zl'
]),
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/deposits/quotes"
payload := strings.NewReader("{\n \"amount\": \"100.00\",\n \"accountId\": \"cm2c4x3cc000019stwv7um4zl\",\n \"asset\": \"BTC\",\n \"fiat\": \"USD\",\n \"country\": \"US\",\n \"paymentMethod\": \"ACH\",\n \"developerFee\": \"5.00\",\n \"counterPartyIdentityId\": \"cm2c4x3cc000019stwv7um4zl\",\n \"businessIdentityId\": \"cm2c4x3cc000019stwv7um4zl\"\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-api.borderless.xyz/v1/deposits/quotes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"100.00\",\n \"accountId\": \"cm2c4x3cc000019stwv7um4zl\",\n \"asset\": \"BTC\",\n \"fiat\": \"USD\",\n \"country\": \"US\",\n \"paymentMethod\": \"ACH\",\n \"developerFee\": \"5.00\",\n \"counterPartyIdentityId\": \"cm2c4x3cc000019stwv7um4zl\",\n \"businessIdentityId\": \"cm2c4x3cc000019stwv7um4zl\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.borderless.xyz/v1/deposits/quotes")
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\": \"100.00\",\n \"accountId\": \"cm2c4x3cc000019stwv7um4zl\",\n \"asset\": \"BTC\",\n \"fiat\": \"USD\",\n \"country\": \"US\",\n \"paymentMethod\": \"ACH\",\n \"developerFee\": \"5.00\",\n \"counterPartyIdentityId\": \"cm2c4x3cc000019stwv7um4zl\",\n \"businessIdentityId\": \"cm2c4x3cc000019stwv7um4zl\"\n}"
response = http.request(request)
puts response.read_body{
"limits": {
"transaction": {
"fiat": "USD",
"minAmount": "123",
"maxAmount": "123"
}
},
"fiat": "USD",
"country": "AF",
"asset": "POL",
"paymentMethod": "ACH",
"fromAmount": "10",
"toAmount": "8.99",
"exchangeRate": "0.999",
"totalFee": "1",
"orchestrationFee": "1",
"quoteId": "cm2c4x3cc000019stwv7um4zl",
"expiresAt": "2026-04-27T12:30:00.000Z",
"fees": [
{
"componentType": "PaymentMethod",
"collectionMode": "Spread",
"valueSource": "Static",
"amount": "1.5",
"currency": "USD",
"originalAmount": "5",
"originalCurrency": "MXN",
"exchangeRate": "0.0571428571"
}
]
}Authorizations
Body
The token tied to a specific blockchain for the deposit. See the list of supported deposit assets.
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 "BTC"
The fiat currency used for the deposit operation.
USD, EUR, BRL, ARS, MXN, COP, CLP, PEN, PYG, DOP, UYU, BOB, CRC, GTQ, BWP, CDF, GHS, KES, MWK, NGN, RWF, ZAR, TZS, UGX, ZMW, XOF, XAF, AUD, BDT, CAD, INR, JPY, NPR, PKR, PHP, SGD, GBP, CNY, HKD, CNH, IDR, MYR, KRW, LKR, THB, TRY, VND, CZK, HUF, DKK, NOK, PLN, RON, RSD, SEK, CHF, AED, SAR, QAR, ILS, EGP, JOD, HNL, JMD, NZD, DZD, GMD, GNF, HTG, MAD, TND "USD"
The country code in ISO-3166-2 format for the region where the deposit is performed.
AF, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, BN, BG, BF, BI, CV, KH, CM, CA, KY, CF, TD, CL, CN, CX, CC, CO, KM, CD, CG, CK, CR, HR, CU, CW, CY, CZ, CI, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KP, KR, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, MK, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, SD, SR, SJ, SE, CH, SY, TW, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, UM, US, UY, UZ, VU, VE, VN, VG, VI, WF, EH, YE, ZM, ZW, AX, ZZ "US"
The payment method used for the deposit transaction. Learn more at Payment Methods Documentation.
ACH, Wire, Sepa, Swift, Card, MobileMoney, PIX, TED, PSE, SPEI, COELSA, Transfers30, SPAV, TEF, CCE, SPI, LBTR, SINPE, Transfer365, NIP, GhIPSS, BankTransfer, EFT, RTP, BECS, FPS, IMPS_FIRC, Breb, NPSS, MADA, ZAHAV, IBFT, SIC, Alipay, Tips, Napas, BiFast, FastSg, Instapay, Ipp, Giro, Elixir, FastRtp, TransFond, Nics, Cnaps, UnionPay, UPI, Onchain "ACH"
Specific PFI to use for this operation. If omitted, the organization's default PFI is used.
Bridge, Koywe, Kotanipay, Hercle, Bitso, Yellowcard, TraceFinance, HoneyCoin, BlindPay, Finity, Infinia, Walapay, Abra, Yativo, Capa, Bivo, Cobre, Avenia, Brale, BVNK, CoinsPH, Iron, Enigma, Kira, TripleAStablecoin, TripleALocalCurrencyPayout, Onmeta, Alfred, Tazapay, Demo, CrissCross, Pockyt Response
Executable quote with quoteId and expiration timestamp.
Fiat currency identifier (e.g. USD, EUR)
USD, EUR, BRL, ARS, MXN, COP, CLP, PEN, PYG, DOP, UYU, BOB, CRC, GTQ, BWP, CDF, GHS, KES, MWK, NGN, RWF, ZAR, TZS, UGX, ZMW, XOF, XAF, AUD, BDT, CAD, INR, JPY, NPR, PKR, PHP, SGD, GBP, CNY, HKD, CNH, IDR, MYR, KRW, LKR, THB, TRY, VND, CZK, HUF, DKK, NOK, PLN, RON, RSD, SEK, CHF, AED, SAR, QAR, ILS, EGP, JOD, HNL, JMD, NZD, DZD, GMD, GNF, HTG, MAD, TND AF, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, BN, BG, BF, BI, CV, KH, CM, CA, KY, CF, TD, CL, CN, CX, CC, CO, KM, CD, CG, CK, CR, HR, CU, CW, CY, CZ, CI, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KP, KR, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, MK, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, SD, SR, SJ, SE, CH, SY, TW, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, UM, US, UY, UZ, VU, VE, VN, VG, VI, WF, EH, YE, ZM, ZW, AX, ZZ 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 ACH, Wire, Sepa, Swift, Card, MobileMoney, PIX, TED, PSE, SPEI, COELSA, Transfers30, SPAV, TEF, CCE, SPI, LBTR, SINPE, Transfer365, NIP, GhIPSS, BankTransfer, EFT, RTP, BECS, FPS, IMPS_FIRC, Breb, NPSS, MADA, ZAHAV, IBFT, SIC, Alipay, Tips, Napas, BiFast, FastSg, Instapay, Ipp, Giro, Elixir, FastRtp, TransFond, Nics, Cnaps, UnionPay, UPI, Onchain Total fees, denominated in the source currency: the fiat currency for a Deposit Quote, the asset for a Withdrawal Quote. A provider that charges fees in another currency reports them in that currency, named by each fee line's currency. Includes the orchestration fee. Equals the sum of fees[].amount over every line that is not Spread or Invoiced.
"1"
Was this page helpful?