Withdrawal
Retrieves the details of a specific withdrawal using the withdrawal ID.
Path parameters
withdrawalIdstringRequiredExample:
The ID of the withdrawal to retrieve.
f2bcddd4-bd8d-4c88-bf8a-61be0d5b0600
Header parameters
x-api-keystringRequiredExample:
API key for authentication.
your-api-key
Responses
200
Successfully retrieved the withdrawal details.
application/json
400
Bad request. Invalid input parameters.
application/json
404
Withdrawal not found.
application/json
500
Internal server error.
application/json
get
GET /tokenpay/user/withdrawal/{withdrawalId} HTTP/1.1
Host: api.ordinalsbot.com
x-api-key: your-api-key
Accept: */*
{
"id": "f2bcddd4-bd8d-4c88-bf8a-61be0d5b0600",
"accountId": "user123",
"protocol": "bitcoin",
"token": "BTC",
"amount": 0.5,
"address": "bc1qh3rp2pns6nrr8mhx0rlzd5kktwm33wc4ax0h4y",
"state": "completed",
"createdAt": 1721745751531
}