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
| Name | Type | Mandatory | Description |
|---|---|---|---|
| advNo | string | yes | Advertisement unique identifier |
| targetQuantity | BigDecimal | yes | Target 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
| Name | Type | Description |
|---|---|---|
| code | integer | 0 indicates success |
| msg | string | Result description |
| data | null | No data returned |
Response
{
"code": 0,
"msg": "success",
"data": null
}