Withdrawals
Manage crypto withdrawals — configure auto-withdrawal rules and execute manual withdrawals.
Auto-Withdrawals
Get Auto-Withdrawal Settings
Retrieve the list of auto-withdrawal settings for crypto assets.
GET /api/company/auto-withdrawals
Headers
| Header | Value |
|---|---|
Authorization | Bearer YOUR_PUBLIC_TOKEN |
Content-Type | application/json |
cURL
curl --location 'https://my.paidlys.com/api/company/auto-withdrawals' \
--header 'Authorization: Bearer YOUR_PUBLIC_TOKEN' \
--header 'Content-Type: application/json'
Response Structure
The response includes an autoWithdrawals array with the following fields for each asset:
| Field | Type | Description |
|---|---|---|
assetId | string | Name of the asset to be withdrawn |
amount | number | The auto-withdrawal threshold |
isEnabled | boolean | true — enabled, false — disabled |
withdrawalTag | string | null | Tag for the receiving address. Required for tag-consistent assets (e.g., TON). null for non-required |
withdrawalAddress | string | Address for auto-withdrawal to be received |
Set Auto-Withdrawal Rule
Update the auto-withdrawal settings for a specific asset.
PATCH /api/company/auto-withdrawals
Headers
| Header | Value |
|---|---|
Authorization | Bearer YOUR_PUBLIC_TOKEN |
Content-Type | application/json |
Request Body
{
"assets": {
"ton": {
"amount": 100,
"isEnabled": true,
"withdrawalTag": "memo123",
"withdrawalAddress": "UQBx..."
}
}
}
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | Auto-withdrawal threshold amount |
isEnabled | boolean | Yes | Enable (true) or disable (false) auto-withdrawals |
withdrawalTag | string | TON only | Tag for receiving address. Can be null for non-required assets |
withdrawalAddress | string | Yes | Withdrawal destination address |
cURL
curl --location --request PATCH 'https://my.paidlys.com/api/company/auto-withdrawals' \
--header 'Authorization: Bearer YOUR_PUBLIC_TOKEN' \
--header 'Content-Type: application/json' \
--data '<body>'
Body:
{
"assets": {
"ton": {
"amount": 100,
"isEnabled": true,
"withdrawalTag": "memo123",
"withdrawalAddress": "UQBx..."
}
}
}
Withdrawal Execution
Execute Withdrawal
Execute autoWithdrawals for crypto assets.
POST /api/transactions/withdraw
Headers
| Header | Value |
|---|---|
authorization | Bearer YOUR_PUBLIC_TOKEN |
content-type | application/json |
Request Body
{
"items": [
{
"amount": 5,
"tag": "memo123",
"to": "TNyG6gPkBsF8S8Sy6deirNCVVydVFTFK7c",
"asset": "trc20usdt"
}
]
}
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
items | array | Yes | List of withdrawal items |
items[].amount | number | Yes | Net amount to be sent and received by the receiver address |
items[].tag | string | TON only | Receiver tag. Required if asset == ton, otherwise not required |
items[].to | string | Yes | Receiver's address |
items[].asset | string | Yes | Asset + network name (see Supported Assets) |
Response
[
{
"message": "Transaction was successfully accepted by WL.",
"success": true,
"uid": "XXX-XXXXXXXX"
}
]
You will receive a validation error if the recipient's address format differs from the defined asset standard. However, if the address follows the same standard as the asset but belongs to a different network, a loss of funds may occur.
- Any item's amount must not be lower than the minimal withdrawal amount for the defined asset
- The
amountparameter is a net amount — network fees are applied for each withdrawal item separately - The sum of all item amounts plus network fees must not exceed the asset's available balance
- If only one withdrawal item is provided, a single withdrawal will be executed
Bulk Withdrawals
Withdraw funds to multiple addresses within one API call. Uses the same endpoint — simply provide multiple items in the items array.
POST /api/transactions/withdraw
cURL
curl --location 'https://my.paidlys.com/api/transactions/withdraw' \
--header 'authorization: Bearer YOUR_PUBLIC_TOKEN' \
--header 'content-type: application/json' \
--data '<body>'
Body:
{
"items": [
{
"amount": 12,
"to": "THFH4F2B8NcRrfRzrHMqZ2pJihMmwcuzpF",
"asset": "trc20usdt"
},
{
"amount": 15,
"to": "TQqoPSppzKMdAYGcFVwdtJSDA67xsumGzG",
"tag": "",
"asset": "trc20usdt"
},
{
"amount": 23.99,
"to": "TMKCSXKTTZXTwSN5YRNFFHmMMXP8EkfDHU",
"tag": "",
"asset": "trc20usdt"
}
]
}
Response
Each item in the request produces a corresponding response entry:
[
{
"message": "Transaction was successfully accepted by WL.",
"success": true,
"uid": "XXX-XXXXXXXX"
},
{
"message": "Transaction was successfully accepted by WL.",
"success": true,
"uid": "XXX-XXXXXXXX"
},
{
"message": "Transaction was successfully accepted by WL.",
"success": true,
"uid": "XXX-XXXXXXXX"
}
]