33BDA696CE38AF28
33BDA696CE38AF28
1. Ads
1.1 Create Ad
Creates a new ad.
HTTP Request
POST /api/v5/p2p/ad/create
Request Parameters
Parameter Type Require Description
d
automatedM String No Message that is sent to taker when an order is placed on this ad
essage
cryptoAmou String Yes The quantity of cryptocurrency
nt
cryptoCurre String Yes The crypto currency symbol. Example: BTC
ncy
fiatCurrency String Yes The fiat currency symbol. Example: USD
isProofRequi Boolean No Indicates whether a proof (e.g., bank statement) is required for CNY
red ads. Valid values: true, false
isPublic Boolean No Indicates whether the ad is targeted for public or private
marketplace. Valid values: true,false
maxOrderLi String Yes The maximum order limit. Example: 990.00
mit
maxPaymen String No The maximum time allowed for payment in minutes before
tDurationIn timeout happens. Valid values can be fetched from the /config API
Minutes from maxPaymentDurationAllowedValues field.
Examples: 5,10,15,30,60,120
minAccount String No The number of days since the user has registered (sign-up date).
Age Valid values are: 30, 60, 180, 365
minComplet String No The minimum number of completed orders by the transaction
edOrders party
minComplet String No The minimum order completion rate of the taker. Example: 0.95
ionRate
minKycLevel String No The minimum identity verification level of the taker. Valid values:
1,2,3
minOrderLi String Yes The minimum order limit. Example: 890.00
mit
minSellOrde String No The minimum number of sell orders completed by the taker.
rs Example: 5
paymentMet Array of No The Ids of payment methods which maker accepts for payments.
hodIds String Applicable only for 'sell' ads. Example: [1234]
paymentMet String No The payment methods which maker can transact in. Applicable
hods only for 'buy' ads. Example: bank
priceFloor String No The lowest price before the user's ad is hidden. Applicable only for
ads with price type as floating_market. Example: 890.00
priceMargin String No The price margin ratio for floating type ads. Applicable only for ads
with price type as floating_market. Example: 0.01
remark String No Additional information or trading instructions for the ad for taker
side String Yes Specifies the transaction side or direction. Use buy to indicate a
buy transaction, sell for a sell
transaction.
targetGroup String Yes User target group for the ad. Valid values:
common,certified,diamond,all
type String Yes Ad price type. Valid values are: limit, floating_market
unitPrice String Yes The unit price in fiat currency. Applicable only for ads with price
type as fixed price. Example: 1.1
verificationT String No Verification type for overseas ads excluding CNY. Valid values: 0 (No
ype verification), 1 (Verification)
verificationN Array of No Notes set by the maker for Verification Ads to be shown as a
otes Object prompt to the taker
> id String No Verification note Id.
Valid values (CNY):
1 (Provide proof that the account funds used for payment have
been credited for more than X days)
Response Parameters
Paramete Type Description
r
adId String Id of the created ad
Response Parameters
Parameter Type Description
adId String Ad id
automatedMessage String Message that is sent to taker when an order is placed on
this ad
availableAmount String The available crypto quantity currently available for
buying and selling
blacklistStatus String Blacklist status. Valid values:
NO_BLACK (No blacklist relationship)
BLACK_OTHER (Current user blacklisted the other side)
BLACKED (The other side blacklisted current user)
BLACK_EACH_OTHER (Current user and other use
blacklisted each other)
blockedReasons Array of Collection of all blocked reasons. Example: Your
strings completion rate is less than 0.5. We encourage you to
increase it
completedOrderCry String The amount of crypto that has been traded till now
ptoAmount
completedOrderFia String The amount of fiat that has been traded till now
tAmount
configuredPayment Array of Collection of maker payment information
MethodDetails objects
> paymentMethod String Payment method
> openStatus String Payment method switch state. Valid values:
open
close
unbound
> Array of Collection of payment method details
paymentMethodDet objects
ails
>> String Payment method Id
paymentMethodId
>> accountNo String The account number of payment method
>> bankName String Bank name
createdTimestamp String Creation time of the ad
creator Object Ad creator details
> id String User Id
> nickName String Nick name of the user
> realName String Real name of the user
> type String User type for the ad. Valid values:
common
certified
diamond
> completedOrders String The number of orders completed by the user
> cancelledOrders String The number of orders canceled by the user
> String The number of sell orders completed by the user
completedSellOrder
s
> completionRate String The order completion rate of the user
> kycLevel String The identity verification level of the user. Valid values: 1,
2, 3
> acceptStatus String Order acceptance status of the user. Valid values: 0 (do
not accept order), 1 (accept order)
String Average payment time in seconds
>
avgPaymentTimeIn
Seconds
> String Average completion time in seconds
avgCompletionTim
eInSeconds
> String User joining timestamp in milliseconds
createdTimestamp
> hasAlreadyTraded Boolean Specifies whether the user has traded in the past with
the requester. Valid values: true, false
cryptoCurrency String Crypto currency symbol
cryptoScale String Crypto currency decimal places
fiatCurrency String Fiat currency symbol
fiatPriceIncrement String Fiat currency increasing unit price gradient
fiatPriceScale String Decimal places reserved for fiat currency
fiatScale String Fiat Currency decimal places
hiddenCategory String Hidden Category. Valid values are:
1 (hide one)
0 (not hidden)
3 (out of stock)
hiddenReason String All ads hidden reasons
hiddenType String Order offline type. Valid values:
0
1
isBlockTradeCatego Boolean Specifies whether the ad is a block trade ad (ad dealing
ry with large amount)
isCreatorBlockedBy Boolean Specifies whether blocked by the current user
CurrentUser
isHidden Boolean Specifies whether the ad is hidden or not
isListedOnMarketpl Boolean Specifies whether the ad is listed on marketplace
ace
isOwner Boolean Specifies whether the ad belongs to the user
isPriceOutOfRange Boolean Specifies whether index rate deviates too much
isProofRequired Boolean Specifies whether proof is required
isSecurityLimitAppli Boolean Specifies whether T+1 order
cable
latestUserRegistere String Transaction party user maximum registration time.
dTimestamp Example: 1686652358497
priceMargin String The price margin ratio for floating type ads. Applicable
only for ads with price type as floating price
realFiatMaxAmount String Original order maximum amount
PerOrder
remark String Additional information or instructions for the ad for taker
side String Specifies the transaction side or direction. Valid values:
buy
sell
status String Order status. Valid values:
new
canceled
completed
creating
create_fail
canceling
cancel_fail
targetGroup String User target group for the ad. Valid values:
common
certified
diamond
all
type String Ad price type. Valid values:
limit
floating_market
unitPrice String Unit price
unpaidOrderTimeo String Payment time in minutes
utInMinutes
updatedTimestamp String Timestamp of latest modification of ad. Example:
1686652358497
userRegisteredInter String Maximum registration interval in days
valInDays
verificationNotes Array of Notes for Verification Ads to be shown as a prompt to the
Object taker
>id Integer Verification note Id.
Valid values (CNY):
1 (Provide proof that the account funds used for
payment have been credited for more than X days)
Response Parameters
Paramete Type Description
r
oldAdId String Id of the cancelled ad
newAdId String Id of the newly created ad
1.4 Update Ad Active Status
Updates the ad status to be online or offline.
HTTP Request
POST /api/v5/p2p/ad/update-active-status
Request Parameters
Parame Type Require Description
ter d
adId String Yes Id of the Ad for which status needs to be modified
status String Yes New online status of the Ad. Valid values: hidden, show
Response Parameters
Paramete Type Description
r
adId String Id of the Ad for which status got modified
Response Parameters
Paramete Type Description
r
adId String Id of the cancelled Ad
Response Parameters
Parameter Type Description
currentHighestBuyAd String Current highest buy ad price
Price
currentLowestSellAd String Current lowest sell ad price
Price
shouldShowOnlyFoll Boolea No Specifies whether to fetch ads from users which the current
ow n user follows. Default: false. Valid values: true, false
showAlreadyTraded Boolea No Specifies whether to fetch ads which have already been
n traded with the user. Default: false. Valid values: true, false
isProofRequired Boolea No Specifies whether verification is required for the ads.
n Default: false. Valid values: true, false
hideOverseasVerifica Boolea No Specifies whether to hide overseas verification ads. Default:
tionAds n false. Applies only for non-CNY regions. Valid values: true,
false
Response Parameters
Parameter Type Description
sellAds Array of Collection of sell ad details
Object
buyAds Array of Collection of buy ad details
Object
> adId String Ad Id
> minSellOrders String Minimum number of sell orders completed by the trading
party
> side String Specifies the transaction side or direction. Valid values:
buy,sell,block_buy,block_sell
> cryptoCurrency String Crypto currency symbol
> fiatCurrency String Fiat currency symbol
> minOrderSize String Order lower limit
> maxOrderSize String Order upper limit
> availableAmount String The available current quantity that can be bought/sold
> unitPrice String The unit price in fiat currency. Applicable only for ads with
price type as fixed price. Example: 1.1
> creator Object Information about the ad creator.
>> hasAlreadyTraded Boolean Specifies whether the ad creator has already traded with the
user
>> nickName String Nick name of the ad creator
>> userId String Id of the ad creator
>> cancelledOrders String Number of orders cancelled by the user
>> merchantId String Merchant Id
>> type String Ad creator type. Valid values: all, common (non-
authenticated), certified (authenticated)
>> completedOrders String Total orders completed by the ad creator
>> completionRate String Completion rate of the ad creator
>> isBlacklistedByUser Boolean Specifies whether the ad creator is blocked by the user
> paymentMethods Array of Collection of payment methods. Example: bank, aliPay,
String wxPay
> Array of Collection of payment method basic info set by the maker.
paymentMethodBasicIn Object Applicable for buy ads
foList
>> paymentMethod String Payment method name
>> Boolean Indicate whether the payment method instantly settle
isInstantSettlePayment
>> transferSpeed String Indicates the speed of the payment method. Valid values:
0 (nil): No specific speed requirement or processing time
mentioned.
1 (real time): Payment is expected to be processed
immediately or in real-time.
2 (instant crypto release): Payment release or confirmation is
expected to be instant for cryptocurrency transactions.
3 (up to X days): Payment processing may take up to a
certain number of days, where X represents the specific
number of days mentioned.
> fiatScale String Fiat Currency decimal places
> isOwner Boolean Specifies whether the ad belongs to the user
> minCompletedOrders String The minimum number of completed orders specified by the
ad creator
> maxCompletedOrders String The maximum number of completed orders specified by the
ad creator
> minCompletionRate String The minimum completion rate of the taker specified by the
ad creator
> targetGroup String User target group for the ad. Valid values:
common
certified
diamond
all
> String The maximum average completion time of the taker
maxAvgCompletionTim
e
> Boolean Specifies whether T+1 ad
isSecurityLimitApplicabl
e
> isProofRequired Boolean Indicates whether a proof (e.g., bank statement) is required
for CNY ads. Valid values: true, false
> verificationType String Verification type for overseas ads excluding CNY. Valid
values: 0 (No verification), 1 (Verification)
> fiatSymbol String Fiat currency symbol. Examples: ¥,$
recommendedAd Array of Recommended ads
Object
> userGroup String User group that can see ad. Valid values: 0 (new users), 1
(returning users), 2 (both)
> ad Object Ad details. Schema is the same as what it is for buy/sell ads
Sample Response:
1 {
2 "code": 0,
3 "data": [
4 {
5 "buyAds": [
6
7 {
8 "adId": "230206170034022",
9 "availableAmount": "154.00",
10 "creator": {
11 "cancelledOrders": "7",
12 "completedOrders": "200001",
13 "completionRate": "0.9999",
14 "hasAlreadyTraded": false,
15 "isBlacklistedByUser": false,
16 "merchantId": "bba0ea46b8",
17 "nickName": "1234424",
18 "type": "diamond",
19 "userId": "2460c7a78d"
20 },
21 "cryptoCurrency": "usdt",
22 "fiatCurrency": "cny",
23 "fiatScale": "2",
24 "fiatSymbol": "¥",
25 "isOwner": "false",
26 "isProofRequired": false,
27 "isSecurityLimitApplicable": false,
28 "maxAvgCompletionTime": "",
29 "maxCompletedOrders": "0",
30 "maxOrderSize": "646.00",
31 "minCompletedOrders": "0",
32 "minCompletionRate": "0.0",
33 "minKycLevel": "1",
34 "minOrderSize": "1.00",
35 "minSellOrders": "0",
36 "paymentMethodBasicInfoList": [],
37 "paymentMethods": [
38 "bank"
39 ],
40 "remark": "",
41 "side": "buy",
42 "targetGroup": "all",
43 "unitPrice": "6.4600",
44 "verificationType": "0"
45 },
46 {
47 "adId": "230208145147869",
48 "availableAmount": "29.00",
49 "creator": {
50 "cancelledOrders": "2",
51 "completedOrders": "0",
52 "completionRate": "0.0000",
53 "hasAlreadyTraded": false,
54 "isBlacklistedByUser": false,
55 "merchantId": "ceb26b15e6",
56 "nickName": "Test@1675838705282",
57 "type": "certified",
58 "userId": "e436507906"
59 },
60 "cryptoCurrency": "usdt",
61 "fiatCurrency": "cny",
62 "fiatScale": "2",
63 "fiatSymbol": "¥",
64 "isOwner": "false",
65 "isProofRequired": false,
66 "isSecurityLimitApplicable": false,
67 "maxAvgCompletionTime": "",
68 "maxCompletedOrders": "0",
69 "maxOrderSize": "187.34",
70 "minCompletedOrders": "0",
71 "minCompletionRate": "0.0",
72 "minKycLevel": "1",
73 "minOrderSize": "1.00",
74 "minSellOrders": "0",
75 "paymentMethodBasicInfoList": [],
76 "paymentMethods": [
77 "bank"
78 ],
79 "remark": "",
80 "side": "buy",
81 "targetGroup": "all",
82 "unitPrice": "6.4600",
83 "verificationType": "0"
84 }
85 ],
86 "recommendedAd": {
87 "ad": {
88 "adId": "230710173636129",
89 "availableAmount": "999999.00",
90 "creator": {
91 "cancelledOrders": "0",
92 "completedOrders": "0",
93 "completionRate": "0.0000",
94 "hasAlreadyTraded": false,
95 "isBlacklistedByUser": false,
96 "merchantId": "9a9aa9acc9",
97 "nickName": "ftt.maker",
98 "type": "diamond",
99 "userId": "4f9054eaf1"
100 },
101 "cryptoCurrency": "usdt",
102 "fiatCurrency": "cny",
103 "fiatScale": "2",
104 "fiatSymbol": "¥",
105 "isOwner": "false",
106 "isProofRequired": false,
107 "isSecurityLimitApplicable": false,
108 "maxAvgCompletionTime": "",
109 "maxCompletedOrders": "0",
110 "maxOrderSize": "6999993.00",
111 "minCompletedOrders": "0",
112 "minCompletionRate": "0.0",
113 "minKycLevel": "1",
114 "minOrderSize": "1.00",
115 "minSellOrders": "0",
116 "paymentMethodBasicInfoList": [],
117 "paymentMethods": [
118 "bank"
119 ],
120 "remark": "",
121 "side": "sell",
122 "targetGroup": "all",
123 "unitPrice": "7.0000",
124 "verificationType": "0"
125 },
126 "userGroup": "0"
127 },
128 "sellAds": [
129 {
130 "adId": "230710173636129",
131 "availableAmount": "999999.00",
132 "creator": {
133 "cancelledOrders": "0",
134 "completedOrders": "0",
135 "completionRate": "0.0000",
136 "hasAlreadyTraded": false,
137 "isBlacklistedByUser": false,
138 "merchantId": "9a9aa9acc9",
139 "nickName": "ftt.maker",
140 "type": "diamond",
141 "userId": "4f9054eaf1"
142 },
143 "cryptoCurrency": "usdt",
144 "fiatCurrency": "cny",
145 "fiatScale": "2",
146 "fiatSymbol": "¥",
147 "isOwner": "false",
148 "isProofRequired": false,
149 "isSecurityLimitApplicable": false,
150 "maxAvgCompletionTime": "",
151 "maxCompletedOrders": "0",
152 "maxOrderSize": "6999993.00",
153 "minCompletedOrders": "0",
154 "minCompletionRate": "0.0",
155 "minKycLevel": "1",
156 "minOrderSize": "1.00",
157 "minSellOrders": "0",
158 "paymentMethodBasicInfoList": [],
159 "paymentMethods": [
160 "bank"
161 ],
162 "remark": "",
163 "side": "sell",
164 "targetGroup": "all",
165 "unitPrice": "7.0000",
166 "verificationType": "0"
167 }
168 ]
169 }
170 ],
171 "msg": ""
172 }
Response Parameters
Parameter Type Description
adId String Ad id for which sharing info is generated
side String
Specifies the transaction side or direction. Valid values:
buy,sell,block_buy,block_sell
cryptoCurrency String Crypto currency symbol
fiatCurrency String Fiat currency symbol
cryptoDecimalPlaces String Crypto currency decimal places
fiatDecimalPlaces String Fiat currency decimal places
minOrderLimit String The minimum order limit. Example: 890.00
maxOrderLimit String The maximum order limit. Example: 990.00
unitPrice String The unit price in fiat currency. Applicable only for ads with price type
as fixed price. Example: 1.1
fiatPriceScale String Decimal places reserved for fiat currency
fiatPriceIncrement String Fiat currency increasing unit price gradient
paymentMethods Array of The payment methods which maker can transact in. Applicable only
String for 'buy' ads. Examples: bank,aliPay,wxPay
depositPaymentMeth Array of Collection of deposit payment methods
ods Object
> paymentMethod String Payment method code. Example: bank
> description String Description of payment method
remark String Additional information or instructions for the ad for taker
minKycLevel String The minimum identity verification level of the taker. Valid values:
1,2,3
targetGroup String User target group for the ad. Valid values:
common,certified,diamond,all
availableAmount String The available crypto quantity currently available for buying and
selling
nickName String Nick name of the creator
minCompletionRate String The minimum order completion rate of the taker. Example: 0.95
minCompletedOrder String The minimum number of completed orders specified by the ad
s creator
String
maxCompletedOrder The maximum number of completed orders specified by the ad
s creator
isPublic Boolean Indicates whether the ad is targeted for public or private
marketplace. Valid values: true,false
userLevel String Ad creator level. Valid values:common,certified,diamond
minKycLevel String The minimum identity verification level of the taker. Valid values:
1,2,3
Response Parameters
Parameter Type Description
adId String Ad id
type String Ad price type. Valid values:
limit
floating_market
side String Specifies the transaction side or direction. Valid values:
buy
sell
cryptoCurrency String Crypto currency symbol
fiatCurrency String Fiat currency symbol
minOrderSize String Order lower limit
maxOrderSize String Order upper limit
availableAmount String The available crypto quantity currently available for buying and
selling
completedOrderCryptoA String The amount of crypto that has been traded till now
mount
completedOrderFiatAmou String The amount of fiat that has been traded till now
nt
onHoldAmount String The quantity that has been frozen but the order has not been
completed till now
unitPrice String Unit price
priceMargin String The price margin ratio for floating type ads. Applicable only for
ads with price type as floating price
creator Object Details of the ad creator
> userId String User Id
> nickName String Nick name of the user
> realName String Real name of the user
> type String User type. Valid values:
common
certified
diamond
all
> completedOrders String The number of orders completed by the user
> cancelledOrders String The number of orders canceled by the user
> completedSellOrders String The number of sell orders completed by the user
> completionRate String The order completion rate of the user
> kycLevel String The identity verification level of the user
> acceptStatus String Order acceptance status of the user. Valid values: 0 (do not
accept order), 1 (accept order)
> String Average payment time in seconds
avgPaymentTimeInSecon
ds
> String Average completion time in seconds
avgCompletionTimeInSec
onds
> createdTimestamp String User joining timestamp in milliseconds
> hasAlreadyTraded Boolea Specifies whether the user has traded in the past with the
n requester. Valid values: true, false
> Array of Collection of payment method basic info set by the maker.
paymentMethodBasicInfo Object Applicable for buy ads.
List
>> paymentMethod String Payment method name
>> isInstantSettlePayment Boolea Indicate whether the payment method instantly settle
n
>> transferSpeed String Indicates the speed of the payment method. Valid values:
0 (nil): No specific speed requirement or processing time
mentioned.
1 (real time): Payment is expected to be processed immediately
or in real-time.
2 (instant crypto release): Payment release or confirmation is
expected to be instant for cryptocurrency transactions.
3 (up to X days): Payment processing may take up to a certain
number of days, where X represents the specific number of days
mentioned.
minKycLevel String The minimum identity verification level of the taker. Valid values:
1,2,3
remark String Additional information or instructions for the ad for taker
createdTimestamp String Creation time of the ad
isHidden Boolea Specifies whether the ad is hidden or not
n
fiatPriceScale String Decimal places reserved for fiat currency
fiatPriceIncrement String Fiat currency increasing unit price gradient
fiatScale String Fiat Currency decimal places
cryptoScale String Crypto currency decimal places
isOwner Boolea Specifies whether the ad belongs to the user
n
minCompletedOrders String
The minimum number of orders completed by the taker
maxCompletedOrders String
The maximum number of orders completed by the taker
minSellOrders String
The minimum number of sell orders completed by the taker
minCompletionRate String
The minimum order completion rate of the taker
targetGroup String
User target group for the ad. Valid values:
common
certified
diamond
all
maxAvgCompleteTime String The maximum average completion time of the transaction
parties
isBlockTradeCategory Boolea Specifies whether the ad is a block trade ad (ad dealing with
n large amount)
isPriceOutOfRange Boolea Specifies whether index rate deviates too much
n
maxPaymentDurationInMi String The maximum time allowed for payment in minutes before
nutes timeout happens.
status String Order status. Valid values:
new
canceled
completed
creating
create_fail
canceling
cancel_fail
blacklistStatus String Blacklist status
merchantId String Merchant Id
status String
platformCommissionRate String Commission rate charged by the platform
Response Parameters
Parameter Type Description
blockTradeForUserAllow Boolea Specifies whether the user is eligible to place block trades. Valid
ed n values: true/false
blockTradeForFiatAllowe Boolea Specifies whether block trade is allowed for this fiat currency.
d n Valid values: true/false
minBlockTradeAmount String Specifies the transaction side or direction. Valid values:
buy
sell
orderLimits String Crypto currency symbol
> min String Limit lower value. Ad min and max values should be greater than
this value.
> max String Limit upper value. Ad min and max values should be less than this
value.
optimalPrice String Optimal price for buy/sell ads
tradableFiatCurrencies Array of Tradable fiat currencies based on kyc level of the user
Object
> currency String Fiat currency code. Examples: CNY, VND, USD
> symbol String Symbol of fiat currency. Examples: ¥, $
maxPaymentMethodsAll String Maximum number of payment methods allowed. Applicable only
owed for buy ads
maxDepositPaymentMet String Maximum number of payment methods allowed. Applicable only
hodsAllowed for sell ads
maxPaymentDurationAll String Provides possible values for maximum payment duration
owedValues (mayPaymentDuration in create ad API)
verificationNoteOptions Array of Type of verification options that the maker can set to be shown to
Object the taker for verification Ads. Only applicable for the CNY region
for now
optimalPrices Object Top buy top sell price
> String Current highest buy ad price
currentHighestBuyAdPric
e
> String Current lowest sell ad price
currentLowestSellAdPric
e
2. Order
2.1 Create Order
Creates a new ad.
HTTP Request
POST /api/v5/p2p/order/create
Request Parameters
Parameter Type Requir Description
ed
adId String Yes Ad id for which order would be placed against
cryptoAmount String Yes Crypto amount. Example: 1.1
cryptoCurrency String Yes Crypto currency for the ad. Example: "BTC"
fiatCurrency String Yes Fiat currency for the ad. Example: "USD"
makerPayment String No Maker payment method Id
MethodId
paymentMethod String Yes Payment method of the counterparty. When buying crypto, it's
the payment method of the maker.
totalFiatAmount String No Total fiat amount for the order. Example: 100.2
Response Parameters
Paramete Type Description
r
orderId String Id of the created order
status String Order status. Valid values: 2 (new), 3 (cancelled), 4 (completed)
orderProc String Order process status. Valid values:
essStatus 2 (new)
3 (cancelled)
4 (completed)
5 (creation in progress)
6 (creation failed)
7 (canceling)
8 (cancellation failed)
9 (completion in progress)
10 (completion failed)
Response Parameters
Parameter Type Description
orderId String Order Id
side String Specifies the transaction side or direction. Valid values: buy, sell
isBlockTradeCategor Boolean Indicates whether the transaction is classified as a block trade
y
orderStatus String Order status. Valid values: new, cancelled, completed
isFrozen Boolean Indicates whether the order is frozen
cryptoCurrency String Crypto currency symbol
fiatCurrency String Fiat currency symbol
unitPrice String The unit price of the order
priceMargin String The price margin ratio for floating type ads. Applicable only for ads
with price type as floating price
exchangeRate String Exchange rate
cryptoAmount String The amount of crypto currency traded
fiatAmount String The amount of fiat currency traded
paymentStatus String The payment status of the order. Valid values: unpaid, paid,
unreceived, confirmed, rejected
createdTimestamp String The timestamp when the order was created
completionTimesta String The timestamp when the order was completed
mp
updatedTimestamp String The timestamp of the last change made to the order
completionType String The type of completion for the order. Example: cancelled_by_buyer
expiredInSeconds String The expiration time of the order in seconds
expiredAfterInSecon String The expiration duration after completion in seconds
ds
frozenType String
The type of freeze applied to the order. Valid values: sellerRejectPaid,
customerService, sellerArbitration, appealFreeze
disputeStatus String The dispute status of the order. Valid values: 0 (not appealed), 1
(maker appealed), 2 (taker appealed), 3 (cancelled), 4 (completed)
disputeType String The type of dispute
disputeSubType String The subtype of dispute
disputeResult String The result of the dispute
disputeTime String The time of the dispute
hasMakerBeenRemin Boolean Indicates whether the maker has been reminded
ded
canRaiseDispute Boolean Indicates whether it is possible to raise dispute
reviewStatus String The review status of the order. Valid values: '1' (pending), '2'
(submitted), '3' (finalised), '4' (expired)
counterpartyDetail Object Counterparty details
> merchantId String Merchant id
> Object Taker collection payment method information
takerPaymentMetho
d
>> String Payment method Id
paymentMethodId
>> bankCode String Bank code
>> bankName String Bank name
>> bankBranchName String Bank branch name
>> accountNo String Payment method number. This could be bank card number, Alipay
account number, WeChat Id etc
>>paymentMethodN String Payment method name. It could be nick name of the user
ame
>> String WeChat QR code, Alipay QR code
paymentMethodQrC
odeUrl
>>type String Payment method type. Examples: BANK, ALIPAY, WXPAY,
WESTERN_UNION, PAY_PAL, SWIFT, PAY_NOW, PAYTM, QIWI
>> > currency String Fiat currency symbol. Example: CNY, USD
>> isDisabled Boolean Specifies whether the payment method is disabled
>>decodingUrl String Payment method QR code decoding URL
>>paymentDescripti String Payment method description. Example: bank payment, WeChat,
on Alipay
>> adsLinkedCount String Number of ads linked to this payment method
>>isInstantSettlePay Boolean Indicate whether the payment method instantly settle
ment
> orders String Number of buy/sell orders that the user has completed. Example: 10
> String Estimated crypto release time
estimatedReleaseTi
me
> userId String User Id
>nickName String Nick name of the user
> realName String Real name of the user
> type String User type. Valid values:
common
certified
diamond
> completedOrders String The number of orders completed by the user
> cancelledOrders String The number of orders canceled by the user
> String The number of sell orders completed by the user
completedSellOrders
>completionRate String The order completion rate of the user
>kycLevel String The identity verification level of the user
>acceptStatus String Order acceptance status of the user. Valid values: 0 (do not accept
order), 1 (accept order)
>avgPaymentTimeIn String Average payment time in seconds
Seconds
>avgCompletionTim String Average completion time in seconds
eInSeconds
>createdTimestamp String User joining timestamp in milliseconds
>hasAlreadyTraded Boolean Specifies whether the user has traded in the past with the requester.
Valid values: true, false
HTTP Request
GET /api/v5/p2p/order/list
Request Parameters
Parameter Type Require Description
d
side String No Specifies the transaction side or direction. Use buy to indicate a
buy transaction, sell for a sell transaction, or all to include both buy
and sell transactions. Default: all
pageIndex String Yes Page index starting from 1. Default: 1
pageSize String Yes Number of orders to fetch. Default: 20
cryptoCurre String No Specifies crypto currencies. Valid values are comma-separated
ncies crypto currency symbols. Example: BTC, ETH
fiatCurrenci String No Specifies fiat currencies. Valid values are comma-separated fiat
es currency symbols. Example: CNY,USD
start String No Search start timestamp. Unix timestamp format in milliseconds.
end String No Search end timestamp. Unix timestamp format in milliseconds.
completion String No Specifies completion status category. Valid values:
Status all - all types of order are needed
pending - orders which aren't completed/cancelled
completed - orders which are completed/cancelled
Default: all
searchKeyw String No Search orders by either Order Id or User nickname
ord
Response Parameters
Parameter Type
Description
adId String
Id of the Ad against which order was placed
orderId String
Order Id
side String
Specifies the transaction side or direction. Valid values: buy,
sell
isBlockTradeCateg Boolea Indicates whether the transaction is classified as a block trade
ory n
orderStatus String Order status. Valid values: new, cancelled, completed
isFrozen Boolea Indicates whether the order is frozen
n
cryptoCurrency String Crypto currency symbol
fiatCurrency String Fiat currency symbol
unitPrice String The unit price of the order
priceMargin String The price margin ratio for floating type ads. Applicable only
for ads with price type as floating price
exchangeRate String Exchange rate
cryptoAmount String The amount of crypto currency traded
fiatAmount String The amount of fiat currency traded
paymentStatus String The payment status of the order. Valid values: unpaid, paid,
unreceived, confirmed, rejected
createdTimestamp String The timestamp when the order was created
completedTimesta String The timestamp when the order was completed
mp
updatedTimestam String The timestamp of the last change made to the order
p
completionType String The type of completion for the order. Example:
cancelled_by_buyer
expiredInSeconds String The expiration time of the order in seconds
expiredAfterInSeco String The expiration duration after completion in seconds
nds
frozenType String The type of freeze applied to the order. Valid values:
sellerRejectPaid, customerService, sellerArbitration,
appealFreeze
disputeStatus String The dispute status of the order. Valid values: 0 (not appealed),
1 (maker appealed), 2 (taker appealed), 3 (cancelled), 4
(completed)
disputeType String The type of dispute
disputeSubType String The subtype of dispute
disputeResult String The result of the dispute
disputeTime String The time of the dispute
hasMakerBeenRe Boolea Indicates whether the maker has been reminded
minded n
canRaiseDispute Boolea Indicates whether it is possible to raise dispute
n
reviewStatus String The review status of the order. Valid values: '1' (pending), '2'
(submitted), '3' (finalised), '4' (expired)
counterpartyDetail Object Counterparty details
>merchantId String Merchant id
>takerPaymentMet Object Taker collection payment method information
hod
>>paymentMethod String Payment method Id
Id
>>bankCode String Bank code
>>bankName String Bank name
>>bankBranchNa String Bank branch name
me
>>paymentMethod String Payment method number. This could be bank card number,
Number Alipay account number, WeChat Id etc
>>paymentMethod String Payment method name. It could be nick name of the user
Name
>>paymentMethod String WeChat QR code, Alipay QR code
QrCodeUrl
>>type String Payment method type. Examples: BANK, ALIPAY, WXPAY,
WESTERN_UNION, PAY_PAL, SWIFT, PAY_NOW, PAYTM, QIWI
>>>currency String Fiat currency symbol. Example: CNY, USD
>>isDisabled Boolea Specifies whether the payment method is disabled
n
>>decodingUrl String Payment method QR code decoding URL
>>paymentDescrip String Payment method description. Example: bank payment,
tion WeChat, Alipay
>>adsLinkedCount String Number of ads linked to this payment method
>>isInstantSettleP Boolea Indicate whether the payment method instantly settle
ayment n
>orders String Number of buy/sell orders that the user has completed.
Example: 10
>estimatedRelease String Estimated crypto release time
Time
>id String User Id
>nickName String Nick name of the user
>realName String Real name of the user
>targetGroup String User target group for the ad. Valid values:
common
certified
diamond
all
>completedOrders String The number of orders completed by the user
>cancelledOrders String The number of orders canceled by the user
>completedSellOr String The number of sell orders completed by the user
ders
>completionRate String The order completion rate of the user
>kycLevel String The identity verification level of the user
>acceptStatus String Order acceptance status of the user. Valid values: 0 (do not
accept order), 1 (accept order)
>avgPaymentTime String Average payment time in seconds
InSeconds
>avgCompletionTi String Average completion time in seconds
meInSeconds
>createdTimestam String User joining timestamp in milliseconds
p
>hasAlreadyTrade Boolea Specifies whether the user has traded in the past with the
d n requester. Valid values: true, false
2.4 Get Counterparty User Details
Obtain counterparty user information for the order.
HTTP Request
GET /api/v5/p2p/order/counterparty-user-info
Request Parameters
Parame Type Require Description
ter d
orderId String Yes Order id
Response Parameters
Parameter Type Description
merchantId String Merchant id
takerPaymentMeth Object Taker collection payment method information
od
>paymentMethodI String Payment method Id
d
>bankCode String Bank code
>bankName String Bank name
>bankBranchName String Bank branch name
>paymentMethodN String Payment method number. This could be bank card number, Alipay
umber account number, WeChat Id etc
>paymentMethodN String Payment method name. It could be nick name of the user
ame
>paymentMethodQ String WeChat QR code, Alipay QR code
rCodeUrl
>type String Payment method type. Examples: BANK, ALIPAY, WXPAY,
WESTERN_UNION, PAY_PAL, SWIFT, PAY_NOW, PAYTM, QIWI
>currency String Fiat currency symbol. Example: CNY, USD
>isDisabled String Specifies whether the payment method is disabled
>decodingUrl String Payment method QR code decoding URL
>paymentDescripti String Payment method description. Example: bank payment, WeChat, Alipay
on
>adsLinkedCount String Number of ads linked to this payment method
>isInstantSettlePay String Indicate whether the payment method instantly settle
ment
orders String Number of buy/sell orders that the user has completed. Example: 10
estimatedReleaseT String Estimated crypto release time
ime
userId String User Id
nickName String Nick name of the user
realName String Real name of the user
type String User type. Valid values:
common
certified
diamond
completedOrders String The number of orders completed by the user
cancelledOrders String The number of orders canceled by the user
completedSellOrde String The number of sell orders completed by the user
rs
completionRate String The order completion rate of the user
kycLevel String The identity verification level of the user
acceptStatus String Order acceptance status of the user. Valid values: 0 (do not accept
order), 1 (accept order)
avgPaymentTimeIn String Average payment time in seconds
Seconds
avgCompletionTim String Average completion time in seconds
eInSeconds
createdTimestamp String User joining timestamp in milliseconds
hasAlreadyTraded Boolean Specifies whether the user has traded in the past with the requester.
Valid values: true, false
Response Parameters
Parameter Type Description
orderId String Order Id
realName Object Actual name of the counterparty
Response Parameters
Paramete Type Description
r
tradeCoun String Number of trades
t
tradeAmo String Total amount traded
unt
side String Specifies the transaction side or direction.
Response Parameters
Parameter Type Description
orderId String Order Id
side String Specifies the transaction side or direction. Valid values: buy, sell
isBlockTradeCategory Boolean Indicates whether the transaction is classified as a block trade
orderStatus String Order status. Valid values: new, cancelled, completed
isFrozen Boolean Indicates whether the order is frozen
cryptoCurrency String Crypto currency symbol
fiatCurrency String Fiat currency symbol
unitPrice String The unit price of the order
priceMargin String
The price margin ratio for floating type ads. Applicable only for ads
with price type as floating price
exchangeRate String Exchange rate
cryptoAmount String The amount of crypto currency traded
fiatAmount String The amount of fiat currency traded
paymentStatus String The payment status of the order. Valid values: unpaid, paid,
unreceived, confirmed, rejected
createdTimestamp String The timestamp when the order was created
completionTimestamp String The timestamp when the order was completed
updatedTimestamp String The timestamp of the last change made to the order
completionType String The type of completion for the order. Example: cancelled_by_buyer
expiredInSeconds String The expiration time of the order in seconds
expiredAfterInSeconds String The expiration duration after completion in seconds
frozenType String The type of freeze applied to the order. Valid values:
sellerRejectPaid, customerService, sellerArbitration, appealFreeze
disputeStatus String The dispute status of the order. Valid values: 0 (not appealed), 1
(maker appealed), 2 (taker appealed), 3 (cancelled), 4 (completed)
disputeType String The type of dispute
disputeSubType String The subtype of dispute
disputeResult String The result of the dispute
disputeTime String The time of the dispute
hasMakerBeenRemind Boolean Indicates whether the maker has been reminded
ed
canRaiseDispute Boolean Indicates whether it is possible to raise dispute
reviewStatus String The review status of the order. Valid values: '1' (pending), '2'
(submitted), '3' (finalised), '4' (expired)
counterpartyDetail Object Counterparty details
>merchantId String Merchant id
>takerPaymentMethod Object Taker collection payment method information
>>paymentMethodId String Payment method Id
>>bankCode String Bank code
>>bankName String Bank name
>>bankBranchName String Bank branch name
>>paymentMethodNu String Payment method number. This could be bank card number, Alipay
mber account number, WeChat Id etc
>>paymentMethodNa String Payment method name. It could be nick name of the user
me
>>paymentMethodQrC String WeChat QR code, Alipay QR code
odeUrl
>>type String Payment method type. Examples: BANK, ALIPAY, WXPAY,
WESTERN_UNION, PAY_PAL, SWIFT, PAY_NOW, PAYTM, QIWI
>>>currency String Fiat currency symbol. Example: CNY, USD
>>isDisabled Boolean Specifies whether the payment method is disabled
>>decodingUrl String Payment method QR code decoding URL
>>paymentDescription String Payment method description. Example: bank payment, WeChat,
Alipay
>>adsLinkedCount String Number of ads linked to this payment method
>>isInstantSettlePaym String Indicate whether the payment method instantly settle
ent
>orders String Number of buy/sell orders that the user has completed. Example: 10
>estimatedReleaseTim String Estimated crypto release time
e
>userId String User Id
>nickName String Nick name of the user
>realName String Real name of the user
>targetGroup String User target group for the ad. Valid values:
common
certified
diamond
all
>completedOrders String The number of orders completed by the user
>cancelledOrders String The number of orders canceled by the user
>completedSellOrders String The number of sell orders completed by the user
>completionRate String The order completion rate of the user
>kycLevel String The identity verification level of the user
>acceptStatus String Order acceptance status of the user. Valid values: 0 (do not accept
order), 1 (accept order)
>avgPaymentTimeInS String Average payment time in seconds
econds
>avgCompletionTimeI String Average completion time in seconds
nSeconds
>createdTimestamp String User joining timestamp in milliseconds
>hasAlreadyTraded Boolean Specifies whether the user has traded in the past with the
requester. Valid values: true, false
Response Parameters
Paramete Type Description
r
orderId String Id of the order which got cancelled
Response Parameters
Paramete Type Description
r
orderId String Id of the order for which payment is marked as unpaid
Response Parameters
Paramete Type Description
r
orderId String Id of the order for which crypto is released
Request Parameters
Paramete Type Description
r
reasonId String Reason Id
reason String Cancellation reason
subReaso Array of Sub reasons
ns Object
>reasonId String Sub-reason Id
>reason String Cancellation sub-reason
3. Payment Method
3.1 Add Payment Method
Adds a new payment method.
HTTP Request
GET /api/v5/p2p/payment-method/add
Request Parameters
Parameter Type Require Description
d
currency String Yes Fiat currency symbol. Examples: CNY, VND
type String Yes Type of payment method. Examples: BANK, ALIPAY, WXPAY,
WESTERN_UNION, PAY_PAL, SWIFT, PAY_NOW, PAYTM, QIWI
isEnabled Boolean Yes Specifies whether payment method should be enabled. Valid
values: true, false
application String Yes Type of application. Valid values: -1: (Disabled) 0 (Enabled), 1
Type (Deposit payment method, used for receiving payment), 2
(Withdrawal Payment method, used for paying)
details Object Yes Key-value pairs of fields required for adding payment method
where key is field name and value is field value. Example:
{"accountNo": "1234"}
Response Parameters
Paramete Type Description
r
payment String Id of the added Payment method
MethodId
3.2 Get Payment Method
Get payment method info.
HTTP Request
GET /api/v5/p2p/payment-method
Request Parameters
Parameter Type Require Description
d
paymentM String Yes Payment method id
ethodId
Response Parameters
Paramete Type Description
r
payment String Payment method Id
MethodId
bankCode String Bank code
bankNam String Bank name
e
bankBran String Bank branch name
chName
payment String Payment method number. This could be bank card number, Alipay account
MethodN number, WeChat Id etc
umber
payment String Payment method name. It could be nick name of the user
MethodN
ame
payment String WeChat QR code, Alipay QR code
MethodQr
CodeUrl
type String
Payment method type. Examples: BANK, ALIPAY, WXPAY, WESTERN_UNION,
PAY_PAL, SWIFT, PAY_NOW, PAYTM, QIWI
currency String Fiat currency symbol. Example: CNY, USD
isDisable Boolean Specifies whether the payment method is disabled
d
decoding String Payment method QR code decoding URL
Url
payment String Payment method description. Example: bank payment, WeChat, Alipay
Descriptio
n
adsLinked String Number of ads linked to this payment method
Count
isInstantS Boolean Indicate whether the payment method instantly settle
ettlePaym
ent
Response Parameters
Paramete Type Description
r
payment String Id of the updated Payment method
MethodId
Response Parameters
Paramete Type Description
r
payment String Id of the Payment Method which got deleted
MethodId
Response Parameters
Paramete Type Description
r
payment String Id of the Payment Method for which status got updated
MethodId
Response Parameters
Parameter Type Description
paymentMetho String Payment method
d
icon String Icon for the payment method
applicationTyp String Type of application. Valid values: -1: (Disabled) 0 (Enabled), 1 (Deposit
e payment method, used for receiving payment), 2 (Withdrawal Payment
method, used for paying)
currency String Fiat currency symbol
4. P2P Ticker
4.1 Get Swap Price
Get Swap Price.
HTTP Request
GET /api/v5/p2p/p2p-ticker/swap
Request Parameters
Parameter Type Require Description
d
cryptoCurr String Yes The crypto currency symbol. Example: BTC
ency
fiatCurrenc String Yes The fiat currency symbol. Example: USD
y
usdtAmou String Yes Amount of USDT
nt
Response Parameters
Type Description
Paramete
r
price String Price
swapFiatI String Swap fiat Id
d
swapAmo String Exchange amount
unt
swapFiat String Conversion quantity accuracy
Scale
fiatSymb String Fiat currency symbol. Examples: ¥,$
ol
Response Parameters
Paramete Type Description
r
prices String Mapping of Crypto currency symbol to price. Example: BTC -> 0.01
Response Parameters
Paramete Type Description
r
price String Price for the currency pair
5. User
5.1 Get Basic Information
Gets the basic information for the user.
HTTP Request
GET /api/v5/p2p/user/basic-info
Response Parameters
Parameter Type Description
userId String User Id
nickName String Nick name of the user
realName String Real name of the user
phoneNumber String Phone number of the user
email String Email of the user
type String User type. Valid values:
common
certified
diamond
completedOrders String The number of orders completed by the user
completedSellOrders String The number of sell orders completed by the user
cancelledOrders String The number of orders canceled by the user
completionRate String The order completion rate of the user
kycLevel String The identity verification level of the user. Valid values: 1, 2, 3
acceptStatus String Order acceptance status of the user. Valid values: 0 (do not accept
order), 1 (accept order)
avgPaymentTimeInSe String Average payment time in seconds
conds
avgCompletionTimeI String Average completion time in seconds
nSeconds
createdTimestamp String User joining timestamp in milliseconds
Response Parameters
Paramete Type Description
r
userId String User Id of the user
Response Parameters
Parameter Type Description
availableAmount String The available crypto quantity currently available for buying and selling
onHoldAmount String The quantity that has been frozen but the order has not been
completed till now
sellOrTransferLimit String Sell or transfer limit
currencySymbol String Currency symbol. Example: BTC
isSecurityLimitAppl Boolean Specifies whether the ad is T+1 ad
icable
Response Parameters
Parameter Type Description
userName String User name
createdTimestamp String Timestamp of the blacklisted action. Unix timestamp format in
milliseconds
buyerAvgPaidTime String The buyer average payment time in minutes
sellerAvgComplete String The seller's average release time in minutes
dTime
userType String User type. Valid values: common,certified,diamond
completionRate String Completion rate
orders String Number of total order. Includes completed and cancelled orders
userId String User Id
Response Parameters
Parameter Type Description
userId String Id of the user who got blacklisted
Response Parameters
Parameter Type Description
userId String Id of the user who got removed from the blacklist
Response Parameters
Parameter Type Description
status String Updated online status
6. Merchant
6.1 Get Basic Information
Gets the basic information of the merchant.
HTTP Request
GET /api/v5/p2p/merchant/basic-info
Response Parameters
Parameter Type Description
nickname String Nick name of the user
avatarImage String User image URL
description String Description of the merchant
status String Status of the merchant. Valid values: 0 (under review), 1 (passed
review), -1 (rejected)
remark String Remark
Response Parameters
Parameter Type Description
realName String Real name of the user
userId String Id of the user
completedOrd String Number of orders completed by the user
ers
completionRat String Completion rate
e
isSelf Boolean Specifies whether the user is the requester
Response Parameters
Parameter Type Description
merchantId String Id of the Merchant
avatarImage String User image URL
auditStatus String Audit status. Valid values: -1 (audit failed), 0 (audit in progress), 1
(audit passed), 2 (initialization completed, after N hours of audit
passed, the status changes to this status
completedBuyOrders String Total completed buy orders
tradedUsers String Number of people merchant traded with
merchantInfo30DayOr Array of 30 day order info
derInfo Object
> String 30 day completed orders count
completedOrders30Da
y
> String The number of users served for completed orders within 30 days
servedUsersComplete
dOrders30Day
> String 30 day completion rate
completionRate30Day
> String 30 day completion rate for buy orders
completionRateBuyOr
ders30Day
> String 30 day completion rate for sell orders
completionRateSellOr
ders30Day
positiveReviews String Number of positive reviews
negativeReviews String Number of negative reviews
positiveReviewPercent String Positive review percentage
age
totalReviews String
Number of reviews given for the user
commonOrderTotal String
The total transaction amount of the current site within half a year
(usd)
blacklistUserCount String Number of times the user has been blocked
followerCount String Followers count
isDisabled Boolean Specifies whether the account is frozen
countryId String KYC country
merchantRegisteredTi String Merchant registration timestamp. Unix timestamp format in
mestamp milliseconds
countryName String Country name
countryIcon String Country flag
isKycVerified Boolean Specifies whether the merchant is KYC verified
isPhoneVerified Boolean Specifies whether the user has completed phone verification
isEmailVerified Boolean Specifies whether the user has completed email verification
blacklistStatus String Blacklist status of the user. Valid values: NO_BLACK (No blacklist
relationship), BLACK_OTHER (Current user blacklisted the other
side), BLACKED (The other side blacklisted current user),
BLACK_EACH_OTHER (Current user and other use blacklisted each
other)
isFollowingUser Boolean Specifies whether the requester follows the user
isSelf Boolean Specifies whether the requester is the user itself
depositAmount String Merchant's deposit amount
depositCurrency String Merchant's deposit currency
Response Parameters
Parameter Type Description
sellAds String Collection of sell ads. Schema is same as that of buy ads.
buyAds String Collection of buy ads.
> adId String Ad id
> type String Ad price type. Valid values:
limit
floating_market
> side String Specifies the transaction side or direction. Valid values:
buy
sell
> cryptoCurrency String Crypto currency symbol
> fiatCurrency String Fiat currency symbol
> minOrderSize String Order lower limit
> maxOrderSize String Order upper limit
> availableAmount String The available crypto quantity currently available for buying and
selling
> unitPrice String Unit price
> priceMargin String The price margin ratio for floating type ads. Applicable only for
ads with price type as floating price
> minKycLevel String The minimum identity verification level of the taker. Valid
values: 1,2,3
> remark String Additional information or instructions for the ad for taker
> createdTimestamp String Creation time of the ad
> isHidden Boolea Specifies whether the ad is hidden or not
n
> fiatPriceScale String Decimal places reserved for fiat currency
> fiatPriceIncrement String Fiat currency increasing unit price gradient
> fiatScale String Fiat Currency decimal places
> cryptoScale String Crypto currency decimal places
> minCompletedOrders String The minimum number of orders completed by the taker
> maxCompletedOrders String The maximum number of orders completed by the taker
> minSellOrders String The minimum number of sell orders completed by the taker
> minCompletionRate String The minimum order completion rate of the taker
> String The maximum time allowed for payment in minutes before
maxPaymentDurationInMi timeout happens.
nutes
> targetGroup String User target group for the ad. Valid values:
common
certified
diamond
all
> isSecurityLimitApplicable Boolea Specifies whether T+1 order
n
> isProofRequired Boolea Specifies whether proof is required
n
> verificationType String Specifies the verification type. Applies for Overseas Ads. Valid
values:
0 (no verification required)
1 (verification required)
paymentMethods String Collection of payment methods. Example: bank, aliPay, wxPay
fiatSymbol String Fiat symbol. Examples:¥,$
Response Parameters
Parameter Type Description
userId String Id of the user who was followed/unfollowed
7. Currency
7.1 Get Fiat Currencies
Retrieve supported Fiat Currencies for P2P.
HTTP Request
GET /api/v5/p2p/currency/fiat-currency-list
Response Parameters
Parameter Type Description
currency String The fiat symbol. Example: USD
name String Full name of currency
symbol String Fiat currency symbol. Examples: ¥,$
countryIcon String Country Icon
isBlockTradeSupporte Boolean Specifies whether block trade is supported
d
Response Parameters
Parameter Type Description
cryptoCurrency String The crypto currency symbol. Example: BTC
fiatCurrency String The fiat currency symbol. Example: USD
cryptoSymbol String Crypto currency symbol
fiatName String Full name of fiat currency
fiatSymbol String Fiat currency symbol. Examples: ¥,$
fiatPriceScale String Decimal places reserved for fiat currency
fiatPriceIncrement String Fiat currency increasing unit price gradient
fiatScale String Fiat Currency decimal places
cryptoScale String Crypto currency decimal places
cryptoName String Full name of crypto currency
countryIcon String Country icon
8. Dispute
8.1 Get Dispute Types
Get available dispute types based on order.
HTTP Request
GET /api/v5/p2p/dispute/types
Request Parameters
Parameter Type Require Description
d
orderId String Yes Order Id
side String No Specifies the transaction side or direction. Use buy to indicate a buy
transaction, sell for a sell
transaction.
Response Parameters
Parameter Type Description
disputeId String Dispute id
subReason String Dispute subreason
code String Dispute code
hasSubType Boolean Specifies whether the dispute has sub-type
subType String Collections of sub-types if dispute has any
suggestions Array of Collection of suggestions. Schema is the same as the original object.
Object
> suggestText String Main suggestion message
> children Array of Sub-points for each suggestion
String
videoSuggestion String Video proof request suggestion message
imageSuggestion String Image proof request suggestion message
isImageSubmissionNe Boolean Indicates if the user needs to submit an image
eded
isRemarkSubmission Boolean Indicates if the user needs to submit a remark
Needed
isVideoSubmissionNe Boolean Indicates if the user needs to submit video
eded
Sample response:
1 {
2 "code": 0,
3 "data": [
4 {
5 "sell": [
6 {
7 "code": "14",
8 "disputeId": "SX14",
9 "hasSubType": true,
10 "imageSuggestion": "",
11 "isImageSubmissionNeeded": false,
12 "isRemarkSubmissionNeeded": true,
13 "isVideoSubmissionNeeded": true,
14 "subReason": "I received the payment but the order is
canceled",
15 "subType": [
16 {
17 "code": "2",
18 "disputeId": "SX1402",
19 "hasSubType": false,
20 "imageSuggestion": "",
21 "isImageSubmissionNeeded": false,
22 "isRemarkSubmissionNeeded": true,
23 "isVideoSubmissionNeeded": true,
24 "subReason": "Transfer the crypto to the buyer",
25 "subType": [],
26 "suggestions": [
27 {
28 "children": [],
29 "suggestText": "Try reaching out to the
other party to see if you can resolve the issue\n"
30 },
31 {
32 "children": [],
33 "suggestText": "Raise a dispute if you're
unable to resolve it."
34 }
35 ],
36 "videoSuggestion": ""
37 },
38 {
39 "code": "3",
40 "disputeId": "SX1403",
41 "hasSubType": false,
42 "imageSuggestion": "",
43 "isImageSubmissionNeeded": false,
44 "isRemarkSubmissionNeeded": true,
45 "isVideoSubmissionNeeded": true,
46 "subReason": "Customer Support to get account
information for refund",
47 "subType": [],
48 "suggestions": [
49 {
50 "children": [],
51 "suggestText": "Try reaching out to the
other party to see if you can resolve the issue\n"
52 },
53 {
54 "children": [],
55 "suggestText": "Raise a dispute if you're
unable to resolve it."
56 }
57 ],
58 "videoSuggestion": ""
59 }
60 ],
61 "suggestions": [
62 {
63 "children": [],
64 "suggestText": "Try reaching out to the other
party to see if you can resolve the issue\n"
65 },
66 {
67 "children": [],
68 "suggestText": "Raise a dispute if you're unable
to resolve it."
69 }
70 ],
71 "videoSuggestion": ""
72 }
73 ],
74 "buy": [
75 {
76 "code": "10",
77 "disputeId": "BX10",
78 "hasSubType": true,
79 "imageSuggestion": "",
80 "isImageSubmissionNeeded": false,
81 "isRemarkSubmissionNeeded": true,
82 "isVideoSubmissionNeeded": true,
83 "subReason": "I have paid but order is canceled",
84 "subType": [
85 {
86 "code": "1",
87 "disputeId": "BX1001",
88 "hasSubType": false,
89 "imageSuggestion": "",
90 "isImageSubmissionNeeded": false,
91 "isRemarkSubmissionNeeded": true,
92 "isVideoSubmissionNeeded": true,
93 "subReason": "I can't contact the counterparty",
94 "subType": [],
95 "suggestions": [
96 {
97 "children": [],
98 "suggestText": "If you have made the
payment but did not mark the order as paid, the seller has the obligation to
refund you or accept your new order. Refund fee asked by the seller is at
your own cost.\n"
99 },
100 {
101 "children": [],
102 "suggestText": "You can send ^the payment
proof^ and reach a mutual agreement with the seller using our chat."
103 },
104 {
105 "children": [],
106 "suggestText": "If you can't reach the
buyer, you can continue your dispute submission to our Customer Support."
107 }
108 ],
109 "videoSuggestion": "If you have already made
payment for the order, please send us video proofs that contain the following
information:\n\n1. Your bank account or payment platform used for the
order.\n\n2. Your name and bank account number.\n\n3. The transaction date
and the order amount.\n\n4. The P2P order page on the app (not on a separate
bank statement).\n\n5. The seller's bank account number or email ID used for
the order."
110 },
111 ],
112 "suggestions": [
113 {
114 "children": [],
115 "suggestText": "If you have made the payment but
did not mark the order as paid, the seller has the obligation to refund you
or accept your new order. Refund fee asked by the seller is at your own
cost.\n"
116 },
117 {
118 "children": [],
119 "suggestText": "You can send ^the payment proof^
and reach a mutual agreement with the seller using our chat."
120 },
121 {
122 "children": [],
123 "suggestText": "If you can't reach the buyer, you
can continue your dispute submission to our Customer Support."
124 }
125 ],
126 "videoSuggestion": "If you have already made payment for
the order, please send us video proofs that contain the following
information:\n\n1. Your bank account or payment platform used for the
order.\n\n2. Your name and bank account number.\n\n3. The transaction date
and the order amount.\n\n4. The P2P order page on the app (not on a separate
bank statement).\n\n5. The seller's bank account number or email ID used for
the order."
127 }
128 ],
129 "appealUrge": []
130 }
131 ],
132 "msg": ""
133 }
Response Parameters
Parameter Type Description
disputeId String Id of the created dispute
Response Parameters
Parameter Type Description
disputerSide String Specifies disputer side. Valid values: 0 (buyer), 1 (seller)
isDisputer String Specifies whether the current user is the disputer. Valid values: true,
false
disputeReason String Reason for the dispute
disputeSubReason String Sub-reason for the dispute
userLastReadTimesta String Last read timestamp of the user
mp
messages Array of Collections of message details
Object
> message String Message text
> sender String Sender of the message. Valid values: 0 (Self), 1 (Customer Support),
2 (Counterparty)
> senderName String Name of the message sender
> imageUrls String Image urls
> videoUrls String Video urls
> timestamp String Message sent timestamp. Unix timestamp format in milliseconds
Sample Response:
1 {
2 "code": 0,
3 "data": [
4 {
5 "disputeReason": "I received the payment but the order is
canceled",
6 "disputeSubReason": "Transfer the crypto to the buyer",
7 "disputerSide": "1",
8 "isDisputer": true,
9 "messages": [
10 {
11 "imageUrls": [],
12 "message": "",
13 "sender": "0",
14 "senderName": "",
15 "timestamp": "1721269451000",
16 "translatedMessage": "",
17 "videoUrls": []
18 },
19 {
20 "imageUrls": [],
21 "message": "",
22 "sender": "1",
23 "senderName": "abcd",
24 "timestamp": "1721269451000",
25 "translatedMessage": "",
26 "videoUrls": [
27
"https://static.coinall.ltd/cdn/oksupport/c2c/20240718_a8005793-9826-4c95-
b25d.mp4"
28 ]
29 },
30 {
31 "imageUrls": [],
32 "message": "",
33 "sender": "0",
34 "senderName": "",
35 "timestamp": "1721269431000",
36 "translatedMessage": "",
37 "videoUrls": []
38 },
39 {
40 "imageUrls": [],
41 "message": "",
42 "sender": "1",
43 "senderName": "test4fiat2",
44 "timestamp": "1721269431000",
45 "translatedMessage": "",
46 "videoUrls": [
47
"https://static.coinall.ltd/cdn/oksupport/c2c/20240718_f42ce0bb-a2c0-4c43-
9e2.mp4"
48 ]
49 }
50 ]
51 }
52 ],
53 "msg": ""
54 }
Response Parameters
Parameter Type Description
id String Order Id for which evidence got updated
Response Parameters
Parameter Type Description
orderId String Id of the order for which dispute got cancelled
9. Chat
9.1 Get Chat history for order
Get chat history based on order. The messages are ordered from the latest to the oldest. System-
generated messages are not returned.
HTTP Request
GET /api/v5/p2p/chat/history
Request Parameters
Parameter Type Require Description
d
orderId String Optional • If the orderId is specified, the API will return all chat
messages related to that specific order. Note that once the order
is completed, no further chat messages can be retrieved for that
order.
• If the orderId is not provided, the API will return all available
chat messages between the counterparty
lastMessag String No Specifies the last message sequence number. Eg: "123"
eSequence This param is required if messages are required to be fetched
backword.
pageSize String Yes Specifies the number of messages to be retrieved.
Response Parameters
Parameter Type Description
sentTimestamp String Epoch timestamp for the message sent time
isSentBySelf String Specifies whether requestor is the sender as well
content String Text of the content. Eg: "Hello"
contentUrl Boolean If the message is of a media type (like an image/video, etc.), the URL
is returned. Content present at this URL can be retrieved for 30 days
from the time the content is uploaded.
lastMessageSequence String The sequence number of the message. Eg: "123"
Response Parameters
Parameter Type Description
isSentSuccessfully Boolean Specifies whether the message was sent successfully to the other
user or not.
10. File
10.1 Upload file
HTTP Request
POST /api/v5/p2p/file/upload
The input is multipart file.
Request Parameters
Parameter Type Requir Description
ed
file Multipa Yes
rt
Response Parameters
Parameter Type Description
path String Path of the uploaded file. Eg: "http://abc.com/xyz"