List of products in the catalog

Deprecated

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

Which method should I use instead of the outdated one?

For each product that you place on the Market, information about the Market cards that this product is linked to is returned:

  • The ID of the current card (marketSku), the card that is undergoing moderation, and the last rejected card.
  • The product description shown on the Market card. For example, the size of the package and the weight of the product.

The results are returned page by page. The output data contains the ID of the next page.

How is the number of products in the store's catalog calculated?

According to the data for the last seven days (not including today).

⚙️ Limit: 10,000 items per minute

Request

GET

https://api.partner.market.yandex.ru/v2/campaigns/{campaignId}/offer-mapping-entries

Path parameters

Name

Description

campaignId*

Type: integer<int64>

The campaign ID.

You can find it using a query GET v2/campaigns or find it in the seller's office on the Market — click on your account icon → Settings and in the menu on the left, select APIs and modules:

  • block Campaign ID;
  • tab Query log → drop-down list in the block Show logs.

⚠️ Do not send the store ID instead, which is indicated in the seller's account on the Market next to the store name and in some reports.

Min value: 1

Query parameters

Name

Description

availability

Type: string[]

Filtering by product delivery plans:

  • ACTIVE — There will be deliveries.
  • INACTIVE — There will be no deliveries: the product is in stock, but you no longer plan to deliver it.
  • DELISTED — Archive: The product has run out of stock, and there will be no more deliveries.

You can specify multiple values in one parameter, separated by commas, or in several identical parameters. For example:

...availability=INACTIVE,DELISTED...
...availability=INACTIVE&availability=DELISTED...

In the request, you can specify either the parameter shopSku, or any parameters for filtering products. Sharing a parameter shopSku and the filtering options will result in an error.
Delivery plans:

  • ACTIVE — There will be deliveries.
  • INACTIVE — There will be no deliveries: the product is in stock, but you no longer plan to deliver it. 60 days after the product runs out of stock, this status will change to DELISTED.
  • DELISTED — Archive: The product has run out of stock, and there will be no more deliveries. If the product is returned to the warehouse (for example, the customer returns the order), this status will change to INACTIVE.

Enum: ACTIVE, INACTIVE, DELISTED

category_id

Type: integer[]

Filtering by the category ID on the Market.

To find out the ID of the category to which the product belongs, use the request POST v2/categories/tree.

You can specify multiple identifiers in one parameter, separated by commas, or in several identical parameters. For example:

...category_id=14727164,14382343...
...category_id=14727164&category_id=14382343...

In the request, you can specify either the parameter shopSku, or any parameters for filtering products. Sharing a parameter shopSku and the filtering options will result in an error.

limit

Type: integer<int32>

The number of values per page.

Min value: 1
Example: 20

mapping_kind

Type: string

The type of mapping.
Type of mapping:

  • ALL — all products.
  • ACTIVE — ready-to-sell products.

Enum: ACTIVE, ALL

offer_id

Type: string[]

The product ID in the catalog.

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 nextPageToken, received during the last request.

If set page_token and the request has parameters page and pageSize they are ignored.
Example: eyBuZXh0SWQ6IDIzNDIgfQ==

shop_sku

Type: string[]

Your SKU the product.

The parameter can be specified several times, for example:

...shop_sku=123&shop_sku=129&shop_sku=141...

In the request, you can specify either the parameter shopSku, or any parameters for filtering products. Sharing a parameter shopSku and the filtering options will result in an error.
Your SKU — the product ID in your system.

Usage rules SKU:

  • For each product SKU there must be one.

  • Already set SKU it cannot be released and reused for another product. Each product should receive a new identifier that has never been used in your catalog before.

SKU 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.

Warning

Spaces at the beginning and end of the value are automatically deleted. For example, " SKU123 " and "SKU123" they will be treated as identical values.

What is SKU and how to assign it

Min length: 1

Max length: 255

Pattern: ^(?=.*\S.*)[^\x00-\x08\x0A-\x1f\x7f]{1,255}$

