Hercle
REST
GET/api/v1/withdrawals

Get Withdrawals

Returns an array of the user's historic withdrawals. Supports filtering and pagination.

Pagination parameters (page, pageSize) are only necessary when filtering by fields that can return multiple items (asset, network). When filtering by withdrawalId, pagination is not required as it returns at most one result.

Auth:Bearer <api_key>
Tags:Withdrawals

Request

cURL
curl -G https://publicapi.sandbox.hercle.financial/api/v1/withdrawals \
  -H "Authorization: Bearer eyJhb..." \
  

Query Parameters

NameTypeRequiredDescription
clientIdstringNoFilter by client ID
Example: 123e4567-e89b-12d3-a456-426614174000
withdrawalIdstringNoFilter by withdrawal ID (unique, returns at most one result)
Example: 987e6543-e21b-12d3-a456-426614174999
networkstringNoFilter by network name
Example: Ethereum
assetstringNoFilter by asset name
Example: ETH
addressstringNoFilter by destination address
Example: 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb
startDatestringNoStart date for filtering (ISO 8601 format)
Example: 2024-01-01T00:00:00Z
endDatestringNoEnd date for filtering (ISO 8601 format)
Example: 2024-12-31T23:59:59Z
pagenumberNoPage number for pagination (only needed when filtering by asset/network)
Example: 0
pageSizenumberNoNumber of items per page (only needed when filtering by asset/network)
Example: 5

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token for authentication
Content-TypestringYesContent type of the request

Response

Success Response Schema

FieldTypeDescription
idstringUnique identifier for the withdrawal
userIdstringUser identifier who initiated the withdrawal
clientIdstringClient identifier associated with the withdrawal
namestringFirst name of the user
surnamestringLast name of the user
companystringCompany name if applicable
descriptionstringDescription or note for the withdrawal
destinationstringDestination address for the withdrawal
destinationParamsobjectAdditional destination parameters
networkstringNetwork name (e.g., Bitcoin, Ethereum)
amountnumberWithdrawal amount
feenumberFee charged for the withdrawal
assetstringAsset code (e.g., BTC, ETH, USD)
statusstring
Current status of the withdrawal
Allowed values:
CREATED
CONFIRMING
CONFIRMED
refIdstringReference ID for the withdrawal
isInstantbooleanWhether this is an instant withdrawal
timestampstringISO 8601 timestamp of withdrawal creation

Responses

List of withdrawals retrieved successfully

200 application/json
[
  {
    "id": "987e6543-e21b-12d3-a456-426614174000",
    "userId": "987e6543-e21b-12d3-a456-426614174999",
    "clientId": "client_001",
    "name": "John",
    "surname": "Doe",
    "company": "Acme Corp",
    "description": "Withdrawal to personal wallet",
    "destination": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
    "destinationParams": {},
    "network": "Bitcoin",
    "amount": 0.01,
    "fee": 0.0005,
    "asset": "BTC",
    "status": "CREATED",
    "refId": "withdrawal_ref_001",
    "isInstant": false,
    "timestamp": "2024-06-01T12:00:00Z"
  }
]

API Tester

Test this endpoint directly against the sandbox environment

Get your API key from Hercle Sandbox

Filter by client ID

Filter by withdrawal ID (unique, returns at most one result)

Filter by network name

Filter by asset name

Filter by destination address

Start date for filtering (ISO 8601 format)

End date for filtering (ISO 8601 format)

Page number for pagination (only needed when filtering by asset/network)

Number of items per page (only needed when filtering by asset/network)

https://publicapi.sandbox.hercle.financial/api/v1/withdrawals