Marketing and Promotions (promotion)
Campaign Management, bid settings, financial data accounting, and settings for with standard bid and media campaigns.
Data synchronization from the database occurs every 3 minutes. Status changes occur every 1 minute. The bid change occurs every 30 seconds. The latest changes are saved within the intervals
Campaign Management, bid settings, financial data accounting, and settings for with standard bid and media campaigns.
Data synchronization from the database occurs every 3 minutes. Status changes occur every 1 minute. The bid change occurs every 30 seconds. The latest changes are saved within the intervals
Campaigns lists{{ /adv/v1/promotion/count }}
Method allows to get campaigns lists grouped by type and status with information about last campaign change date.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 5 requests | 200 milliseconds | 5 requests |
Authorizations:
Responses
Response samples
- 200
- 401
- 429
{- "adverts": [
- {
- "type": 4,
- "status": 8,
- "count": 3,
- "advert_list": [
- {
- "advertId": 6485174,
- "changeTime": "2023-05-10T12:12:52.676254+03:00"
}, - {
- "advertId": 6500443,
- "changeTime": "2023-05-10T17:08:46.370656+03:00"
}, - {
- "advertId": 7936341,
- "changeTime": "2023-07-12T15:51:08.367478+03:00"
}
]
}
], - "all": 3
}
Campaigns information{{ /adv/v1/promotion/adverts }}
The method allows to retrieve information about campaigns via query parameters, or by a list of campaign IDs.
Use the separate method to get information about campaigns with custom bid.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 5 requests | 200 milliseconds | 5 requests |
Authorizations:
query Parameters
status | integer Enum: -1 4 7 8 9 11
|
type | integer Enum: 4 5 6 7 8
|
order required | string Enum: "create" "change" "id"
|
direction | string Enum: "desc" "asc"
|
Request Body schema: application/jsonrequired
List of campaign IDs. A Maximum of of 50.
You can get campaign IDs using the Campaign Lists method
Responses
Request samples
- Payload
[- 1234567,
- 63453471
]
Response samples
- 200
- 400
- 401
- 422
- 429
[- {
- "endTime": "2023-10-05T21:37:37.226021+03:00",
- "createTime": "2023-08-21T13:45:31.121172+03:00",
- "changeTime": "2023-08-21T14:59:33.622594+03:00",
- "startTime": "2023-08-21T13:45:31.147601+03:00",
- "autoParams": {
- "subject": {
- "name": "Обложки",
- "id": 342
}, - "sets": [
- {
- "name": "для женщин",
- "id": 623
}
], - "nms": [
- 1234567
], - "active": {
- "carousel": true,
- "recom": true,
- "booster": true
}, - "nmCPM": [
- {
- "nm": 1234567,
- "cpm": 150
}
]
}, - "name": "Кампания1",
- "dailyBudget": 0,
- "advertId": 11111111,
- "status": 7,
- "type": 8,
- "paymentType": "cpm"
}
]
Custom bid campaigns information{{ /adv/v0/auction/adverts }}
The method allows to retrieve information about campaignswith custom bid via statuses, payment types and IDs.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 5 requests | 200 milliseconds | 5 requests |
Authorizations:
query Parameters
ids | Array of strings [ 1 .. 50 ] items Example: ids=12345,23456,34567,45678,56789 Campaign IDs |
statuses | Array of strings Example: statuses=-1,4,8
|
payment_type | string Enum: "cpm" "cpc"
|
Responses
Response samples
- 200
- 400
- 401
- 429
[- {
- "id": 18298989,
- "nm_settings": [
- {
- "bids": {
- "recommendations": 0,
- "search": 150
}, - "subject": {
- "id": 69,
- "name": "платья"
}, - "nm_id": 139312996
}
], - "settings": {
- "name": "Кампания 34",
- "payment_type": "cpc",
- "placements": {
- "recommendations": false,
- "search": true
}
}, - "status": 7,
- "timestamps": {
- "created": "2024-06-28T15:49:02.031402+03:00",
- "deleted": "2024-07-03T13:53:42.260198+03:00",
- "started": "2024-07-01T23:32:09.083098+03:00",
- "updated": "2025-07-30T10:23:55.719721+03:00"
}
}
]
Promotional configuration values{{ /adv/v0/config }}
The method provides acceptable values for the main configuration parameters of campaigns
Period | Limit | Interval | Burst |
---|---|---|---|
1 minute | 1 request | 1 minute | 1 request |
Authorizations:
Responses
Response samples
- 200
- 401
- 429
{- "categories": [
- {
- "id": 760,
- "name": "Автомобильные товары",
- "cpm_min": 112
}
], - "config": [
- {
- "description": "Минимальный бюджет кампании",
- "name": "budget_min",
- "value": "1000"
}, - {
- "description": "Максимальный период в днях, за который можно получить статистику",
- "name": "api_fullstat_day_depth",
- "value": "31"
}, - {
- "description": "Минимальная ставка CPM для кампаний с ручной ставкой",
- "name": "cpm_min_booster",
- "value": "100"
}, - {
- "description": "Минимальная ставка CPM для кампаний с единой ставкой",
- "name": "cpm_min_search_catalog",
- "value": "150"
}, - {
- "description": "Максимальное количество товаров для кампаний с ручной ставкой",
- "name": "max_nm_count",
- "value": "50"
}, - {
- "description": "Максимальное количество товаров для кампаний с единой ставкой",
- "name": "max_auto_nms",
- "value": "100"
}
]
}
Creating campaign with standard bid{{ /adv/v1/save-ad }}
Creates an campaign with standard bid.
Period | Limit | Interval | Burst |
---|---|---|---|
20 seconds | 1 request | 20 seconds | 5 requests |
Authorizations:
Request Body schema: application/jsonrequired
type | integer
|
name | string Campaign name (max. 128 characters) |
subjectId | integer ID of the item for which the campaign is created. |
sum | integer Top-up amount |
btype | integer
|
on_pause | boolean
|
nms | Array of integers WB articles array. |
cpm | integer Bid. |
Responses
Request samples
- Payload
{- "type": 8,
- "name": "Парашюты",
- "subjectId": 270,
- "sum": 500,
- "btype": 1,
- "on_pause": true,
- "nms": [
- 9178363,
- 9178364
], - "cpm": 10
}
Response samples
- 200
- 400
- 401
- 422
- 429
"9008917"
Create campaign with custom bid{{ /adv/v2/seacat/save-ad }}
Creates with custom bid campaign.
Period | Limit | Interval | Burst |
---|---|---|---|
1 minute | 5 requests | 12 seconds | 5 requests |
Authorizations:
Request Body schema: application/json
campaignName | string Campaign name |
nms | Array of integers Product card for this campaign. You can available product cards with product cards for campaigns method. Maximum of 50 products ( |
Responses
Request samples
- Payload
{- "campaignName": "Телефоны",
- "nms": [
- 146168367,
- 200425104
]
}
Response samples
- 400
- 401
- 429
Нет доступных категорий для рк. Создайте новую кампанию для попадания в текущие категории
Subjects for campaigns{{ /adv/v1/supplier/subjects }}
Returns subjects product cards from which are available for all campaigns
Period | Limit | Interval | Burst |
---|---|---|---|
12 seconds | 1 request | 12 seconds | 5 requests |
Authorizations:
Responses
Response samples
- 200
- 401
- 429
[- {
- "name": "3D очки",
- "id": 2560,
- "count": 1899
}
]
Product cards for campaigns{{ /adv/v2/supplier/nms }}
Returns product cards that are available for all campaigns.
Period | Limit | Interval | Burst |
---|---|---|---|
1 minute | 5 requests | 12 seconds | 5 requests |
Authorizations:
Request Body schema: application/json
ID of subjects to get product cards
Responses
Request samples
- Payload
[- 123,
- 456,
- 765,
- 321
]
Response samples
- 200
- 400
- 401
- 429
[- {
- "title": "Плед",
- "nm": 146168367,
- "subjectId": 765
}
]
Delete campaign{{ /adv/v0/delete }}
The method allows to delete campaigns in the status 4 - ready to launch.
After deleting, the campaign will be in -1 status for a while.
It takes between 3 and 10 minutes to completely delete the campaign.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 5 requests | 200 milliseconds | 5 requests |
Authorizations:
query Parameters
id required | integer Campaign ID |
Responses
Response samples
- 400
- 401
- 429
Invalid campaign identifier
{- "error": "Invalid campaign identifier"
}
Rename campaign{{ /adv/v0/rename }}
The method allows to rename a campaign.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 5 requests | 200 milliseconds | 5 requests |
Authorizations:
Request Body schema: application/json
advertId required | integer ID of the campaign that has the name change |
name required | string New name (max 100 characters) |
Responses
Request samples
- Payload
{- "advertId": 2233344,
- "name": "newnmame"
}
Response samples
- 400
- 401
- 422
- 429
Incorrect campaign identifier (RC ID)
Launch campaign{{ /adv/v0/start }}
The method allows to run campaigns that are in statuses 4 - ready to launch or 11 - paused campaign.
To run an ad campaign with status 11, check its budget. If the budget is insufficient, replenish it.
- To run a campaign with status 4, it is necessary to do following (the order of actions does not matter):
- 1. After creating a campaign in the WB. Promotion cabinet click the `Apply changes` button.
- 2. Set the budget.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 5 requests | 200 milliseconds | 5 requests |
Authorizations:
query Parameters
id required | integer Example: id=1234 Campaign ID |
Responses
Response samples
- 400
- 401
- 422
- 429
Incorrect campaign identifier (RC ID)
Pause campaign{{ /adv/v0/pause }}
Campaign in status 9
- active - can be paused
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 5 requests | 200 milliseconds | 5 requests |
Authorizations:
query Parameters
id required | integer Example: id=1234 Campaign ID |
Responses
Response samples
- 400
- 401
- 422
- 429
Incorrect campaign identifier (RC ID)
Stop campaign{{ /adv/v0/stop }}
The method allows to end campaigns that are in status 9, 11 or 4.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 5 requests | 200 milliseconds | 5 requests |
Authorizations:
query Parameters
id required | integer Example: id=1234 Campaign ID |
Responses
Response samples
- 400
- 401
- 422
- 429
Incorrect campaign identifier (RC ID)
Bid update{{ /adv/v0/cpm }} Deprecated
The method is not actual, use the current method.
Authorizations:
Request Body schema: application/jsonrequired
advertId required | integer Campaign ID where the bid is changing |
type required | integer Enum: 5 6 7 8 9
|
cpm required | integer New bid value |
param required | integer The parameter for which the change will be made is the value of |
instrument | integer Campaign type for bid change in custom bid |
Responses
Request samples
- Payload
{- "advertId": 789,
- "type": 5,
- "cpm": 456,
- "param": 23,
- "instrument": 4
}
Response samples
- 400
- 401
- 422
- 429
Incorrect value for parameter `param`
Changing bids{{ /adv/v0/bids }}
The method changes the bids of product cards by WB articles in campaigns with standard and custom bid.
For campaigns in statuses 4
, 9
and 11
.
Use the separate method to change bids in the campaigns with custom bid.
Minimum allowable bids can be found in the response of the method for obtaining configuration values.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 5 requests | 200 milliseconds | 5 requests |
Authorizations:
Request Body schema: application/jsonrequired
required | Array of objects (V0AdvertMultibid) <= 20 items |
Responses
Request samples
- Payload
{- "bids": [
- {
- "advert_id": 6348555,
- "nm_bids": [
- {
- "nm": 3462354,
- "bid": 500
}
]
}
]
}
Response samples
- 400
- 401
- 429
Duplicate campaign ID.
The position of the campaign in the bids array of the request is indicated in .bids[n]
{- "errors": [
- {
- "detail": "advert 1234567 is not unique",
- "field": ".bids[2]"
}
], - "request_id": "2c991dcab0fe971e8c0321c340a8c7fd",
- "status": 400,
- "title": "invalid payload",
- "type": "Bad Request"
}
Changing placements in campaigns with custom bid{{ /adv/v0/auction/placements }}
The method allows you to change placements in campaigns with custom bid.
For campaigns in statuses 4
, 9
and 11
.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 1 request | 1 second | 1 request |
Authorizations:
Request Body schema: application/jsonrequired
required | Array of objects <= 50 items Placements in campaigns |
Responses
Request samples
- Payload
{- "placements": [
- {
- "advert_id": 12345,
- "placements": {
- "search": true,
- "recommendations": true
}
}
]
}
Response samples
- 400
- 401
- 429
{- "detail": "can not deserialize response body",
- "origin": "camp-api-public-cache",
- "request_id": "9a929a81ea9dc1601fcc4be81f32c1cb",
- "status": 400,
- "title": "invalid payload"
}
Changing bids in campaigns with custom bid{{ /adv/v0/auction/bids }}
The method changes the bids of product cards by WB articles in various placements in campaigns with custom bid.
For campaigns in statuses 4
, 9
and 11
.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 5 requests | 200 milliseconds | 5 requests |
Authorizations:
Request Body schema: application/jsonrequired
required | Array of objects <= 50 items Bids in campaigns |
Responses
Request samples
- Payload
{- "bids": [
- {
- "advert_id": 12345,
- "nm_bids": [
- {
- "nm_id": 13335157,
- "bid": 250,
- "placement": "recommendations"
}
]
}
]
}
Response samples
- 200
- 400
- 401
- 429
{- "bids": [
- {
- "advert_id": 12345,
- "nm_bids": [
- {
- "nm_id": 13335157,
- "bid": 250,
- "placement": "recommendations"
}
]
}
]
}
Managing the activity of fixed phrases{{ /adv/v1/search/set-plus }}
The method allows to change the activity of fixed phrases. Only for campaigns with custom bid.
Period | Limit | Interval | Burst |
---|---|---|---|
500 milliseconds | 1 request | 500 milliseconds | 5 requests |
Authorizations:
query Parameters
id required | integer Example: id=1234567 Campaign ID |
fixed | boolean New state ( |
Responses
Response samples
- 401
- 429
{- "title": "unauthorized",
- "detail": "token problem; token is malformed: could not base64 decode signature: illegal base64 data at input byte 84",
- "code": "07e4668e--a53a3d31f8b0-[UK-oWaVDUqNrKG]; 03bce=277; 84bd353bf-75",
- "requestId": "7b80742415072fe8b6b7f7761f1d1211",
- "origin": "s2s-api-auth-catalog",
- "status": 401,
- "statusText": "Unauthorized",
- "timestamp": "2024-09-30T06:52:38Z"
}
Setting/deleting fixed phrases{{ /adv/v1/search/set-plus }}
The method allows to set and delete fixed phrases.Only for campaigns with custom bid.
Sending an empty array removes all fixed phrases and disables fixed phrase activity in the campaign.
Period | Limit | Interval | Burst |
---|---|---|---|
500 milliseconds | 1 request | 500 milliseconds | 5 requests |
Authorizations:
query Parameters
id required | integer Example: id=1234567 Campaign ID |
Request Body schema: application/jsonrequired
pluse | Array of strings Fixed phrase list (max. 100) |
Responses
Request samples
- Payload
{- "pluse": [
- "Фраза 1",
- "Фраза 2"
]
}
Response samples
- 200
- 401
- 429
[- "Фраза 1",
- "Фраза 2"
]
Setting/removing minus-phrases of phrase matching{{ /adv/v1/search/set-phrase }}
Sets/removes minus-phrases of a phrase match. Only for campaigns with custom bid.
The Maximum of allowed number of minus-phrases in a campaign is 1000 pcs.
Posting an empty array removes all minus-phrase of phrase matching from the campaign.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 2 requests | 500 milliseconds | 2 requests |
Authorizations:
query Parameters
id required | integer Example: id=1234567 Campaign ID |
Request Body schema: application/jsonrequired
phrase | Array of strings Minus-phrases (max. 1000 pcs.) |
Responses
Request samples
- Payload
{- "phrase": [
- "сло",
- "гу"
]
}
Response samples
- 401
- 429
{- "title": "unauthorized",
- "detail": "token problem; token is malformed: could not base64 decode signature: illegal base64 data at input byte 84",
- "code": "07e4668e--a53a3d31f8b0-[UK-oWaVDUqNrKG]; 03bce=277; 84bd353bf-75",
- "requestId": "7b80742415072fe8b6b7f7761f1d1211",
- "origin": "s2s-api-auth-catalog",
- "status": 401,
- "statusText": "Unauthorized",
- "timestamp": "2024-09-30T06:52:38Z"
}
Setting/removing minus of exact match phrases{{ /adv/v1/search/set-strong }}
Sets/removes minus-phrases of exact match. Only for campaigns with custom bid.
The Maximum of allowed number of minus-phrases in a campaign is 1000 pcs.
Sending an empty array removes all minus-phrases of the exact match from the ad campaign.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 2 requests | 500 milliseconds | 2 requests |
Authorizations:
query Parameters
id required | integer Example: id=1234567 Campaign ID |
Request Body schema: application/jsonrequired
strong | Array of strings Minus-phrases (max. 1000 pcs.) |
Responses
Request samples
- Payload
{- "strong": [
- "стоять",
- "лопата"
]
}
Response samples
- 401
- 429
{- "title": "unauthorized",
- "detail": "token problem; token is malformed: could not base64 decode signature: illegal base64 data at input byte 84",
- "code": "07e4668e--a53a3d31f8b0-[UK-oWaVDUqNrKG]; 03bce=277; 84bd353bf-75",
- "requestId": "7b80742415072fe8b6b7f7761f1d1211",
- "origin": "s2s-api-auth-catalog",
- "status": 401,
- "statusText": "Unauthorized",
- "timestamp": "2024-09-30T06:52:38Z"
}
Setting/removing minus phrases from search{{ /adv/v1/search/set-excluded }}
Sets/removes minus-phrases for search. Only for campaigns with custom bid.
The Maximum of allowed number of minus-phrases in a campaign is 1000 pcs.
Sending an empty array removes all minus-phrases from the Search ad campaign.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 2 requests | 500 milliseconds | 2 requests |
Authorizations:
query Parameters
id required | integer Example: id=1234567 Campaign ID |
Request Body schema: application/jsonrequired
excluded | Array of strings Minus-phrases (max. 1000 pcs.) |
Responses
Request samples
- Payload
{- "excluded": [
- "что-то синее",
- "картошечка"
]
}
Response samples
- 401
- 429
{- "title": "unauthorized",
- "detail": "token problem; token is malformed: could not base64 decode signature: illegal base64 data at input byte 84",
- "code": "07e4668e--a53a3d31f8b0-[UK-oWaVDUqNrKG]; 03bce=277; 84bd353bf-75",
- "requestId": "7b80742415072fe8b6b7f7761f1d1211",
- "origin": "s2s-api-auth-catalog",
- "status": 401,
- "statusText": "Unauthorized",
- "timestamp": "2024-09-30T06:52:38Z"
}
Setting/removing minus-phrases for campaigns with standard bid{{ /adv/v1/auto/set-excluded }}
The method allows to set or remove minus phrases.
Sending an empty array removes all minus phrases from the campaign.
Period | Limit | Interval | Burst |
---|---|---|---|
6 seconds | 1 request | 6 seconds | 5 requests |
Authorizations:
query Parameters
id required | integer Example: id=1234567 Campaign ID |
Request Body schema: application/jsonrequired
excluded | Array of strings List of phrases (Maximum of 1000 pcs.) |
Responses
Request samples
- Payload
Setting minus phrases
{- "excluded": [
- "первая фраза",
- "вторая фраза"
]
}
Response samples
- 401
- 429
{- "title": "unauthorized",
- "detail": "token problem; token is malformed: could not base64 decode signature: illegal base64 data at input byte 84",
- "code": "07e4668e--a53a3d31f8b0-[UK-oWaVDUqNrKG]; 03bce=277; 84bd353bf-75",
- "requestId": "7b80742415072fe8b6b7f7761f1d1211",
- "origin": "s2s-api-auth-catalog",
- "status": 401,
- "statusText": "Unauthorized",
- "timestamp": "2024-09-30T06:52:38Z"
}
List of product cards for campaign with standard bid{{ /adv/v1/auto/getnmtoadd }}
The method allows to get the list of product cards available for adding to the campaign.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 1 request | 1 second | 5 requests |
Authorizations:
query Parameters
id required | integer Example: id=1 Campaign ID |
Responses
Response samples
- 200
- 401
- 429
[- 1111111111,
- 2222222222,
- 3333333333,
- 4444444444
]
Changing the list of product cards in an campaign with standard bid{{ /adv/v1/auto/updatenm }}
The method allows you to add and remove product cards.
You cannot delete a one single product card from a campaign.
There is no validation by the delete
parameter.
If you receive a response with a status code of 200 and no change has occurred, check the request for documentation compliance
Period | Limit | Interval | Burst |
---|---|---|---|
1 minute | 60 requests | 1 second | 5 requests |
Authorizations:
query Parameters
id required | integer Example: id=1 Campaign ID |
Request Body schema: application/jsonrequired
add | Array of integers The product cards that need to be added |
delete | Array of integers The product cards that need to be deleted |
Responses
Request samples
- Payload
{- "add": [
- 11111111,
- 44444444
], - "delete": [
- 55555555
]
}
Response samples
- 400
- 401
- 429
{- "error": "Not found"
}
Changing the list of product cards in campaigns with custom bid{{ /adv/v0/auction/nms }}
The method allows you to add and remove product cards in campaigns with custom bid.
For campaigns in statuses 4
, 9
and 11
.
The current minimum bid is set for the added products.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 1 request | 1 second | 1 request |
Authorizations:
Request Body schema: application/jsonrequired
required | Array of objects <= 20 items Product cards in campaigns |
Responses
Request samples
- Payload
{- "nms": [
- {
- "advert_id": 12345,
- "nms": {
- "add": [
- 11111111,
- 44444444
], - "delete": [
- 55555555
]
}
}
]
}
Response samples
- 200
- 400
- 401
- 429
{- "nms": [
- {
- "advert_id": 12345,
- "nms": {
- "added": [
- 11111111,
- 44444444
], - "deleted": [
- 55555555
]
}
}
]
}
Balance{{ /adv/v1/balance }}
The method allows to get information about the seller's net, balance and bonuses
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 1 request | 1 second | 5 requests |
Authorizations:
Responses
Response samples
- 200
- 400
- 401
- 429
{- "balance": 11083,
- "net": 0,
- "bonus": 15187
}
Campaign budget{{ /adv/v1/budget }}
The method allows to get information about the budget of a campaign.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 4 requests | 250 milliseconds | 4 requests |
Authorizations:
query Parameters
id required | integer Example: id=1 Campaign ID |
Responses
Response samples
- 200
- 400
- 401
- 429
{- "cash": 0,
- "netting": 0,
- "total": 500
}
Top-up of the campaign budget{{ /adv/v1/budget/deposit }}
The method allows to top up the budget of the campaign.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 1 request | 1 second | 5 requests |
Authorizations:
query Parameters
id required | integer Example: id=1234567 Campaign ID |
Request Body schema: application/jsonrequired
sum | integer Top-up amount |
type | integer
|
return | boolean Response return flag ( |
Responses
Request samples
- Payload
{- "sum": 5000,
- "type": 1,
- "return": true
}
Response samples
- 200
- 400
- 401
- 429
Response when return is true
{- "total": 500
}
Receiving costs history{{ /adv/v1/upd }}
The method allows to get a costs history
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 1 request | 1 second | 5 requests |
Authorizations:
query Parameters
from required | string <date> Example: from=2023-07-31 Beginning of the interval |
to required | string <date> Example: to=2023-08-02 End of interval. |
Responses
Response samples
- 200
- 400
- 401
- 429
[- {
- "updNum": 0,
- "updTime": "2023-07-31T12:12:54.060536+03:00",
- "updSum": 24,
- "advertId": 3355881,
- "campName": "лук лучок",
- "advertType": 6,
- "paymentType": "Баланс",
- "advertStatus": 9
}, - {
- "updNum": 0,
- "updTime": null,
- "updSum": 107,
- "advertId": 3366882,
- "campName": "золотая луковица",
- "advertType": 8,
- "paymentType": "Счет",
- "advertStatus": 11
}
]
Receiving the history of account top-ups{{ /adv/v1/payments }}
The method allows you to get a history of top-ups.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 1 request | 1 second | 5 requests |
Authorizations:
query Parameters
from | string <date> Example: from=2023-07-31 Beginning of the interval |
to | string <date> Example: to=2023-08-02 End of interval. |
Responses
Response samples
- 200
- 400
- 401
- 429
[- {
- "id": 1036666,
- "date": "2022-02-04T09:06:47.985843Z",
- "sum": 600,
- "type": 0,
- "statusId": 1,
- "cardStatus": ""
}, - {
- "id": 55261296,
- "date": "2023-04-13T10:07:42",
- "sum": 1500,
- "type": 3,
- "statusId": 1,
- "cardStatus": "succeeded"
}
]
Media campaigns number{{ /adv/v1/count }}
Method allows you to get the number of the seller's media campaigns.
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 10 requests | 100 milliseconds | 10 requests |
Authorizations:
Responses
Response samples
- 200
- 401
- 429
{- "all": 6,
- "adverts": {
- "type": 2,
- "status": 7,
- "count": 2
}
}
List of media campaigns{{ /adv/v1/adverts }}
The method allows to get the list of media campaigns of the seller
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 10 requests | 100 milliseconds | 10 requests |
Authorizations:
query Parameters
status | integer Example: status=1
|
type | integer Example: type=1
|
limit | integer Example: limit=1 Number of campaigns in the response |
offset | integer Example: offset=1 Offset relative to the first media campaign |
order | string Example: order=id
|
direction | string Example: direction=desc
|
Responses
Response samples
- 200
- 401
- 429
[- {
- "advertId": 123456,
- "name": "тост",
- "brand": "goosb",
- "type": 2,
- "status": 8,
- "createTime": "2023-03-25T20:35:57.116943+03:00"
}, - {
- "advertId": 54321,
- "name": "тест",
- "brand": "bobr",
- "type": 1,
- "status": 7,
- "createTime": "2023-07-24T16:48:20.935599+03:00",
- "endTime": "2023-07-25T20:35:50.104978Z"
}
]
Information about media campaign{{ /adv/v1/advert }}
The method allows to get information about a single media campaign
Period | Limit | Interval | Burst |
---|---|---|---|
1 second | 10 requests | 100 milliseconds | 10 requests |
Authorizations:
query Parameters
id required | integer Example: id=23569 Media campaign ID |
Responses
Response samples
- 200
- 401
- 429
{- "advertId": 23569,
- "name": "Реклама денег принеси",
- "brand": "Plank",
- "type": 2,
- "status": 11,
- "createTime": "2023-07-19T11:13:41.195138+03:00",
- "extended": {
- "reason": "Для возобновления показов пополните бюджет медиакампании",
- "expenses": 10000,
- "from": "2023-07-19T12:05:35.847348Z",
- "to": "2123-07-20T08:14:13.079176+03:00",
- "updated_at": "2023-07-21T13:25:31.129766+03:00",
- "price": 0,
- "budget": 0,
- "operation": 1,
- "contract_id": 0
}, - "items": [
- {
- "id": 68080,
- "name": "Унисон",
- "status": 7,
- "place": 2,
- "budget": 650000,
- "daily_limit": 500,
- "category_name": "Главная",
- "cpm": 351,
- "advert_type": 1,
- "created_at": "2023-11-01T15:40:46.86165+03:00",
- "updated_at": "2023-11-08T23:44:33.248229+03:00",
- "date_from": "2023-11-01T16:05:22.286002Z",
- "date_to": "2023-11-09T17:27:32.745869+03:00",
- "nms": [
- 123456,
- 11111111
], - "bottomText1": "string",
- "bottomText2": "string",
- "message": "string",
- "additionalSettings": 1,
- "receiversCount": 1,
- "subject_id": 6945,
- "subject_name": "Бельё",
- "action_name": "Распродажа! Создай себе домашний уют!",
- "show_hours": [
- {
- "From": 7,
- "To": 8
}
], - "Erid": "string"
}
]
}
Using these methods, you can obtain information about promotions and participate in them.
Promotions List{{ /api/v1/calendar/promotions }}
Returns a promotions list with dates and times of occurrence
Period | Limit | Interval | Burst |
---|---|---|---|
6 seconds | 10 requests | 600 milliseconds | 5 requests |
Authorizations:
query Parameters
startDateTime required | string <RFC3339> Example: startDateTime=2023-09-01T00:00:00Z Period start, format |
endDateTime required | string <RFC3339> Example: endDateTime=2024-08-01T23:59:59Z Period end, format |
allPromo required | boolean Default: false Show promotions:
|
limit | integer <uint> [ 1 .. 1000 ] Example: limit=10 Number of requested promotions |
offset | integer <uint> >= 0 Example: offset=0 From which element to start outputting data |
Responses
Response samples
- 200
- 400
- 401
- 429
{- "data": {
- "promotions": [
- {
- "id": 123,
- "name": "скидки",
- "startDateTime": "2023-06-05T21:00:00Z",
- "endDateTime": "2023-06-05T21:00:00Z",
- "type": "regular"
}
]
}
}
Promotions Details{{ /api/v1/calendar/promotions/details }}
Returns detailed information about the selected promotions
Period | Limit | Interval | Burst |
---|---|---|---|
6 seconds | 10 requests | 600 milliseconds | 5 requests |
Authorizations:
query Parameters
promotionIDs required | string [ 1 .. 100 ] items unique Example: promotionIDs=1&promotionIDs=3&promotionIDs=64 IDs of the promotions for which information should be returned |
Responses
Response samples
- 200
- 400
- 401
- 429
{- "data": {
- "promotions": [
- {
- "id": 123,
- "name": "ХИТЫ ГОДА",
- "description": "В акции принимают участие самые популярные товары 2023 года. Карточки товаров будут выделены плашкой «ХИТ ГОДА», чтобы покупатели замечали эти товары среди других. Также они будут размещены под баннерами на главной странице и примут участие в PUSH-уведомлениях. С ценами для вступления в акцию вы можете ознакомиться ниже.",
- "advantages": [
- "Плашка",
- "Баннер",
- "Топ выдачи товаров"
], - "startDateTime": "2023-06-05T21:00:00Z",
- "endDateTime": "2023-06-05T21:00:00Z",
- "inPromoActionLeftovers": 45,
- "inPromoActionTotal": 123,
- "notInPromoActionLeftovers": 3,
- "notInPromoActionTotal": 10,
- "participationPercentage": 10,
- "type": "auto",
- "exceptionProductsCount": 10,
- "ranging": [
- {
- "condition": "productsInPromotion",
- "participationRate": 10,
- "boost": 7
}, - {
- "condition": "calculateProducts",
- "participationRate": 20,
- "boost": 17
}, - {
- "condition": "allProducts",
- "participationRate": 35,
- "boost": 30
}
]
}
]
}
}
List of Products for Participating in the Promotion{{ /api/v1/calendar/promotions/nomenclatures }}
Returns a list of products suitable for participation in the promotion.
Not applicable for auto promotions
Period | Limit | Interval | Burst |
---|---|---|---|
6 seconds | 10 requests | 600 milliseconds | 5 requests |
Authorizations:
query Parameters
promotionID required | integer Example: promotionID=1 Promotion ID |
inAction required | boolean Default: false Example: inAction=true Participates in the promotion:
|
limit | integer <uint> [ 1 .. 1000 ] Example: limit=10 Number of requested products |
offset | integer <uint> >= 0 Example: offset=0 From which element to start outputting data |
Responses
Response samples
- 200
- 400
- 401
- 422
- 429
{- "data": {
- "nomenclatures": [
- {
- "id": 162579635,
- "inAction": true,
- "price": 1500,
- "currencyCode": "RUB",
- "planPrice": 1000,
- "discount": 15,
- "planDiscount": 34
}
]
}
}
Add Product to the Promotion{{ /api/v1/calendar/promotions/upload }}
Creates a product upload for the promotion.
The upload status can be checked using separate methods.
Not applicable for auto promotions
Period | Limit | Interval | Burst |
---|---|---|---|
6 seconds | 10 requests | 600 milliseconds | 5 requests |
Authorizations:
Request Body schema: application/jsonrequired
object |
Responses
Request samples
- Payload
{- "data": {
- "promotionID": 1,
- "uploadNow": true,
- "nomenclatures": [
- 1,
- 3,
- 642
]
}
}
Response samples
- 200
- 400
- 401
- 422
- 429
{- "data": {
- "alreadyExists": false,
- "uploadID": 11
}
}