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).
Returns a list of all pending/closed transfers
Success
Unauthorized
{- "api_message": "<string>",
- "api_data": {
- "last_at": "<datetime string>",
- "total_items": 1,
- "transfers": [
- {
- "id": "<string>",
- "user_id": "<string>",
- "ref_account_id": "<string>",
- "reviewed_by_id": "<string>",
- "amount": 1,
- "currency": "<string>",
- "recipient_address": "<string>",
- "status": "<string>",
- "reason": "<string>",
- "ip": "<string>",
- "created_by_id": "<srting>",
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>",
- "username": "<string>"
}
]
}
}
Create new transfer request
Success
Forbidden
Not Found
Unprocessable Content
Internal Server Error
{- "amount": 0.2,
- "recepient_address": "0x0Af8100d452aCCA8D469B98564B2B6a24bfDcD61",
- "currency": "GTETH"
}
{- "http_status": 200,
- "api_status": 200,
- "api_message": "<string>",
- "api_data": {
- "transfer": {
- "id": "<string>",
- "user_id": "<string>",
- "ref_account_id": "<string>",
- "reviewed_by_id": "<string>",
- "amount": 1,
- "currency": "<string>",
- "recipient_address": "<string>",
- "status": "<string>",
- "reason": "<string>",
- "ip": "<string>",
- "created_by_id": "<srting>",
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>",
- "username": "<string>"
}
}
}
Returns info about transfer row by transfer_id
Success
Unauthorized
Forbidden
{- "api_message": "<string>",
- "api_data": {
- "transfers": {
- "id": "<string>",
- "user_id": "<string>",
- "ref_account_id": "<string>",
- "reviewed_by_id": "<string>",
- "amount": 1,
- "currency": "<string>",
- "recipient_address": "<string>",
- "status": "<string>",
- "reason": "<string>",
- "ip": "<string>",
- "created_by_id": "<srting>",
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>"
}
}
}
Approve or decline transfer request
raw(json)
Success
Bad Request
Forbidden
Unprocessable Content
{- "status": "ADMIN_APPROVED",
- "otp": 412890,
- "reason": "<string>"
}
{- "api_message": "<string>",
- "api_data": {
- "transfers": {
- "id": "<string>",
- "user_id": "<string>",
- "ref_account_id": "<string>",
- "reviewed_by_id": "<string>",
- "amount": 1,
- "currency": "<string>",
- "recipient_address": "<string>",
- "status": "<string>",
- "reason": "<string>",
- "ip": "<string>",
- "created_by_id": "<srting>",
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>"
}
}
}