Enum Values
The following enums are used across P2P API endpoints. Always pass string values.
| Enum | Value | Description |
|---|---|---|
| Side (Trade Direction) | BUY | Buy |
SELL | Sell | |
| KycLevel | NONE | No KYC |
PRIMARY | Primary KYC | |
ADVANCED | Advanced KYC | |
| advStatus (Ad Status) | CLOSE | Closed |
OPEN | Open | |
DELETE | Deleted | |
LOW_STOCK | Low Stock | |
| FeeType | NONE | None |
EACH_FIX | Fixed per trade | |
EACH_RATIO | Ratio per trade amount | |
| OrderDealState | NOT_PAID | Not paid |
PAID | Paid | |
WAIT_PROCESS | Waiting for merchant | |
PROCESSING | Processing | |
DONE | Completed | |
CANCEL | Cancelled | |
INVALID | Invalid | |
REFUSE | Refused | |
TIMEOUT | Timeout | |
| NotifyType | SMS | SMS verification |
MAIL | Email verification | |
GA | Google Authenticator | |
| tradeBlockReasons Codes | OWN_ADVERTISEMENT | The current user is viewing an advertisement published by the same user. |
TRADE_COUNT_BELOW_MIN | The current user's completed P2P trade count is below the advertisement's minimum requirement. | |
TRADE_COUNT_REACHED_MAX | The current user's completed P2P trade count has reached the advertisement's maximum limit. | |
SPOT_TRADE_COUNT_BELOW_MIN | The current user's spot-trade count in the last six months is below the advertisement's requirement. | |
KYC_LEVEL_NOT_MET | The current user's KYC level is below the advertisement's requirement. | |
REGISTRATION_DAYS_BELOW_MIN | The current user's registration period is shorter than the advertisement's requirement. | |
MOBILE_NOT_VERIFIED | The advertisement requires a verified mobile number, but the current user has not verified one. | |
COUNTRY_NOT_SUPPORTED | The current user's KYC country is not in the advertisement's supported-country list. | |
MERCHANT_TAKER_NOT_ALLOWED | The current user is a merchant and the advertisement does not allow other merchants to place orders as takers. | |
KYB_REQUIRED | The advertisement permits only KYB enterprise users, and the current user is not a KYB user. |