Update / Relist My Ad
HTTP Request
POST /v5/p2p/item/update
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
id | true | string | adv id |
priceType | true | string | Ads Pricing Exchange Rate Model. 0 - Fixed rate; 1 - Floating rate |
premium | true | string | Floating ratio with current exchange rate |
price | true | string | ads price |
minAmount | true | string | Min transaction amount |
maxAmount | true | string | Max transaction amount |
remark | true | string | Transaction Description(max=900) |
tradingPreferenceSet | true | Object | Trading Preferences |
> hasUnPostAd | false | string | Whether the counterparty must not have posted any advertisements. 0 :not needed, 1 :need |
> isKyc | false | string | Is it necessary for the counterparty to complete identity authentication? 0 :not needed, 1 :need |
> isEmail | false | string | Is it necessary for the counterparty to bind an email address? 0 :not needed, 1 :need |
> isMobile | false | string | Is it necessary for the counterparty to bind an telphone? 0 :not needed, 1 :need |
> hasRegisterTime | false | string | Is the registration time required to be no less than {} days? 0 :not needed, 1 :need |
> registerTimeThreshold | false | string | Registration time threshold(Unit: Day) |
> orderFinishNumberDay30 | false | string | Limit on number of completed orders in the last 30 days |
> completeRateDay30 | false | string | Completion rate limit in the last 30 days |
> nationalLimit | false | string | Restricted KYC Countries;IOS 3 CODE |
> hasOrderFinishNumberDay30 | false | string | Is it necessary to have no less than {} orders in the last 30 days? 0 :not needed, 1 :need |
> hasCompleteRateDay30 | false | string | Is it necessary to have a completion rate of no less than {} in the last 30 days? 0 :not needed, 1 :need |
> hasNationalLimit | false | string | Are country restrictions required? 0 :not needed, 1 :need |
paymentIds | true | array[string] | Payment method type id(len<=5) |
actionType | true | string | Operation Type: MODIFY modify adv; ACTIVE. reonline adv |
quantity | true | string | Number of ads |
paymentPeriod | true | string | payment duration |
Response Parameters
None
Request Example
POST /v5/p2p/item/update HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1741769463827
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
Content-Length: 394
{
"priceType": "0",
"premium": "",
"quantity": "1000",
"minAmount": "25",
"maxAmount": "5000",
"paymentPeriod": "15",
"remark": "",
"price": "0.914",
"paymentIds": [
"-1"
],
"tradingPreferenceSet": {},
"itemType": "ORIGIN",
"subsidyAd": false,
"actionType": "ACTIVE",
"id": "1898988222063644672",
"securityRiskToken": ""
}
Response Example
{
"ret_code": 0,
"ret_msg": "SUCCESS",
"result": {
"securityRiskToken": "",
"riskTokenType": "",
"riskVersion": "",
"needSecurityRisk": false
},
"ext_code": "",
"ext_info": {},
"time_now": "1741769514.655369"
}