API

Змінити акцію

POST/api/crm/v2/special_offers_list.updatev2
operationId: specialOffersList.update

Авторизація

api-token + language + role

Параметри запиту

branch_idinteger

Філія, в якій виконується запит. Партнер з кількома філіями зобов’язаний передати цей параметр, інакше запит завершується помилкою. Для партнера з однією філією сервер підставляє його автоматично.

Приклад: 8778

Тіло запиту multipart/form-data

object

Правила роботи приховуються при operating_mode = informing

idnumberобов’язковий

Приклад: 1

namestringобов’язковий

Приклад: Free delivery

operating_modestring (TypeOperatingMode) обов’язковий

Значення:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Приклад: informing

platformstring (Platform) обов’язковий

Значення:androidiosallmobile_appssitesocial_apps

Приклад: all

descriptionstring

Відображається та є обовʼязковим при operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Приклад: informing description

imageobject (ImageSource)

Відображається та є обов’язковим при operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

binarystring · binary
cropobject

Координати обрізки зображення

offsetsobject
xintegerобов’язковий

Приклад: 100

yintegerобов’язковий

Приклад: 50

sizesobject
widthintegerобов’язковий

Приклад: 800

heightintegerобов’язковий

Приклад: 600

push_titlestring

Відображається при operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Приклад: the push title

push_messagestring

Відображається при operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Приклад: the push message

date_availablestring (DataTimeFormat)

Приклад: 17:45 06/05/2024

date_expirationstring (DataTimeFormat)

Приклад: 17:45 06/05/2024

days_of_weekarray of integer (DaysWeek)

Дні тижня

time_periodsarray of array of string (TimePeriods)

Період часу

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
typestring (TypeWorkOperatingMode)

Значення:fixed_discount_on_all_orderpercent_discount_on_all_orderfixed_discount_on_items_from_categoriespercent_discount_on_items_from_categoriesfixed_discount_on_itemspercent_discount_on_itemsfree_item_to_choose_if_buy_itemsfree_item_to_choose_if_buy_items_from_categoriesfixed_discount_on_next_itempercent_discount_on_next_itemfixed_discount_on_next_item_from_categoriespercent_discount_on_next_item_from_categoriesfree_item_to_choosepercent_discount_on_item_with_minimum_cost_in_cartfixed_discount_on_item_with_minimum_cost_in_cartpercent_discount_on_item_with_minimum_cost_from_itemsfixed_discount_on_item_with_minimum_cost_from_itemspercent_discount_on_item_with_minimum_cost_from_categoriesfixed_discount_on_item_with_minimum_cost_from_categoriesbonusesfree_delivery

Приклад: free_delivery

subcategories_include_in_categories_enabledboolean

Відображається при type: fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, free_item_to_choose_if_buy_items_from_categories, percent_discount_on_next_item_from_categories, fixed_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Приклад: true

authorized_users_enabledboolean

Відображається при type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Приклад: true

work_with_pay_bonuses_enabledboolean

Відображається при type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Приклад: true

accrual_bonuses_enabledboolean

Відображається при type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Приклад: true

first_purchase_enabledboolean

Відображається для всіх типів

Приклад: true

first_purchase_platformstring (Platform)

Значення:androidiosallmobile_appssitesocial_apps

Приклад: all

reuse_enabledboolean

Відображається для всіх типів

Приклад: true

use_only_in_birthday_enabledboolean

Відображається для всіх типів

Приклад: true

birthday_validity_beforeinteger

Відображається для всіх типів при увімкненому use_only_in_birthday_enabled

Приклад: 10

birthday_validity_afterinteger

Відображається для всіх типів при увімкненому use_only_in_birthday_enabled

Приклад: 10

ignore_in_minimum_sum_enabledboolean

Відображається при type: fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Приклад: true

delivery_methodstring (DeliveryMethodUpdate)

Значення:allcourierpickup

from_sumnumber

Відображається при type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Приклад: 100

to_sumnumber

Відображається при type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, free_item_to_choose, free_delivery, fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Приклад: 1000

multiple_sumnumber

Показується при type: free_item_to_choose

Приклад: 100

from_to_sums_for_items_from_conditions_enabledboolean

Показується при type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Приклад: true

discountnumber

Відображається при type: fixed_discount_on_all_order, percent_discount_on_all_order, fixed_discount_on_items, percent_discount_on_items, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_in_cart, fixed_discount_on_item_with_minimum_cost_in_cart, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Приклад: 10

count_items_for_conditioninteger

Відображається при type: fixed_discount_on_items, percent_discount_on_items, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Приклад: 10

count_items_for_actioninteger

Відображається при type: free_item_to_choose, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Приклад: 10

one_item_from_conditions_enabledboolean

Відображається при type: fixed_discount_on_items, percent_discount_on_items, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Приклад: true

use_only_one_time_in_cart_enabledboolean

Відображається при type: fixed_discount_on_items_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_items, percent_discount_on_items, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories, fixed_discount_on_next_item, percent_discount_on_next_item, fixed_discount_on_next_item_from_categories, percent_discount_on_next_item_from_categories, percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories

Приклад: true

automatic_old_cost_for_items_enabledboolean

Відображається при type: percent_discount_on_all_order, percent_discount_on_items_from_categories, percent_discount_on_items

Приклад: true

bonuses_sumnumber

Відображається та є обов’язковим при type: bonuses

Приклад: 100

bonuses_validitynumber

Відображається при type: bonuses

Приклад: 100

actions_itemsarray of integer

Показується та є обов’язковим при type: percent_discount_on_item_with_minimum_cost_from_items, fixed_discount_on_item_with_minimum_cost_from_items, percent_discount_on_next_item, fixed_discount_on_next_item, percent_discount_on_items, fixed_discount_on_items, free_item_to_choose, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

conditions_itemsarray of integer

Відображається та є обов’язковим при type: free_item_to_choose_if_buy_items

actions_categoriesarray of integer

Відображається та є обовʼязковим при type: percent_discount_on_item_with_minimum_cost_from_categories, fixed_discount_on_item_with_minimum_cost_from_categories, percent_discount_on_items_from_categories, fixed_discount_on_items_from_categories, percent_discount_on_next_item_from_categories, fixed_discount_on_next_item_from_categories

conditions_categoriesarray of integer

Відображається та є обов’язковим при type: free_item_to_choose_if_buy_items_from_categories

Відповіді

OK

object
statusstringобов’язковий

Значення:successerror

Приклад: success

dataobject