NYYU Logo
APIWithdraw

Withdrawal API Overview

Complete guide to NYYU withdrawal system with crypto, fiat, and PayPal support

Withdrawal API

Secure withdrawal system supporting cryptocurrency, fiat bank transfers, and PayPal with 2FA verification

Overview

The Withdrawal API provides a comprehensive, secure system for users to withdraw funds from their NYYU wallets using multiple methods: cryptocurrency transfers, bank/fiat transfers, and PayPal payments. All withdrawal operations require verification codes for enhanced security.

Withdrawal Methods

Cryptocurrency

Withdraw crypto assets to external wallets via blockchain networks (BEP20, ERC20, etc.)

🏦
Bank Transfer

Withdraw fiat currency via international or domestic bank transfers

💳
PayPal

Fast withdrawals directly to your PayPal account email

Core Types

CryptoWithdraw

CryptoWithdraw Type
Cryptocurrency withdrawal request details
type CryptoWithdraw {
  id: Int!
  userId: Int!
  amount: Float!
  sourceToken: String!
  network: String!
  des: String!
  status: Int!
  createdAt: Float
  updatedAt: Float
  deniedReason: String
}
Transaction Details
amount - Withdrawal amount
sourceToken - Crypto type (BTC, ETH, etc.)
network - Blockchain network
des - Destination wallet address
Status & Tracking
status - Request status (0-2)
createdAt - Request timestamp
updatedAt - Last update timestamp
deniedReason - Reason if denied

BankWithdrawRequest

🏦
BankWithdrawRequest Type
Fiat bank withdrawal request details
type BankWithdrawRequest {
  id: Int!
  userId: Int!
  targetCurrency: String!
  amount: Float!
  sourceToken: String!
  mode: Int!
  country: String!
  holderName: String!
  bankName: String!
  accNumber: String!
  metadata: String
  address: String!
  postCode: String!
  status: Int!
  createdAt: Float
  updatedAt: Float
}
Banking Details
bankName - Bank institution name
accNumber - Account number
holderName - Account holder name
mode - Transfer mode (1: Intl, 2: Domestic)
Transfer Details
targetCurrency - Target fiat currency
amount - Withdrawal amount
sourceToken - Source wallet currency
country - Bank country

PaypalWithdraw

💳
PaypalWithdraw Type
PayPal withdrawal request details
type PaypalWithdraw {
  id: Int!
  userId: Int!
  email: String!
  target: String!
  amount: Float!
  sourceToken: String!
  status: Int!
  createdAt: Float
  updatedAt: Float
  deniedReason: String
}
email
PayPal account email
target
Target currency (USD, EUR, etc.)
amount
Withdrawal amount
sourceToken
Source crypto wallet

Withdrawal Status

🚦
Status Constants
Withdrawal request lifecycle states
0
PENDING
Withdrawal request submitted, awaiting admin review
1
APPROVED
Withdrawal approved and processed successfully
2
DENIED
Withdrawal request denied, see deniedReason for details

Security Features

🔐
Email Verification

All withdrawal requests require email verification codes to prevent unauthorized access

📱
Admin 2FA SMS

Admin approval operations require SMS 2FA codes for critical security

👨‍💼
Manual Review

All withdrawal requests are manually reviewed by admins before processing

📊
Audit Trail

Complete timestamp tracking with creation and update logs for compliance

Withdrawal Flow

Standard Withdrawal Process
1
Generate Verification Code
User calls generateWithdraw to receive email verification code
2
Submit Withdrawal Request
User submits withdrawal with verification code via crypto/fiat/PayPal mutation
3
Admin Requests 2FA Code
Admin calls sendWithdrawConfirmCode to receive SMS 2FA code
4
Admin Reviews & Approves/Denies
Admin confirms or denies withdrawal with 2FA code and optional denial reason
5
Funds Transferred
Upon approval, funds are transferred to the destination wallet/bank/PayPal

User Operations

Admin Operations

🔒
Security First
All withdrawal operations require verification codes and admin approval for maximum security