Withdrawals

To withdraw, you can submit a withdrawal request using the request method below. We will send you a webhook notification to update you on the status of your request. In the sandbox, all withdrawal requests are mocked and no actual funds are transferred.

Create Withdrawal Request

To get started, submit the currency, amount, destination address and network of your withdrawal request.

curl --request POST \
     --url https://sandbox-api.oneliquidity.technology/wallets/v1/withdrawal \
     --header 'accept: application/json' \
     --header 'authorization: Bearer {{token}}' \
     --header 'content-type: application/json' \
     --data '
{
     "currency": "USDT",
     "amount": 10,
     "toAddress": "0x64c861A819773F51A4d0735cdfef8A0B4e1e08EA",
     "network": "bep20"
}
'

Our ok response will include the id of the withdrawal and the current status of pending.

{
    "message": "Ok",
    "data": {
        "withdrawalId": "25f7c215-a269-55bc-a680-4a9f919d0f56",
        "status": "Pending"
    }
}

API Reference ➡️

Get Withdrawal Requests

You can get all withdrawals from your wallets. Include optional lek & limit query parameters for pagination.

curl --request GET \
     --url https://api.oneliquidity.technology/wallets/v1/withdrawal \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer {{token}}'

Our ok response will include details about all withdrawals made from your wallets including details like the amount, the transaction hash etc.

{
    "message": "Ok",
    "data": [
        {
            "withdrawalId": "90380892-31a0-5afe-bf47-a0db27c3b3d9",
            "amount": 15,
            "createdAt": "2022-09-14T11:40:11.129Z",
            "currency": "USDT",
            "integratorPk": "b43d305c-98df-4980-8d73-f85f6c36bace",
            "toAddress": "0x64c861A819773F51A4d0735cdfef8A0B4e1e08EA",
            "network": "bep20",
            "status": "Completed",
            "txId": "mock_transaction",
            "reason": "mock_transaction"
        },
        {
            "withdrawalId": "25f7c215-a269-55bc-a680-4a9f919d0f56",
            "amount": 10,
            "createdAt": "2022-09-14T09:06:35.779Z",
            "currency": "USDT",
            "integratorPk": "b43d305c-98df-4980-8d73-f85f6c36bace",
            "toAddress": "0x64c861A819773F51A4d0735cdfef8A0B4e1e08EA",
            "network": "bep20",
            "status": "Pending"
        },
        {
            "withdrawalId": "9319f805-d8ed-5a4e-acc8-970be66bbe65",
            "amount": 10,
            "createdAt": "2022-09-14T10:45:33.654Z",
            "currency": "USDT",
            "integratorPk": "b43d305c-98df-4980-8d73-f85f6c36bace",
            "toAddress": "0x64c861A819773F51A4d0735cdfef8A0B4e1e08EA",
            "network": "bep20",
            "status": "Pending"
        },
        {
            "withdrawalId": "36c8aadb-c145-54db-944b-2256388aa3a7",
            "amount": 10,
            "createdAt": "2022-09-14T11:06:15.896Z",
            "currency": "USDT",
            "integratorPk": "b43d305c-98df-4980-8d73-f85f6c36bace",
            "toAddress": "0x64c861A819773F51A4d0735cdfef8A0B4e1e08EA",
            "network": "bep20",
            "status": "Completed",
            "txId": "mock_transaction",
            "reason": "mock_transaction"
        },
        {
            "withdrawalId": "fe2ad154-1880-5942-85c1-8f80519e1347",
            "amount": 5,
            "createdAt": "2022-09-14T11:49:02.142Z",
            "currency": "USDT",
            "integratorPk": "b43d305c-98df-4980-8d73-f85f6c36bace",
            "toAddress": "0x64c861A819773F51A4d0735cdfef8A0B4e1e08EA",
            "network": "bep20",
            "status": "Completed",
            "txId": "mock_transaction",
            "reason": "mock_transaction"
        },
        {
            "withdrawalId": "3c9301d1-7f37-598c-b1bd-ae16533ec443",
            "amount": 10,
            "createdAt": "2022-09-14T10:24:17.715Z",
            "currency": "USDT",
            "integratorPk": "b43d305c-98df-4980-8d73-f85f6c36bace",
            "toAddress": "0x64c861A819773F51A4d0735cdfef8A0B4e1e08EA",
            "network": "bep20",
            "status": "Pending"
        }
    ]
}

🚧

Transaction Hash (txId)

Withdrawal request with the Pending status will not have a transaction hash.

API Reference ➡️