API

Utwórz promocję

POST/api/crm/v2/special_offers_list.addv2
operationId: specialOffersList.add

Autoryzacja

api-token + language + role

Parametry zapytania

branch_idinteger

Filia, w której wykonywane jest żądanie. Partner posiadający wiele filii musi przekazać ten parametr, w przeciwnym razie żądanie zakończy się błędem. Dla partnera z jedną filią serwer ustawia go automatycznie.

Przykład: 8778

Treść żądania multipart/form-data

object

Zasady działania są ukrywane, gdy operating_mode = informing

namestringwymagane

Przykład: Free delivery

operating_modestring (TypeOperatingMode) wymagane

Wartości:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Przykład: informing

platformstring (Platform) wymagane

Wartości:androidiosallmobile_appssitesocial_apps

Przykład: all

descriptionstring

Wyświetlane i wymagane przy operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Przykład: informing description

imageobject (ImageSource)

Wyświetlane i wymagane przy operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

binarystring · binary
cropobject

Współrzędne przycinania obrazu

offsetsobject
xintegerwymagane

Przykład: 100

yintegerwymagane

Przykład: 50

sizesobject
widthintegerwymagane

Przykład: 800

heightintegerwymagane

Przykład: 600

push_titlestring

Wyświetlane przy operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Przykład: the push title

push_messagestring

Wyświetlane przy operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Przykład: the push message

date_availablestring (DataTimeFormat)

Przykład: 17:45 06/05/2024

date_expirationstring (DataTimeFormat)

Przykład: 17:45 06/05/2024

days_of_weekarray of integer (DaysWeek)

Dni tygodnia

time_periodsarray of array of string (TimePeriods)

Okres czasu

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
typestring (TypeWorkOperatingMode)

Wartości: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

Przykład: free_delivery

subcategories_include_in_categories_enabledboolean

Wyświetlane, gdy 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

Przykład: true

authorized_users_enabledboolean

Wyświetlane, gdy 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

Przykład: true

work_with_pay_bonuses_enabledboolean

Wyświetlane, gdy 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

Przykład: true

accrual_bonuses_enabledboolean

Wyświetlane, gdy 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

Przykład: true

first_purchase_enabledboolean

Wyświetlane dla wszystkich typów

Przykład: true

first_purchase_platformstring (Platform)

Wartości:androidiosallmobile_appssitesocial_apps

Przykład: all

reuse_enabledboolean

Wyświetlane dla wszystkich typów

Przykład: true

use_only_in_birthday_enabledboolean

Wyświetlane dla wszystkich typów

Przykład: true

birthday_validity_beforeinteger

Wyświetlane dla wszystkich typów, gdy use_only_in_birthday_enabled jest włączone

Przykład: 10

birthday_validity_afterinteger

Wyświetlane dla wszystkich typów, gdy use_only_in_birthday_enabled jest włączone

Przykład: 10

ignore_in_minimum_sum_enabledboolean

Wyświetlane, gdy 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

Przykład: true

delivery_methodstring (DeliveryMethodUpdate)

Wartości:allcourierpickup

from_sumnumber

Wyświetlane, gdy 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

Przykład: 100

to_sumnumber

Wyświetlane, gdy 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

Przykład: 1000

multiple_sumnumber

Wyświetlane, gdy type: free_item_to_choose

Przykład: 100

from_to_sums_for_items_from_conditions_enabledboolean

Wyświetlane, gdy type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Przykład: true

discountnumber

Wyświetlane, gdy 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

Przykład: 10

count_items_for_conditioninteger

Wyświetlane, gdy 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

Przykład: 10

count_items_for_actioninteger

Wyświetlane, gdy type: free_item_to_choose, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Przykład: 10

one_item_from_conditions_enabledboolean

Wyświetlane, gdy 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

Przykład: true

use_only_one_time_in_cart_enabledboolean

Wyświetlane, gdy 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

Przykład: true

automatic_old_cost_for_items_enabledboolean

Wyświetlane, gdy type: percent_discount_on_all_order, percent_discount_on_items_from_categories, percent_discount_on_items

Przykład: true

bonuses_sumnumber

Wyświetlane i wymagane przy type: bonuses

Przykład: 100

bonuses_validitynumber

Wyświetlane, gdy type: bonuses

Przykład: 100

actions_itemsarray of integer

Wyświetlane i wymagane przy 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

Wyświetlane i wymagane przy type: free_item_to_choose_if_buy_items

actions_categoriesarray of integer

Wyświetlane i wymagane przy 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

Wyświetlane i wymagane przy type: free_item_to_choose_if_buy_items_from_categories

Odpowiedzi

OK

object
statusstringwymagane

Wartości:successerror

Przykład: success

dataobject