Information about the products that are placed in the specified 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
- 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 a list of products that are placed in the specified store. The placement parameters are specified for each product.
, Limit: 10,000 items per minute |
---|
Request
POST
https://api.partner.market.yandex.ru/campaigns/{campaignId}/offers
Path parameters
Name |
Description |
campaignId* |
Type: integer<int64> The store's ID in the merchant profile. To find out the IDs of your stores, 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.
|
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"
],
"statuses": [
"PUBLISHED"
],
"categoryIds": [
0
],
"vendorNames": [
"string"
],
"tags": [
"string"
]
}
Name |
Description |
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. This list is returned only in its entirety. Do not use this field at the same time as filters based on card statuses, categories, brands, or tags. If you want to use filters, leave the field empty. If you are requesting information on specific SKUs, do not fill in:
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 |
statuses |
Type: OfferCampaignStatusType[] Filter by product status.
What does each of the statuses mean? Enum: Min items: Unique items |
tags |
Type: string[] Filter by tags. Min items: Unique items |
vendorNames |
Type: string[] Filter by brand. Min items: Unique items |
OfferCampaignStatusType
Product status:
PUBLISHED
— Ready for sale.CHECKING
— On inspection.DISABLED_BY_PARTNER
— Hidden by you.REJECTED_BY_MARKET
— Rejected.DISABLED_AUTOMATICALLY
— Fix the errors.CREATING_CARD
— A card is being created.NO_CARD
— I need a card.NO_STOCKS
— Not in stock.ARCHIVED
— In the archive.
What does each of the statuses mean?
Type |
Description |
Enum: |
Responses
200 OK
A list of products placed in the specified store.
Body
application/json
{
"status": "OK",
"result": {
"paging": {
"nextPageToken": "string",
"prevPageToken": "string"
},
"offers": [
{
"offerId": "string",
"quantum": {
"minQuantity": 0,
"stepQuantity": 0
},
"available": false,
"basicPrice": {
"value": 0,
"currencyId": "RUR",
"discountBase": 0,
"updatedAt": "2022-12-29T18:02:01Z"
},
"campaignPrice": {
"value": 0,
"discountBase": 0,
"currencyId": "RUR",
"vat": 0,
"updatedAt": "2022-12-29T18:02:01Z"
},
"status": "PUBLISHED",
"errors": [
{
"message": "string",
"comment": "string"
}
],
"warnings": [
{
"message": "string",
"comment": "string"
}
]
}
]
}
}
Name |
Description |
result |
Type: GetCampaignOffersResultDTO The list of products in the specified store. |
status |
Type: ApiResponseStatusType The type of response. Possible values:
Enum: |
GetCampaignOffersResultDTO
The list of products in the specified store.
Name |
Description |
offers* |
Type: GetCampaignOfferDTO[] The product list page. |
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: |
GetCampaignOfferDTO
Product placement parameters in the store.
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: |
available ⦸
|
Type: boolean This parameter is deprecated. Instead, use methods to hide goods from the showcase:
Whether the product is on sale. |
basicPrice |
Type: GetPriceWithDiscountDTO The price of the product for all stores. |
campaignPrice |
Type: GetPriceWithVatDTO The price set in a separate store. |
errors |
Type: OfferErrorDTO[] Errors that prevent the product from being placed in the showcase.
Min items: |
quantum |
Type: QuantumDTO Setting up a quantum sale. What does it mean? |
status |
Type: OfferCampaignStatusType Product status:
What does each of the statuses mean? Enum: |
warnings |
Type: OfferErrorDTO[] Warnings that do not prevent the product from being placed in the showcase.
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. |
GetPriceWithDiscountDTO
The price includes the discount and the time of the last update.
Name |
Description |
updatedAt* |
Type: string<date-time> The time of the last update. |
currencyId |
Type: CurrencyType Currency. Enum: |
discountBase |
Type: number The crossed-out price. The number must be an integer. You can specify a price with a discount from 5 to 99%. Pass this parameter every time the price is updated if you provide a discount on the product. Min value (exclusive): |
value |
Type: number Meaning. Min value (exclusive): |
GetPriceWithVatDTO
The price includes VAT and the time of the last update.
Name |
Description |
updatedAt* |
Type: string<date-time> The time of the last update. |
currencyId |
Type: CurrencyType The currency in which the price of the product is indicated. Enum: |
discountBase |
Type: number The price of the product is without discount. The number must be an integer. You can specify a price with a discount from 5 to 99%. Pass this parameter every time the price is updated if you provide a discount on the product. |
value |
Type: number The price of the product. |
vat |
Type: integer<int32> The VAT identifier used for the product:
If the parameter is omitted, the VAT set in the cabinet is used. For sellers of the Yandex Go Market transfer and receipt of VAT is not available. |
OfferErrorDTO
An error message related to the product placement.
Name |
Description |
comment |
Type: string Explanation. |
message |
Type: string The type of error. |
QuantumDTO
Setting up a quantum sale.
To reset the previously set values, pass an empty parameter quantum
.
Example
{
"offers": [
{
"offerId": "08e35dc1-89a2-11e3-8055-0015e9b8c48d",
"quantum": {}
}
]
}
Name |
Description |
minQuantity |
Type: integer<int32> The minimum number of product units in the order. For example, if you specify 10, the customer will be able to add at least 10 items to the cart. If the quantity of goods in stock is less than the specified quantity, the restriction will not work and the buyer will be able to order it. Min value: |
stepQuantity |
Type: integer<int32> By how many units the buyer will be able to increase the quantity of goods in the basket. For example, if you set 5, the buyer will be able to add only 5, 10, 15, ... items to the order. If the quantity of goods in stock does not reach the quantum, the restriction will not work and the buyer will be able to order a quantity that is not a multiple of the quantum. Min value: Max value: |
CurrencyType
Currency codes:
RUR
— the Russian ruble.UAH
— the Ukrainian hryvnia.BYR
— Belarusian ruble.KZT
— Kazakhstani tenge.UZS
— Uzbek sum.
Type |
Description |
Enum: |
400 Bad Request
The request contains incorrect data.
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.
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.
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.
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.
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 server 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.