Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create-withdrawal-by-admin #62

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 48 additions & 4 deletions source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -2516,7 +2516,7 @@ network | string | Required | The network info
is_testnet | boolean | Optional | The info on whether it's a testnet or not


## updateExchangeWithdrawal
## updateExchangeBurn

> Request

Expand Down Expand Up @@ -2553,7 +2553,7 @@ email | boolean | Optional | Email
description | string | Optional | The description field


## createExchangeWithdrawal
## createExchangeBurn

> Request

Expand Down Expand Up @@ -2587,7 +2587,7 @@ email | boolean | Optional | The email field
fee | number | Optional | The fee to specify


## updateExchangeDeposit
## updateExchangeMint

> Request

Expand Down Expand Up @@ -2624,7 +2624,7 @@ email | boolean | Optional | Email
description | string | Optional | The description field


## createExchangeDeposit
## createExchangeMint

> Request

Expand Down Expand Up @@ -2690,6 +2690,50 @@ amount | number | Required | The amount to specify
description | string | Optional | The description field
email | boolean | Optional | The email field

## Withdrawal By Admin

> Request

```shell
curl -X POST
-H "api-key: $API_KEY"
-H "api-signature: $API_SIGNATURE"
-H "api-expires: $API_EXPIRES"
-H "Content-Type: application/json"
-d '{"user_id":$user_id,"currency":$currency,"amount":$amount,"address":$address}'
"https://api.hollaex.com/v2/admin/withdrawal"
```

> Response

```json
{
"message": "Withdrawal request is in the queue and will be processed.",
"id": 1000,
"transaction_id": "d696dd5d-3226-4662-8d86-3da3d8eb68ff",
"amount": 1,
"currency": "xht",
"fee": 20,
"fee_coin": "xht"
}
```

This endpoint directly creates a withdrawal on behave of the user, only available via
HMAC tokens with the withdrawal permission.

### HTTP Request

`POST https://api.hollaex.com/v2/admin/withdrawal`

### PARAMETERS

Parameter | Type | Required/Optional | Description
--------- | ------- | ------- | -------
user_id | number | Required | user id for the withdrawal process
currency | string | Required | The desired currency e.g. xht
amount | number | Required | The amount to withdrawal e.g. 5
address | string | Required | The recipient wallet's address
network | string | Optional | Network of currency being withdrawn if there are multiple networks for currency

## getExchangeBalance

Expand Down