Store Settings
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
- inventory-and-order-processing — Order processing and inventory
- inventory-and-order-processing:read-only — View order information
- pricing — Manage prices
- pricing:read-only — View prices
- offers-and-cards-management — Manage products and cards
- offers-and-cards-management:read-only — View products and cards
- promotion — Product promotion
- promotion:read-only — View promotion information
- finance-and-accounting — View financial data and reports
- communication — Customer communication
- settings-management — Store settings
- supplies-management:read-only — View FBY requests
- all-methods — Full account management
- all-methods:read-only — View all data
Returns information about the settings of the store whose ID is specified in the request.
, Limit: 1,000 requests per hour |
---|
Request
GET
https://api.partner.market.yandex.ru/campaigns/{campaignId}/settings
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 ID instead, which is indicated in the seller's account on the Market next to the store name and in some reports.
Min value: |
Responses
200 OK
Store settings.
Body
application/json
{
"settings": {
"countryRegion": 0,
"shopName": "string",
"showInContext": false,
"showInPremium": false,
"useOpenStat": false,
"localRegion": {
"id": 0,
"name": "string",
"type": "OTHER",
"deliveryOptionsSource": "WEB",
"delivery": {
"schedule": {
"availableOnHolidays": false,
"customHolidays": [
"23-09-2022"
],
"customWorkingDays": [
"23-09-2022"
],
"period": {
"fromDate": "23-09-2022",
"toDate": "23-09-2022"
},
"totalHolidays": [
"23-09-2022"
],
"weeklyHolidays": [
0
]
}
}
}
}
}
Name |
Description |
settings |
Type: CampaignSettingsDTO Store settings. |
CampaignSettingsDTO
Store settings.
Name |
Description |
countryRegion |
Type: integer<int64> ID of the region where the store is located. |
localRegion |
Type: CampaignSettingsLocalRegionDTO Information about your store's region. |
shopName |
Type: string The name of the store on Yandex Market.
If the name is missing, the parameter value is output — |
showInContext ⦸
|
Type: boolean Indicates whether the store is located on the websites of Yandex Distribution partners. Possible values:
|
showInPremium ⦸
|
Type: boolean Indicates whether the store's offers are displayed in the block above the search results (special placement). Possible values:
|
useOpenStat ⦸
|
Type: boolean Indicates the use of external Internet statistics. Possible values:
|
CampaignSettingsLocalRegionDTO
Information about your store's region.
Name |
Description |
delivery |
Type: CampaignSettingsDeliveryDTO Information about delivery in your store's region. |
deliveryOptionsSource |
Type: CampaignSettingsScheduleSourceType The source of information about the delivery service's schedule. Possible values:
Enum: |
id |
Type: integer<int64> ID of the region. |
name |
Type: string The name of the region. |
type |
Type: RegionType The type of region. Possible values:
Enum: |
CampaignSettingsDeliveryDTO
Information about delivery in your store's region.
Name |
Description |
schedule |
Type: CampaignSettingsScheduleDTO The delivery service's schedule in your region. |
CampaignSettingsScheduleSourceType
The source of information about the delivery service's schedule. Possible values:
WEB
— the information is obtained from the settings of the merchant's account on the Market.YML
— the information is obtained from the price list of the store.
Type |
Description |
Enum: |
RegionType
The type of region.
Possible values:
-
CITY_DISTRICT
— the area of the city. -
CITY
— a large city. -
CONTINENT
— the continent. -
COUNTRY_DISTRICT
— area. -
COUNTRY
— country. -
REGION
— region. -
REPUBLIC_AREA
— district of the subject of the federation. -
REPUBLIC
— the subject of the Federation. -
SUBWAY_STATION
— the metro station. -
VILLAGE
— the city. -
OTHER
— unknown region.
Type |
Description |
Enum: |
CampaignSettingsScheduleDTO
The delivery service's schedule in your region.
Name |
Description |
customHolidays* |
Type: string<date-dd-MM-yyyy>[] A list of days when the delivery service is closed. The store's days are indicated in the seller's office on the Market. Example: Unique items |
customWorkingDays* |
Type: string<date-dd-MM-yyyy>[] A list of weekends and holidays on which the delivery service operates. The store's days are indicated in the seller's office on the Market. Example: Unique items |
totalHolidays* |
Type: string<date-dd-MM-yyyy>[] The final list of non-working days of the delivery service. The list is calculated taking into account weekends, non-working days and public holidays. The store indicates information about them in the seller's account on the Market. Example: Unique items |
weeklyHolidays* |
Type: integer<int32>[] A list of weekends and public holidays.
For the JSON format, the day number is output as a number. Min value: Max value: Unique items |
availableOnHolidays |
Type: boolean Indicates that the delivery service is open on public holidays. Possible values.
|
period |
Type: CampaignSettingsTimePeriodDTO The period for which the final list of non-working days of the delivery service is calculated. |
CampaignSettingsTimePeriodDTO
The period for which the final list of non-working days of the delivery service is calculated.
Name |
Description |
fromDate |
Type: string<date-dd-MM-yyyy> Date format: Example: |
toDate |
Type: string<date-dd-MM-yyyy> Date format: Example: |
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. |
ApiResponseStatusType
The type of response. Possible values:
OK
— there are no mistakes.ERROR
— an error occurred while processing the request.
Type |
Description |
Enum: |
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 the 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.