API

Modifică oferta specială

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

Autorizare

api-token + language + role

Parametri de interogare

branch_idinteger

Filiala în care se execută cererea. Un partener cu mai multe filiale este obligat să transmită acest parametru, altfel cererea va fi respinsă cu eroare. Pentru un partener cu o singură filială, serverul îl completează automat.

Exemplu: 8778

Corpul cererii multipart/form-data

object

Regulile de funcționare sunt ascunse când operating_mode = informing

idnumberobligatoriu

Exemplu: 1

namestringobligatoriu

Exemplu: Free delivery

operating_modestring (TypeOperatingMode) obligatoriu

Valori:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Exemplu: informing

platformstring (Platform) obligatoriu

Valori:androidiosallmobile_appssitesocial_apps

Exemplu: all

descriptionstring

Se afișează și este obligatoriu pentru operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Exemplu: informing description

imageobject (ImageSource)

Se afișează și este obligatoriu pentru operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

binarystring · binary
cropobject

Coordonatele decupării imaginii

offsetsobject
xintegerobligatoriu

Exemplu: 100

yintegerobligatoriu

Exemplu: 50

sizesobject
widthintegerobligatoriu

Exemplu: 800

heightintegerobligatoriu

Exemplu: 600

push_titlestring

Se afișează când operating_mode este: informing, informing_and_promo_code, informing_and_automatic_action

Exemplu: the push title

push_messagestring

Se afișează când operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Exemplu: the push message

date_availablestring (DataTimeFormat)

Exemplu: 17:45 06/05/2024

date_expirationstring (DataTimeFormat)

Exemplu: 17:45 06/05/2024

days_of_weekarray of integer (DaysWeek)

Zilele săptămânii

time_periodsarray of array of string (TimePeriods)

Perioadă de timp

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
typestring (TypeWorkOperatingMode)

Valori: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

Exemplu: free_delivery

subcategories_include_in_categories_enabledboolean

Se afișează când 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

Exemplu: true

authorized_users_enabledboolean

Se afișează când 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

Exemplu: true

work_with_pay_bonuses_enabledboolean

Se afișează când 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

Exemplu: true

accrual_bonuses_enabledboolean

Se afișează când 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

Exemplu: true

first_purchase_enabledboolean

Se afișează pentru toate tipurile

Exemplu: true

first_purchase_platformstring (Platform)

Valori:androidiosallmobile_appssitesocial_apps

Exemplu: all

reuse_enabledboolean

Se afișează pentru toate tipurile

Exemplu: true

use_only_in_birthday_enabledboolean

Se afișează pentru toate tipurile

Exemplu: true

birthday_validity_beforeinteger

Se afișează pentru toate tipurile când use_only_in_birthday_enabled este activat

Exemplu: 10

birthday_validity_afterinteger

Se afișează pentru toate tipurile când use_only_in_birthday_enabled este activat

Exemplu: 10

ignore_in_minimum_sum_enabledboolean

Se afișează când 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

Exemplu: true

delivery_methodstring (DeliveryMethodUpdate)

Valori:allcourierpickup

from_sumnumber

Se afișează când 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

Exemplu: 100

to_sumnumber

Se afișează când 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

Exemplu: 1000

multiple_sumnumber

Se afișează când type: free_item_to_choose

Exemplu: 100

from_to_sums_for_items_from_conditions_enabledboolean

Se afișează când type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Exemplu: true

discountnumber

Se afișează când 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

Exemplu: 10

count_items_for_conditioninteger

Se afișează când 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

Exemplu: 10

count_items_for_actioninteger

Se afișează când type: free_item_to_choose, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Exemplu: 10

one_item_from_conditions_enabledboolean

Se afișează când 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

Exemplu: true

use_only_one_time_in_cart_enabledboolean

Se afișează când 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

Exemplu: true

automatic_old_cost_for_items_enabledboolean

Se afișează când type: percent_discount_on_all_order, percent_discount_on_items_from_categories, percent_discount_on_items

Exemplu: true

bonuses_sumnumber

Se afișează și este obligatoriu când type: bonuses

Exemplu: 100

bonuses_validitynumber

Se afișează când type: bonuses

Exemplu: 100

actions_itemsarray of integer

Se afișează și este obligatoriu pentru 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

Se afișează și este obligatoriu când type: free_item_to_choose_if_buy_items

actions_categoriesarray of integer

Se afișează și este obligatoriu pentru 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

Se afișează și este obligatoriu dacă type: free_item_to_choose_if_buy_items_from_categories

Răspunsuri

OK

object
statusstringobligatoriu

Valori:successerror

Exemplu: success

dataobject