List of quarantined products by price in the store
The method is available for all models.
If you are using an API Key token, one of the accesses in the list is required to call the method
- pricing — Manage prices
- pricing:read-only — View prices
- all-methods — Full account management
- all-methods:read-only — View all data
Returns a list of products that are in quarantine at the price set in the specified store.
Check the price of each of the quarantined items. If there is no error and the price is correct, confirm it with a request. POST campaigns/{campaignId}/price-quarantine/confirm. If the price is really wrong, set the correct price using a query. POST campaigns/{campaignId}/offer-prices/updates.
What is quarantine?
A product is quarantined if its price changes too sharply or differs too much from the market price. More detailed
Filters can be used in the request.
The results are returned page by page.
, Limit: 10,000 items per minute |
---|
Request
POST
https://api.partner.market.yandex.ru/campaigns/{campaignId}/price-quarantine
Path parameters
Name |
Description |
campaignId* |
Type: integer<int64> The campaign ID. You can find it using a query GET campaigns or find it in the seller's office on the Market — click on the name of your business and go to the page:
, Do not send the store's ID instead, which is indicated in the seller's account on the Market next to the store's name and in some reports.
Min value: |
Query parameters
Name |
Description |
limit |
Type: integer<int32> The number of values per page.
Min value: |
page_token |
Type: string ID of the results page. If the parameter is omitted, the first page is returned. We recommend transmitting the value of the output parameter If set |
Body
application/json
{
"offerIds": [
"string"
],
"cardStatuses": [
"HAS_CARD_CAN_NOT_UPDATE"
],
"categoryIds": [
0
],
"vendorNames": [
"string"
],
"tags": [
"string"
]
}
Name |
Description |
cardStatuses |
Type: OfferCardStatusType[] Filter by card status. What is a product card?
Enum: Min items: Unique items |
categoryIds |
Type: integer[] Filter by category on the Market. Min items: Unique items |
offerIds |
Type: string[] The IDs of the products that information is needed about.
SKU Usage Rules:
The SKU of the product can be changed in the seller's account on the Market. Read about how to do this. in the Help of the Market for sellers. What is a SKU and how to assign it Min length: Max length: Pattern: Min items: Max items: Unique items |
tags |
Type: string[] Filter by tags. Min items: Unique items |
vendorNames |
Type: string[] Filter by brand. Min items: Unique items |
OfferCardStatusType
Product card status:
HAS_CARD_CAN_NOT_UPDATE
— The Market card.HAS_CARD_CAN_UPDATE
— It can be supplemented.HAS_CARD_CAN_UPDATE_ERRORS
— The changes have not been accepted.HAS_CARD_CAN_UPDATE_PROCESSING
— Changes are under review.NO_CARD_NEED_CONTENT
— Create a card.NO_CARD_MARKET_WILL_CREATE
— Creates a Marketplace.NO_CARD_ERRORS
— It wasn't created because of a mistake.NO_CARD_PROCESSING
— We check the data.NO_CARD_ADD_TO_CAMPAIGN
— Place the product in the store.
Type |
Description |
Enum: |
Responses
200 OK
The list of products in quarantine.
Body
application/json
{
"status": "OK",
"result": {
"paging": {
"nextPageToken": "string",
"prevPageToken": "string"
},
"offers": [
{
"offerId": "string",
"currentPrice": {
"value": 0,
"currencyId": "RUR"
},
"lastValidPrice": {
"value": 0,
"currencyId": "RUR"
},
"verdicts": [
{
"type": "PRICE_CHANGE",
"params": [
{
"name": "CURRENT_PRICE",
"value": "string"
}
]
}
]
}
]
}
}
Name |
Description |
result |
Type: GetQuarantineOffersResultDTO The list of products in quarantine. |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
GetQuarantineOffersResultDTO
The list of products in quarantine.
Name |
Description |
offers* |
Type: QuarantineOfferDTO[] The page of the list of products in quarantine. |
paging |
Type: ScrollingPagerDTO Information about the result pages. |
ApiResponseStatusType
The type of response. Possible values:
OK
— there are no mistakes.ERROR
— an error occurred while processing the request.
Type |
Description |
Enum: |
QuarantineOfferDTO
The product is in quarantine.
Name |
Description |
currentPrice ⦸
|
Type: BasePriceDTO The price of the product. |
lastValidPrice ⦸
|
Type: BasePriceDTO The price of the product. |
offerId |
Type: string Your SKU is the product identifier in your system. SKU Usage Rules:
The SKU of the product can be changed in the seller's account on the Market. Read about how to do this. in the Help of the Market for sellers. What is a SKU and how to assign it Min length: Max length: Pattern: |
verdicts |
Type: PriceQuarantineVerdictDTO[] The reasons for the product being quarantined. Min items: |
ScrollingPagerDTO
Information about the result pages.
Name |
Description |
nextPageToken |
Type: string ID of the next results page. |
prevPageToken |
Type: string ID of the previous results page. |
BasePriceDTO
The price of the product.
Name |
Description |
currencyId* |
Type: CurrencyType Currency. Enum: |
value* |
Type: number The price of the product. Min value (exclusive): |
PriceQuarantineVerdictDTO
The reason for the product being quarantined.
Name |
Description |
params* |
Type: PriceQuarantineVerdictParameterDTO[] The price that caused the product to be quarantined, and the values for comparison. The specific set of parameters depends on the type of quarantine. |
type |
Type: PriceQuarantineVerdictType The type of quarantine. Enum: |
CurrencyType
Currency codes:
RUR
— the Russian ruble.UAH
— the Ukrainian hryvnia.BYR
— Belarusian ruble.KZT
— Kazakhstani tenge.UZS
— Uzbek sum.
Type |
Description |
Enum: |
PriceQuarantineVerdictParameterDTO
The quarantine parameter.
Name |
Description |
name* |
Type: PriceQuarantineVerdictParamNameType The name of the parameter. Enum: |
value* |
Type: string The value of the parameter. |
PriceQuarantineVerdictType
Types of quarantine:
PRICE_CHANGE
— the new price differs too much from the previous one. In the fieldparams
There will be a new priceCURRENT_PRICE
and the last price before being quarantinedLAST_VALID_PRICE
.LOW_PRICE
— the set price differs too much from the market price. In the fieldparams
the price will be set by youCURRENT_PRICE
and the quarantine thresholdMIN_PRICE
.LOW_PRICE_PROMO
— the price after applying the shares differs too much from the market price. In the fieldparams
there will be a price after applying the sharesCURRENT_PRICE
and the quarantine thresholdMIN_PRICE
.
Type |
Description |
Enum: |
PriceQuarantineVerdictParamNameType
The name of the parameter for the reason for hiding the product by price.
CURRENT_PRICE
— the price that caused the product to be quarantined.LAST_VALID_PRICE
— the last price before entering quarantine (only for quarantine typePRICE_CHANGE
).MIN_PRICE
— quarantine threshold (only for quarantine typesLOW_PRICE
andLOW_PRICE_PROMO
).CURRENCY
— currency.
Type |
Description |
Enum: |
400 Bad Request
The request contains incorrect data. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
ApiErrorDTO
The general error format.
Name |
Description |
code* |
Type: string The error code. |
message |
Type: string Description of the error. |
401 Unauthorized
The authorization data is not specified in the request. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
403 Forbidden
The authorization data is incorrect or access to the resource is prohibited. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
404 Not Found
The requested resource was not found. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
420 Method Failure
The resource access limit has been exceeded. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
500 Internal Server Error
Internal error of Yandex. Market. More information about the error
Body
application/json
{
"status": "OK",
"errors": [
{
"code": "string",
"message": "string"
}
]
}
Name |
Description |
errors |
Type: ApiErrorDTO[] A list of errors. Min items: |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
No longer supported, please use an alternative and newer version.