Skip to main content

Error Codes & Enum Definitions

Enum Definitions

Product Type (productType)

  • SEVEN_DAY_APR - 7-day APR product
  • THIRTY_DAY_APR - 30-day APR product
  • DEMAND - Flexible loan product
  • VIP - VIP loan product

Order Type (type)

  • ORDINARY - Standard order
  • VIP - VIP order
  • NOVICE - New user order

Order Status (status)

  • RUNNING - Active
  • REPAYING - Repaying
  • FORCE_LIQUIDATING - Forced liquidation in progress
  • OVERDUE - Overdue
  • REPAID - Repaid
  • RENEWED - Renewed
  • FORCE_LIQUIDATED - Forced liquidation completed
  • COMPLETE - Completed

Repayment Type (repaymentType)

  • ORDINARY_REPAYMENT - Regular repayment
  • PLEDGE_REPAYMENT - Pledge-based repayment

Adjust Pledge Type (adjustPledgeType)

  • ADD - Add pledge
  • REMOVE - Remove pledge

Adjust Trigger Type (adjustPledgeRateType)

  • MANUAL - Manual adjustment
  • AUTO - Automatic adjustment

Loan Type (loanType)

  • LOAN - Liability
  • PLEDGE - Collateral

Error Code Description

HTTP Status Codes

CodeDescription
0Success
1Business exception

Business Error Codes (FinanceLoanOrderResponse.Status)

General Errors (FINANCE_LOAN_ORDER_001–010)

CodeDescriptionTrigger Condition
FINANCE_LOAN_ORDER_002Overdue order existsUser has unresolved overdue orders
FINANCE_LOAN_ORDER_003Product/service unavailableProduct delisted, currency offline, trading disabled, or abnormal price
FINANCE_LOAN_ORDER_004Invalid VIP configurationVIP loan configuration missing or disabled
FINANCE_LOAN_ORDER_005Excessive price fluctuationPrice fluctuation exceeds 5% threshold
FINANCE_LOAN_ORDER_007Renewal not supportedProduct unavailable or trading disabled
FINANCE_LOAN_ORDER_008High pledge ratioCurrent pledge ratio exceeds warning threshold
FINANCE_LOAN_ORDER_009Insufficient balanceAccount balance insufficient for interest payment
FINANCE_LOAN_ORDER_010Already renewedThe loan order has already been renewed

Parameter Validation Errors (FINANCE_LOAN_ORDER_011–020)

CodeDescriptionTrigger Condition
FINANCE_LOAN_ORDER_011Pledge adjustment not allowedCurrency offline or trading disabled
FINANCE_LOAN_ORDER_014Same currency errorLoan and pledge currencies cannot be the same
FINANCE_LOAN_ORDER_015Loan amount too smallBelow minimum loan amount
FINANCE_LOAN_ORDER_016Loan amount exceededAbove maximum allowable loan
FINANCE_LOAN_ORDER_017Pledge amount exceededAbove maximum allowable pledge amount
FINANCE_LOAN_ORDER_018Pledge ratio exceededInput pledge ratio exceeds warning threshold

Business Logic Errors (FINANCE_LOAN_ORDER_021–030)

CodeDescriptionTrigger Condition
FINANCE_LOAN_ORDER_021Balance not foundUser balance for specified currency not found
FINANCE_LOAN_ORDER_025Renewal time not reachedRenewal not yet available
FINANCE_LOAN_ORDER_026Repayment amount exceededExceeds total debt (principal + interest + penalty)
FINANCE_LOAN_ORDER_029Balance API errorError retrieving balance
FINANCE_LOAN_ORDER_030Pledge redemption exceededRedeemed pledge exceeds maximum allowed

Product Type Errors (FINANCE_LOAN_ORDER_031–040)

CodeDescriptionTrigger Condition
FINANCE_LOAN_ORDER_031Product type unavailableSpecified product type is unavailable
FINANCE_LOAN_ORDER_032Invalid renewal product typeRenewal product type not supported
FINANCE_LOAN_ORDER_033VIP minimum amount insufficientVIP loan below minimum required amount
FINANCE_LOAN_ORDER_034Precision validation failedExceeds currency decimal precision
FINANCE_LOAN_ORDER_035Newbie activity unavailableNewbie loan activity disabled
FINANCE_LOAN_ORDER_036Not a new userUser not eligible for newbie loan
FINANCE_LOAN_ORDER_037KYC requiredUser has not completed required KYC (Level 2+)
FINANCE_LOAN_ORDER_038Newbie + coupon conflictNewbie loan cannot use coupons
FINANCE_LOAN_ORDER_039VIP + coupon conflictVIP loan cannot use coupons
FINANCE_LOAN_ORDER_040Coupon mismatchLoan info does not match coupon

Special Operation Errors (FINANCE_LOAN_ORDER_041+)

CodeDescriptionTrigger Condition
FINANCE_LOAN_ORDER_041Coupon unavailableCoupon disabled or not usable
FINANCE_LOAN_ORDER_042Insufficient repayment balanceBalance insufficient during one-click repayment
FINANCE_LOAN_ORDER_043No active ordersNo running orders found during one-click repayment
FINANCE_LOAN_ORDER_044Invalid repayment requestInvalid single repayment request

Changelog

v1.0.0 (2025-09-23)

  • Initial release
  • Added core borrow and repay features
  • Added pledge adjustment functionality
  • Added renewal and one-click repayment support
  • Added auto-replenishment configuration
  • Added historical query support