Skip to main content

Maintain Advertisement Quantity

Set the target available quantity of a specified advertisement (consistent with the MEXC web stock-editing logic). After passing the target quantity, the backend automatically compares it with the current available quantity: if the target is larger it adds stock, if smaller it reduces stock, if equal it does nothing. Used for programmatic stock maintenance.

HTTP Request

  • POST /api/v3/fiat/merchant/ads/quantity/adjust

  • Note: Request parameters are concatenated in the URL query string as key=value&key=value. JSON body is not supported.

Required Permission: P2P Deal Ad

Request Parameters

NameTypeMandatoryDescription
advNostringyesAdvertisement unique identifier
targetQuantityBigDecimalyesTarget available quantity (must be a positive number and not lower than the advertisement's minimum trade limit equivalent quantity; the backend auto-computes the delta and adds/reduces to this value)

Request

&advNo=a1375750128856004608&targetQuantity=50

Response Parameters

NameTypeDescription
codeinteger0 indicates success
msgstringResult description
datanullNo data returned

Response

{
"code": 0,
"msg": "success",
"data": null
}