Transfer

This section give's control for system transfers.
Transfer creation must be provided with amount,currency and wallet address to transfer to (wallet must be verified saved in the DB beforehand).
Admin logged in - can approve/decline any pending transfer (must use his authenticator password for this type of actions).
User logged in - can create any transfer request (in case he has sufficent balance and a wallet saved and verified in the DB).

get-all-transfers-list

Returns a list of all pending/closed transfers

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/transfers
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

post-transfer

Create new transfer 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
number
recepient_address
string
currency
string
Responses
200

Success

403

Forbidden

404

Not Found

422

Unprocessable Content

500

Internal Server Error

post/transfers
Request samples
application/json
{
  • "amount": 0.2,
  • "recepient_address": "0x0Af8100d452aCCA8D469B98564B2B6a24bfDcD61",
  • "currency": "GTETH"
}
Response samples
application/json
{
  • "http_status": 200,
  • "api_status": 200,
  • "api_message": "<string>",
  • "api_data": {
    }
}

get-exact-transfer-info

Returns info about transfer row by transfer_id

SecurityAuthorization
Request
path Parameters
transfer_id
required
string

transfer_id path parameter

Example: <transfer_id>
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/transfers/{transfer_id}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

approve/decline-exact-transfer

Approve or decline transfer request

SecurityAuthorization
Request
path Parameters
transfer_id
required
string

transfer_id path parameter

Example: <transfer_id>
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
Enum: "ADMIN_APPROVED" "ADMIN_DECLINED"
otp
number
reason
string

required if status property is ADMIN_DECLINED

Responses
200

Success

400

Bad Request

403

Forbidden

422

Unprocessable Content

put/transfers/{transfer_id}
Request samples
application-json
{
  • "status": "ADMIN_APPROVED",
  • "otp": 412890,
  • "reason": "<string>"
}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}