Getting information about the fullness of store cards
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
- offers-and-cards-management — Manage products and cards
- offers-and-cards-management:read-only — View products and cards
- all-methods — Full account management
- all-methods:read-only — View all data
Returns information about the content status for the specified products:
- whether a product card has been created and what is its status.
- The rating of the card is how many percent it is filled.
- transmitted product characteristics;
- are there any errors or warnings related to the content;
- recommendations for filling out the card.
, Limit: 600 requests per minute |
---|
Request
POST
https://api.partner.market.yandex.ru/businesses/{businessId}/offer-cards
Path parameters
Name |
Description |
businessId* |
Type: integer<int64> Cabinet ID. To find out, use the request GET campaigns. ℹ️ What is a cabinet and a store on the Market?
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
]
}
Name |
Description |
cardStatuses |
Type: OfferCardStatusType[] Filter by card status. What is a product card?
Enum: Min items: Unique items |
categoryIds |
Type: integer<int32>[] Filter by category on the Market. When changing the category, make sure that the product characteristics and their values in the parameter You can get a list of Market categories using a request. POST categories/tree. Min value: Min items: Max 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 |
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
Information about the cards of the specified products.
Body
application/json
{
"status": "OK",
"result": {
"offerCards": [
{
"offerId": "string",
"mapping": {
"marketSku": 0,
"marketSkuName": "string",
"marketModelId": 0,
"marketModelName": "string",
"marketCategoryId": 0,
"marketCategoryName": "string"
},
"parameterValues": [
{
"parameterId": 0,
"unitId": 0,
"valueId": 0,
"value": "string"
}
],
"cardStatus": "HAS_CARD_CAN_NOT_UPDATE",
"contentRating": 0,
"averageContentRating": 0,
"contentRatingStatus": "UPDATING",
"recommendations": [
{
"type": "HAS_VIDEO",
"percent": 0,
"remainingRatingPoints": 0
}
],
"errors": [
{
"message": "string",
"comment": "string"
}
],
"warnings": [
{
"message": "string",
"comment": "string"
}
]
}
],
"paging": {
"nextPageToken": "string"
}
}
}
Name |
Description |
result |
Type: OfferCardsContentStatusDTO A list of products with information about the status of the cards. |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
OfferCardsContentStatusDTO
A list of products with information about the status of the cards.
Name |
Description |
offerCards* |
Type: OfferCardDTO[] The product list page with information about the status of the cards. If the field |
paging |
Type: ForwardScrollingPagerDTO The ID of the next page. |
ApiResponseStatusType
The type of response. Possible values:
OK
— there are no mistakes.ERROR
— an error occurred while processing the request.
Type |
Description |
Enum: |
OfferCardDTO
Information about the status of the product card.
If the field mapping
missing in the response, the Market has not yet managed to process the product information. To determine the category of such an item, repeat the request in a few minutes.
Name |
Description |
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: |
averageContentRating |
Type: integer<int32> The average rating of the card for products of the category indicated in |
cardStatus |
Type: OfferCardStatusType Product card status:
Enum: |
contentRating |
Type: integer<int32> The rating of the card. |
contentRatingStatus |
Type: OfferCardContentStatusType The status of calculating the card's rating and recommendations. Enum: |
errors |
Type: OfferErrorDTO[] Errors in the content that prevent the product from being placed in the showcase. Min items: |
mapping |
Type: GetMappingDTO Basic information about the product card. It may not be included in the response if the product is not linked to the card yet. Check the card's status or correct any errors. |
parameterValues |
Type: ParameterValueDTO[] A list of characteristics with their values.
You can specify multiple values of the same characteristic, provided that:
To do this, in Min items: |
recommendations |
Type: OfferCardRecommendationDTO[] A list of recommendations for filling out the card. Yandex.Market recommendations help you fill out the card so that it is easier for customers to find your product and decide to make a purchase.
Min items: |
warnings |
Type: OfferErrorDTO[] Content-related warnings that do not prevent the product from being placed in the showcase. Min items: |
ForwardScrollingPagerDTO
The ID of the next page.
Name |
Description |
nextPageToken |
Type: string ID of the next results page. |
OfferCardContentStatusType
The status of calculating the rating of the product card and recommendations:
UPDATING
— the rating is updated.ACTUAL
— the rating is current.
Type |
Description |
Enum: |
OfferErrorDTO
An error message related to the product placement.
Name |
Description |
comment |
Type: string Explanation. |
message |
Type: string The type of error. |
GetMappingDTO
Information about the products in the catalog.
Name |
Description |
marketCategoryId |
Type: integer<int64> ID of the category on the Market that the product belongs to. It may be missing from the response if the Market has not yet determined the product category. |
marketCategoryName |
Type: string The name of the card's category on the Market. It may be missing from the response if the Market has not yet determined the product category. |
marketModelId ⦸
|
Type: integer<int64> The ID of the model on the Market. It may not be included in the response if the product is not linked to the card yet. |
marketModelName ⦸
|
Type: string The name of the model on the Market. It may not be included in the response if the product is not linked to the card yet. |
marketSku |
Type: integer<int64> The ID of the card on the Market. Min value: |
marketSkuName |
Type: string The name of the product card. It may not be included in the response if the product is not linked to the card yet. |
ParameterValueDTO
The value of the characteristic.
You can specify multiple values of the same characteristic, provided that:
- Type of feature —
ENUM
. - In response to the request POST category/{categoryId}/parameters this characteristic has a field
multivalue
it matterstrue
.
To do this, in parameterValues
pass each value separately — multiple objects with parameters parameterId
, valueId
and value
. Parameter parameterId
it must be the same.
Name |
Description |
parameterId* |
Type: integer<int64> The identifier of the characteristic. Min value: |
unitId |
Type: integer<int64> ID of the unit of measurement. If you did not pass the parameter |
value |
Type: string Meaning. For type characteristics |
valueId |
Type: integer<int64> ID of the value. Be sure to specify the identifier if you are transmitting a value from the list of acceptable values received from the Market. Transmit along with Only for type characteristics |
OfferCardRecommendationDTO
Recommendation for filling out the product card.
Name |
Description |
type* |
Type: OfferCardRecommendationType A recommendation for adding or replacing content. It is not refunded for cards that are filled with the Market or contain used goods. Some of the recommendations relate to the main parameters, which are available for products of any category. Others belong to those characteristics which the product has because it belongs to a certain category. 1. Recommendations related to the main parameters Each such recommendation applies to the only parameter. To fill in this parameter, use the request POST businesses/{businessId}/offer-mappings/update. Recommendations for filling in the parameters in
2. Recommendations related to characteristics by category Each such recommendation involves filling out one or more characteristics. To find out exactly which characteristics you need to fill out, use the request POST category/{categoryId}/parameters. For example, if you have received a recommendation Recommendations:
3. Outdated recommendations
Enum: |
percent |
Type: integer<int32> Percentage of implementation of the recommendation. Specified for certain types of recommendations:
Min value: Max value (exclusive): |
remainingRatingPoints |
Type: integer<int32> The maximum number of card rating points that can be obtained for following recommendations. Min value: Max value: |
OfferCardRecommendationType
A recommendation for adding or replacing content. It is not refunded for cards that are filled with the Market or contain used goods.
Some of the recommendations relate to the main parameters, which are available for products of any category. Others belong to those characteristics which the product has because it belongs to a certain category.
1. Recommendations related to the main parameters
Each such recommendation applies to the only parameter. To fill in this parameter, use the request POST businesses/{businessId}/offer-mappings/update.
Recommendations for filling in the parameters in updateOfferMappings
:
-
RECOGNIZED_VENDOR
— write the manufacturer's name as the manufacturer himself writes it (parametervendor
). -
PICTURE_COUNT
— add images (parameterpictures
). RequirementsThe percentage of its completion is sent for the recommendation.
-
FIRST_PICTURE_SIZE
— replace the first image with a larger one (parameterpictures
). Requirements -
TITLE_LENGTH
— change the name (parametername
). Make a name according to the scheme: type + brand or manufacturer + model + features, if any (size, weight, color). Requirements -
DESCRIPTION_LENGTH
— add a description of the recommended size (parameterdescription
). Requirements -
AVERAGE_PICTURE_SIZE
— replace all images with high-quality images (parameterpictures
). Requirements -
FIRST_VIDEO_LENGTH
— add the first video of the recommended length (parametervideos
). Requirements -
FIRST_VIDEO_SIZE
— replace the first video with a high-quality video (parametervideos
). Requirements -
AVERAGE_VIDEO_SIZE
— replace all videos with high-quality videos (parametervideos
). Requirements -
VIDEO_COUNT
— add at least one video (parametervideos
). RequirementsThe percentage of its completion is sent for the recommendation.
2. Recommendations related to characteristics by category
Each such recommendation involves filling out one or more characteristics. To find out exactly which characteristics you need to fill out, use the request POST category/{categoryId}/parameters. For example, if you have received a recommendation MAIN
, you need to fill in the characteristics that have MAIN
in the array recommendationTypes
.
Recommendations:
-
MAIN
— fill in the key product characteristics that are used in the search and filters.The percentage of its completion is sent for the recommendation.
-
ADDITIONAL
— fill in additional product specifications.The percentage of its completion is sent for the recommendation.
-
DISTINCTIVE
— fill in the characteristics that distinguish the product options from each other.The percentage of its completion is sent for the recommendation.
3. Outdated recommendations
HAS_VIDEO
.FILTERABLE
.HAS_DESCRIPTION
.HAS_BARCODE
.
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 in 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.