Withdrawal

This section give's control for system overall (Fiat) withdrawals.
Withdrawal request can be created with amount and currency.
Admin logged in - can see all the pending / closed withdrawals requests, and approve or decline any withdrawal request (using his authenticator password).
User logged in - can see it's own pending/closed withdrawals, or create any withdrawal request (in case he has sufficent balance).

get-all-wthdrawals-list

Get list of all withdrawals

SecurityAuthorization
Request
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Responses
200

Success

401

Unauthorized

get/withdrawals
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

post-new-withdrawal

Create new withrawal request.

SecurityAuthorization
Request
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Request Body schema: application/json
required

raw(json)

amount
string
currency
string
Responses
200

Success

400

Bad Request

401

Unauthorized

422

Unprocessable Content

post/withdrawals
Request samples
application/json
{
  • "amount": "15000",
  • "currency": "USD"
}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

get-exact-withdrawal-info

Get information about withdrawal by withdrawal_id

SecurityAuthorization
Request
path Parameters
withdrawal_id
required
string

withdrawal_id path parameter

Example: <string>
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Responses
200

Success

401

Unauthorized

403

Forbidden

get/withdrawals/{withdrawal_id}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

approve/decline-withdrawal

Update withdrawal request (approve or decline) as admin

SecurityAuthorization
Request
path Parameters
withdrawal_id
required
string

withdrawal_id path parameter

Example: <string>
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Request Body schema: application/json
required

raw(json)

status
string
remarks
string
otp
string
Responses
200

Success

401

Unauthorized

403

Forbidden

422

Unprocessable Content

put/withdrawals/{withdrawal_id}
Request samples
application/json
{
  • "status": "ADMIN_APPROVED",
  • "remarks": "-",
  • "otp": "89724"
}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

delete-exact-withdrawal

Delete withdrawal request row from the DB.

SecurityAuthorization
Request
path Parameters
withdrawal_id
required
string

withdrawal_id path parameter

Example: <string>
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Responses
204

No Content (Success)

401

Unauthorized

403

Forbidden

delete/withdrawals/{withdrawal_id}
Response samples
application/json
{ }