Get Order Detail
HTTP Request
POST /v5/p2p/order/info
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
orderId | true | string | Order ID |
Response Parameters
Parameter | Type | Comments |
---|---|---|
id | string | Order ID |
side | int | Order trade type. 0 : Buy, 1 : Sell |
itemId | string | Adv id |
userId | string | The UID of the current query user |
nickName | string | The nickname of the current query user |
makerUserId | string | Adv owner user |
targetUserId | string | Counterparty UID |
targetNickName | string | Counterparty nickname |
targetConnectInformation | string | Counterparty contact information |
sellerRealName | string | Seller's real name |
buyerRealName | string | Buyer's real name |
tokenId | string | Token ID. E.g. USDT,ETH,BTC |
currencyId | string | Currency ID. E.g. USD,VND |
price | string | Order price |
quantity | string | Seller/buyer trade quantity |
amount | string | Seller/buyer trade amount |
paymentType | int | Payment method used |
transferDate | string | Buyer pay time |
status | int | Order status
|
createDate | string | Order create time |
paymentTermList | array<object> | Payment method provided by the seller |
> id | string | Payment ID |
> realName | string | User's real name |
> paymentType | int | Payment type |
> bankName | string | Bank name |
> branchName | string | Branch name |
> accountNo | string | Account number |
> qrcode | string | QR code image URL |
remark | string | Description |
transferLastSeconds | string | The buyer's remaining transfer time |
appealContent | string | Appeal content |
appealType | int | Appeal type |
appealNickName | string | Appeal user nickname |
canAppeal | string | User can appeal |
confirmedPayTerm | object | Buyer's select payment info |
> id | string | Payment ID |
> realName | string | User's real name |
> paymentType | int | Payment type |
> bankName | string | Bank name |
> branchName | string | Branch name |
> accountNo | string | Account number |
> qrcode | string | QR code image URL |
makerFee | string | Maker fee |
takerFee | string | Taker fee |
extension | object | Order extension information |
> isDelayWithdraw | bool | If the withdrawal is delayed |
> delayTime | string | Delay time |
> startTime | string | Delay start time |
orderType | string | Order type
|
appealUserId | string | Appealing UID |
notifyTokenId | string | Buyer revice token |
notifyTokenQuantity | string | Buyer revise token quantity |
cancelReason | string | Order cancel reason |
usedCoupon | bool | Whether the order uses a coupon 1 : used 2 : not used |
couponTokenId | string | Coupon tokenId |
couponQuantity | string | Coupon quantity |
targetUserType | string | Counterparty Identity Type PERSONAL ORG |
Request Example
- HTTP
- Python
POST /v5/p2p/order/info HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1741832094881
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
{
"orderId": "1900004704665923584"
}
from bybit_p2p import P2P
api = P2P(
testnet=True,
api_key="xxxxxxxxxxxxxxxxxx",
api_secret="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
)
print(api.get_order_details(
orderId="1900004704665923584"
))
Response Example
{
"ret_code": 0,
"ret_msg": "SUCCESS",
"result": {
"id": "1900004704665923584",
"side": 1,
"itemId": "1899659847717838848",
"accountId": "1448940",
"userId": "1448939",
"nickName": "Saaaul",
"makerUserId": "290118",
"targetAccountId": "290120",
"targetUserId": "290118",
"targetNickName": "test",
"targetFirstName": "",
"targetSecondName": "",
"targetUserAuthStatus": 2,
"targetConnectInformation": "",
"payerRealName": "",
"sellerRealName": "TEST WOOD",
"buyerRealName": "1111 ",
"tokenId": "USDT",
"tokenName": "USDT",
"currencyId": "EUR",
"price": "0.920",
"quantity": "50.0000",
"amount": "46.000",
"payCode": "826102",
"paymentType": 0,
"transferDate": "0",
"status": 10,
"createDate": "1741831397000",
"paymentTermList": [
{
"id": "-1",
"realName": "",
"paymentType": 377,
"bankName": "",
"branchName": "",
"accountNo": "",
"qrcode": "",
"visible": 0,
"payMessage": "",
"firstName": "",
"lastName": "",
"secondLastName": "",
"clabe": "",
"debitCardNumber": "",
"mobile": "",
"businessName": "",
"concept": "",
"online": "1",
"paymentExt1": "",
"paymentExt2": "",
"paymentExt3": "",
"paymentExt4": "",
"paymentExt5": "",
"paymentExt6": "",
"paymentTemplateVersion": 1,
"paymentConfigVo": {
"paymentType": "377",
"checkType": 0,
"sort": 0,
"paymentName": "Balance",
"addTips": "",
"itemTips": "",
"online": 0,
"items": []
},
"ruPaymentPrompt": false
}
],
"remark": "test",
"transferLastSeconds": "201",
"recentOrderNum": 4,
"recentExecuteRate": 0,
"appealLastSeconds": "0",
"appealContent": "",
"appealType": 0,
"appealNickName": "",
"canAppeal": "Y",
"totalAppealTimes": "4",
"appealedTimes": "0",
"paymentTermResult": {
"id": "0",
"realName": "",
"paymentType": 0,
"bankName": "",
"branchName": "",
"accountNo": "",
"qrcode": "",
"visible": 0,
"payMessage": "",
"firstName": "",
"lastName": "",
"secondLastName": "",
"clabe": "",
"debitCardNumber": "",
"mobile": "",
"businessName": "",
"concept": "",
"online": "",
"paymentExt1": "",
"paymentExt2": "",
"paymentExt3": "",
"paymentExt4": "",
"paymentExt5": "",
"paymentExt6": "",
"paymentTemplateVersion": 0,
"paymentConfigVo": {
"paymentType": "0",
"checkType": 0,
"sort": 0,
"paymentName": "",
"addTips": "",
"itemTips": "",
"online": 0,
"items": []
},
"ruPaymentPrompt": false
},
"orderFinishMinute": 600000,
"confirmedPayTerm": {
"id": "-1",
"realName": "",
"paymentType": 377,
"bankName": "",
"branchName": "",
"accountNo": "",
"qrcode": "",
"visible": 0,
"payMessage": "",
"firstName": "",
"lastName": "",
"secondLastName": "",
"clabe": "",
"debitCardNumber": "",
"mobile": "",
"businessName": "",
"concept": "",
"online": "1",
"paymentExt1": "",
"paymentExt2": "",
"paymentExt3": "",
"paymentExt4": "",
"paymentExt5": "",
"paymentExt6": "",
"paymentTemplateVersion": 1,
"paymentConfigVo": {
"paymentType": "377",
"checkType": 0,
"sort": 0,
"paymentName": "Balance",
"addTips": "",
"itemTips": "",
"online": 0,
"items": []
},
"ruPaymentPrompt": false
},
"makerFee": "",
"takerFee": "",
"fee": "0",
"showContact": false,
"contactInfo": [],
"tokenBalance": "74241.511206107074308660",
"fiatBalance": "4657.780000000000000000",
"unreadMsgCount": "0",
"updateDate": "1741831397000",
"extension": {
"isDelayWithdraw": false,
"delayTime": "0",
"startTime": ""
},
"selfUnreadMsgCount": "0",
"judgeType": "",
"canReport": true,
"canReportDisagree": false,
"canReportType": [
"REPORT_SCAM"
],
"canReportDisagreeType": [],
"appraiseStatus": "CANNOT_APPRAISE",
"appraiseInfo": {
"anonymous": "",
"appraiseContent": "",
"appraiseId": "",
"appraiseType": "",
"modifyFlag": "",
"updateDate": ""
},
"canReportDisagreeTypes": [],
"canReportTypes": [
"REPORT_SCAM"
],
"orderType": "ORIGIN",
"middleToken": "USDT",
"beforePrice": "",
"beforeQuantity": "",
"beforeToken": "",
"alternative": "",
"appealUserId": "0",
"notifyTokenId": "USDT",
"notifyTokenQuantity": "50.0000",
"cancelResponsible": "",
"chainType": "",
"chainAddress": "",
"tradeHashCode": "",
"estimatedGasFee": "0.0000",
"gasFeeTokenId": "",
"tradingFeeTokenId": "",
"onChainInfo": "",
"transactionId": "0",
"displayRefund": "0",
"chainWithdrawLastSeconds": "201",
"chainTransferLastSeconds": "201",
"orderSource": "P2P",
"cancelReason": "",
"sellerCancelExamineRemainTime": "",
"needSellerExamineCancel": false,
"couponCurrencyAmount": "0",
"totalCurrencyAmount": "46",
"usedCoupon": false,
"couponTokenId": "",
"couponQuantity": "0",
"completedOrderAppealCount": 0,
"totalCompletedOrderAppealCount": 10,
"realOrderStatus": 10,
"appealVersion": 0,
"judgeInfo": {
"autoJudgeUnlockTime": "0",
"dissentResult": "",
"preDissent": "",
"postDissent": ""
},
"helpType": "NEVER",
"appealFlowStatus": "",
"appealSubStatus": "",
"bulkOrderFlag": false,
"targetUserType": "ORG",
"targetUserDisplays": [
"DISPLAY_MAKER_BULK"
],
"appealProcessChangeFlag": false,
"appealNegotiationNode": 0
},
"ext_code": "",
"ext_info": {},
"time_now": "1741832095.851844"
}