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 list of all withdrawals
Success
Unauthorized
{- "api_message": "<string>",
- "api_data": {
- "withdrawals": [
- {
- "id": "<string>",
- "user_id": "<string>",
- "fiat_withdrawal_id": "<string>",
- "fiat_provider": "<string>",
- "lp_withdrawal_id": "<string>",
- "lp_provider": "<string>",
- "ref_account_id": "<string>",
- "reviewed_by_id": "<string>",
- "amount": 1,
- "currency": "<string>",
- "status": "<string>",
- "remarks": "<string>",
- "ip": "<string>",
- "created_by_id": "<string>",
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>",
- "username": "<string>"
}
], - "last_at": "<datetime string>",
- "total_items": 1
}
}
Create new withrawal request.
Success
Bad Request
Unauthorized
Unprocessable Content
{- "amount": "15000",
- "currency": "USD"
}
{- "api_message": "<string>",
- "api_data": {
- "withdrawl": {
- "id": "<string>",
- "user_id": "<string>",
- "fiat_withdrawal_id": "<string>",
- "fiat_provider": "<string>",
- "lp_withdrawal_id": "<string>",
- "lp_provider": "<string>",
- "ref_account_id": "<string>",
- "reviewed_by_id": "<string>",
- "amount": 1,
- "currency": "<string>",
- "status": "<string>",
- "remarks": "<string>",
- "ip": "<string>",
- "created_by_id": "<string>",
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>",
- "username": "<string>"
}
}
}
Get information about withdrawal by withdrawal_id
Success
Unauthorized
Forbidden
{- "api_message": "<string>",
- "api_data": {
- "withdrawl": {
- "id": "<string>",
- "user_id": "<string>",
- "fiat_withdrawal_id": "<string>",
- "fiat_provider": "<string>",
- "lp_withdrawal_id": "<string>",
- "lp_provider": "<string>",
- "ref_account_id": "<string>",
- "reviewed_by_id": "<string>",
- "amount": 1,
- "currency": "<string>",
- "status": "<string>",
- "remarks": "<string>",
- "ip": "<string>",
- "created_by_id": "<string>",
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>",
- "username": "<string>"
}
}
}
Update withdrawal request (approve or decline) as admin
raw(json)
Success
Unauthorized
Forbidden
Unprocessable Content
{- "status": "ADMIN_APPROVED",
- "remarks": "-",
- "otp": "89724"
}
{- "api_message": "<string>",
- "api_data": {
- "withdrawl": {
- "id": "<string>",
- "user_id": "<string>",
- "fiat_withdrawal_id": "<string>",
- "fiat_provider": "<string>",
- "lp_withdrawal_id": "<string>",
- "lp_provider": "<string>",
- "ref_account_id": "<string>",
- "reviewed_by_id": "<string>",
- "amount": 1,
- "currency": "<string>",
- "status": "<string>",
- "remarks": "<string>",
- "ip": "<string>",
- "created_by_id": "<string>",
- "created_at": "<datetime string>",
- "updated_at": "<datetime string>",
- "username": "<string>"
}
}
}