status

Type: string[]

Filtering by product publication status:

  • READY — the product has passed moderation.
  • IN_WORK — the product is undergoing moderation.
  • NEED_CONTENT — for a product without SKU on the Market marketSku you need to find a card yourself or create one.
  • NEED_INFO — The product failed moderation due to errors or missing information in the product description.
  • REJECTED — the product did not pass moderation, as the Market does not plan to post such products.
  • SUSPENDED — the product has not passed moderation, as the Market does not yet place such products.
  • OTHER — the product failed moderation for another reason.

You can specify multiple statuses in one parameter, separated by commas, or in several identical parameters. For example:

...status=READY,IN_WORK...
...status=READY&status=IN_WORK...

In the request, you can specify either the shopSku parameter or any parameters for filtering products. Using the shopSku parameter and the filtering parameters together will result in an error.
Product publication status:

  • UNKNOWN — unknown status.
  • READY — the product has passed moderation. To place it on the Market, set a price for it.
  • IN_WORK — the product is undergoing moderation. It takes a few days.
  • NEED_INFO — The product failed moderation due to errors or missing information in the product description. Information about the reasons for the deviation is returned in the parameter notes.
  • NEED_MAPPING — You can't create a card for a product.
  • NEED_CONTENT — for a product without SKU on the Market (marketSku) you need to find the card yourself (via the API or the seller's account on the Market) or create it if the product is not yet on sale on the Market.
  • CONTENT_PROCESSING — the product is under moderation.
  • SUSPENDED — the product has not passed moderation, as the Market does not yet place such products.
  • REJECTED — the product did not pass moderation, as the Market does not plan to post such products.
  • REVIEW — A decision is being made on the placement of the product.
  • CREATE_ERROR — couldn't create a product profile.
  • UPDATE_ERROR — the product card has unused changes.

Enum: UNKNOWN, READY, IN_WORK, NEED_INFO, NEED_MAPPING, NEED_CONTENT, CONTENT_PROCESSING, SUSPENDED, REJECTED, REVIEW, CREATE_ERROR, UPDATE_ERROR

vendor

Type: string[]

Filtering by product brand.

You can specify multiple brands in one parameter, separated by commas, or in several identical parameters. For example:

...vendor=Aqua%20Minerale,Borjomi...
...vendor=Aqua%20Minerale&vendor=Borjomi...

In order for a product to be included in the filtering results, its brand must exactly match one of the ones specified in the request. For example, if the brand is specified Schwarzkopf, then there will be no products in the results Schwarzkopf Professional.

If the brand name contains characters that are not included in the table ASCII (including Cyrillic characters), use for them URL- coding. For example, a space — %20, apostrophe "'" — %27, etc. For more information, see Coding URL Russian-language Wikipedia.

In the request, you can specify either the shopSku parameter or any parameters for filtering products. Sharing a parameter shopSku and the filtering options will result in an error.

Responses

200 OK

Information about the products in the catalog.

Body

application/json
{
    "status": "OK",
    "result": {
        "paging": {
            "nextPageToken": "string",
            "prevPageToken": "string"
        },
        "offerMappingEntries": [
            {
                "offer": {
                    "name": "Ударная дрель Makita HP1630, 710 Вт",
                    "shopSku": "string",
                    "category": "string",
                    "vendor": "LEVENHUK",
                    "vendorCode": "VNDR-0005A",
                    "description": "string",
                    "id": "string",
                    "feedId": 0,
                    "barcodes": [
                        "46012300000000"
                    ],
                    "urls": [
                        "string"
                    ],
                    "pictures": [
                        "string"
                    ],
                    "manufacturer": "string",
                    "manufacturerCountries": [
                        "string"
                    ],
                    "minShipment": 0,
                    "transportUnitSize": 0,
                    "quantumOfSupply": 0,
                    "deliveryDurationDays": 0,
                    "boxCount": 0,
                    "customsCommodityCodes": [
                        "string"
                    ],
                    "weightDimensions": {
                        "length": 65.55,
                        "width": 50.7,
                        "height": 20,
                        "weight": 1.001
                    },
                    "supplyScheduleDays": [
                        "MONDAY"
                    ],
                    "shelfLifeDays": 0,
                    "lifeTimeDays": 0,
                    "guaranteePeriodDays": 0,
                    "processingState": {
                        "status": "UNKNOWN",
                        "notes": [
                            {
                                "type": "ASSORTMENT",
                                "payload": "string"
                            }
                        ]
                    },
                    "availability": "ACTIVE",
                    "shelfLife": {
                        "timePeriod": 0,
                        "timeUnit": "HOUR",
                        "comment": "string"
                    },
                    "lifeTime": {
                        "timePeriod": 0,
                        "timeUnit": "HOUR",
                        "comment": "string"
                    },
                    "guaranteePeriod": {
                        "timePeriod": 0,
                        "timeUnit": "HOUR",
                        "comment": "string"
                    },
                    "certificate": "string",
                    "price": 0
                },
                "mapping": {
                    "marketSku": 0,
                    "modelId": 0,
                    "categoryId": 0
                },
                "awaitingModerationMapping": {
                    "marketSku": 0,
                    "modelId": 0,
                    "categoryId": 0
                },
                "rejectedMapping": {
                    "marketSku": 0,
                    "modelId": 0,
                    "categoryId": 0
                }
            }
        ]
    }
}

Name

Description

status*

Type: string

The type of response. Possible values:

  • OK — There are no errors.
  • ERROR — an error occurred while processing the request.

Enum: OK, ERROR

result

Type: object

offerMappingEntries*

Type: object[]

Information about the products in the catalog.
The list of products.
Information about the product card.

paging

Type: object

nextPageToken

Type: string

ID of the next results page.

prevPageToken

Type: string

ID of the previous results page.

Information about the result pages.
The ID of the next page.

Information about the products in the catalog.

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: object[]

A list of errors.
The general error format.

Min items: 1

status

Type: string

The type of response. Possible values:

  • OK — There are no errors.
  • ERROR — an error occurred while processing the request.

Enum: OK, 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: object[]

A list of errors.
The general error format.

Min items: 1

status

Type: string

The type of response. Possible values:

  • OK — There are no errors.
  • ERROR — an error occurred while processing the request.

Enum: OK, ERROR

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: object[]

A list of errors.
The general error format.

Min items: 1

status

Type: string

The type of response. Possible values:

  • OK — There are no errors.
  • ERROR — an error occurred while processing the request.

Enum: OK, ERROR

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: object[]

A list of errors.
The general error format.

Min items: 1

status

Type: string

The type of response. Possible values:

  • OK — There are no errors.
  • ERROR — an error occurred while processing the request.

Enum: OK, ERROR

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: object[]

A list of errors.
The general error format.

Min items: 1

status

Type: string

The type of response. Possible values:

  • OK — There are no errors.
  • ERROR — an error occurred while processing the request.

Enum: OK, ERROR

500 Internal Server Error

Internal error of the Market. More information about the error

Body

application/json
{
    "status": "OK",
    "errors": [
        {
            "code": "string",
            "message": "string"
        }
    ]
}

Name

Description

errors

Type: object[]

A list of errors.
The general error format.

Min items: 1

status

Type: string

The type of response. Possible values:

  • OK — There are no errors.
  • ERROR — an error occurred while processing the request.

Enum: OK, ERROR

No longer supported, please use an alternative and newer version.

What is GTIN?
GTIN — This is a unique number assigned to a product in a single international database. GS1. This number generates an EAN, UPC, or ISBN barcode.

How to make sure that the product is in the database
You can check the code on verification page on the GS1 association's website. If the product is not found, request the GTIN code from your supplier.

How to get a GTIN for your products
To receive GTIN codes, the manufacturer needs to join the GS1 association and register the products.