Skip to main content
POST
/
v1
/
withdrawals
Create a new Withdrawal transaction
curl --request POST \
  --url https://sandbox-api.borderless.xyz/v1/withdrawals \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fiat": "USD",
  "country": "US",
  "asset": "BTC",
  "amount": "100.00",
  "accountId": "cm2c4x3cc000019stwv7um4zl",
  "developerFee": "5.00",
  "paymentInstructionId": "cm2c4x3cc000019stwv7um4zl",
  "paymentPurpose": "delivery fees"
}
'
{
  "id": "<string>",
  "type": "AssetDeposit",
  "status": "Submitted",
  "source": {
    "asset": "POL",
    "amount": "<string>",
    "fiatCurrency": "<string>",
    "accountId": "<string>"
  },
  "destination": {
    "asset": "POL",
    "amount": "<string>",
    "fiatCurrency": "<string>",
    "imad": "<string>",
    "omad": "<string>",
    "traceNumber": "<string>",
    "externalAddress": "<string>",
    "accountId": "<string>",
    "paymentInstructionId": "<string>"
  },
  "instructions": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "txHash": [
    "<string>"
  ],
  "feeAmount": {},
  "failureReason": {},
  "depositInstruction": {
    "paymentMethod": "ACH",
    "details": {
      "depositMessage": "<string>",
      "bankAccountNumber": "<string>",
      "bankRoutingNumber": "<string>",
      "bankBeneficiaryName": "<string>",
      "bankBeneficiaryAddress": "<string>",
      "bankName": "<string>",
      "bankAddress": "<string>"
    }
  },
  "counterPartyIdentityId": "<string>",
  "developerFeeAmount": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
  • Withdrawal
  • Fireblocks Withdrawal
fiat
enum<string>
required

The fiat currency used for the deposit or withdrawal operation. Learn more about supported currencies at Currency Guide.

Available options:
USD,
EUR,
BRL,
ARS,
MXN,
COP,
CLP,
PEN,
BWP,
CDF,
GHS,
KES,
MWK,
NGN,
RWF,
ZAR,
TZS,
UGX,
ZMW,
XOF,
XAF
Example:

"USD"

country
enum<string>
required

The country code in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,
VE,
VN,
VG,
VI,
WF,
EH,
YE,
ZM,
ZW,
AX
Example:

"US"

asset
enum<string>
required

The token tied to a specific blockchain for the operation. See the list of supported deposit assets and supported Withdrawal Assets.

Available options:
POL,
USDT_POLYGON,
USDC_POLYGON,
USDM_POLYGON,
ETH,
USDT_ETHEREUM,
USDC_ETHEREUM,
USDM_ETHEREUM,
TRX,
USDT_TRON,
ETH_BASE,
USDC_BASE,
USDM_BASE,
ETH_OPTIMISM,
USDT_OPTIMISM,
USDC_OPTIMISM,
USDM_OPTIMISM,
BTC,
CELO,
CUSD_CELO,
USDC_CELO,
SOL,
USDC_SOLANA,
USDT_SOLANA
Example:

"BTC"

amount
string
required

The amount for the operation. For deposits, this is the fiat amount the user must contribute. For withdrawals, this is the amount of the asset to be withdrawn.

Example:

"100.00"

accountId
string
required

The id of the account associated with the operation. For withdrawals, this is the account from which assets will be withdrawn. For deposits, this is the account where assets will be deposited.

Example:

"cm2c4x3cc000019stwv7um4zl"

paymentInstructionId
string
required

The ID of the payment instruction specifying how the withdrawn funds will be sent. Learn more at Payment Instructions Guide

Example:

"cm2c4x3cc000019stwv7um4zl"

paymentPurpose
enum<string>
required

The purpose of the withdrawal payment.

Available options:
salary payment,
personal remittance,
rent payment,
property purchase,
owned account abroad,
advertising expenses,
advisory fees,
business insurance,
construction,
delivery fees,
education,
exports,
donation,
hotel,
loan payment,
maintenance expenses,
medical expense,
office expenses,
royalty fees,
service charge,
shares investment,
tax payment,
transportation fees,
travel,
utility bills,
other
Example:

"delivery fees"

developerFee
string

An optional developer fee for the operation, if applicable

Example:

"5.00"

Response

Successfully created Withdrawal transaction data.

id
string
required
type
enum<string>
required
Available options:
AssetDeposit,
Deposit,
Withdrawal,
Transfer,
TransferToExternalWallet,
Swap,
Approval
status
enum<string>
required
Available options:
Submitted,
Verifying,
Orchestrating,
Pending,
Processing,
Completed,
Failed,
Cancelled
source
object
required
destination
object
required
instructions
object | null
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
txHash
string[]
required
feeAmount
object
required
failureReason
object | null
required
depositInstruction
object
required
counterPartyIdentityId
string | null
required
developerFeeAmount
object
required