API

Aksiya yarat

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

Avtorizasiya

api-token + language + role

Sorğu parametrləri

branch_idinteger

Sorğu yerinə yetirilən filial. Bir neçə filialı olan tərəfdaş bu parametri ötürməlidir, əks halda sorğu səhvlə tamamlanacaq. Bir filialı olan tərəfdaş üçün server onu avtomatik təyin edir.

Nümunə: 8778

Sorğu gövdəsi multipart/form-data

object

Qaydalar yalnız operating_mode = informing olduqda gizlədilir

namestringmütləq

Nümunə: Free delivery

operating_modestring (TypeOperatingMode) mütləq

Dəyərlər:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Nümunə: informing

platformstring (Platform) mütləq

Dəyərlər:androidiosallmobile_appssitesocial_apps

Nümunə: all

descriptionstring

Göstərilir və operating_mode: informing, informing_and_promo_code, informing_and_automatic_action olduqda mütləqdir

Nümunə: informing description

imageobject (ImageSource)

Göstərilir və operating_mode: informing, informing_and_promo_code, informing_and_automatic_action olduqda mütləqdir

binarystring · binary
cropobject

Şəklin kəsilmə koordinatları

offsetsobject
xintegermütləq

Nümunə: 100

yintegermütləq

Nümunə: 50

sizesobject
widthintegermütləq

Nümunə: 800

heightintegermütləq

Nümunə: 600

push_titlestring

Aşağıdakı hallarda göstərilir: operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Nümunə: the push title

push_messagestring

Aşağıdakı hallarda göstərilir: operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Nümunə: the push message

date_availablestring (DataTimeFormat)

Nümunə: 17:45 06/05/2024

date_expirationstring (DataTimeFormat)

Nümunə: 17:45 06/05/2024

days_of_weekarray of integer (DaysWeek)

Həftənin günləri

time_periodsarray of array of string (TimePeriods)

Zaman dövrü

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
typestring (TypeWorkOperatingMode)

Dəyərlər: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

Nümunə: free_delivery

subcategories_include_in_categories_enabledboolean

Aşağıdakı hallarda göstərilir: 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

Nümunə: true

authorized_users_enabledboolean

Aşağıdakı type üçün göstərilir: 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

Nümunə: true

work_with_pay_bonuses_enabledboolean

Aşağıdakı type üçün göstərilir: 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

Nümunə: true

accrual_bonuses_enabledboolean

Aşağıdakı type üçün göstərilir: 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

Nümunə: true

first_purchase_enabledboolean

Bütün tiplər üçün göstərilir

Nümunə: true

first_purchase_platformstring (Platform)

Dəyərlər:androidiosallmobile_appssitesocial_apps

Nümunə: all

reuse_enabledboolean

Bütün tiplər üçün göstərilir

Nümunə: true

use_only_in_birthday_enabledboolean

Bütün tiplər üçün göstərilir

Nümunə: true

birthday_validity_beforeinteger

Bütün tiplər üçün use_only_in_birthday_enabled aktiv olduqda göstərilir

Nümunə: 10

birthday_validity_afterinteger

Bütün tiplər üçün use_only_in_birthday_enabled aktiv olduqda göstərilir

Nümunə: 10

ignore_in_minimum_sum_enabledboolean

Aşağıdakı hallarda göstərilir: 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

Nümunə: true

delivery_methodstring (DeliveryMethodUpdate)

Dəyərlər:allcourierpickup

from_sumnumber

Aşağıdakı type üçün göstərilir: 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

Nümunə: 100

to_sumnumber

Aşağıdakı type üçün göstərilir: 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

Nümunə: 1000

multiple_sumnumber

Aşağıdakı halda göstərilir: type: free_item_to_choose

Nümunə: 100

from_to_sums_for_items_from_conditions_enabledboolean

Aşağıdakı hallarda göstərilir: type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Nümunə: true

discountnumber

Aşağıdakı type üçün göstərilir: 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

Nümunə: 10

count_items_for_conditioninteger

Aşağıdakı hallarda göstərilir: 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

Nümunə: 10

count_items_for_actioninteger

Aşağıdakı hallarda göstərilir: type: free_item_to_choose, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Nümunə: 10

one_item_from_conditions_enabledboolean

Aşağıdakı hallarda göstərilir: 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

Nümunə: true

use_only_one_time_in_cart_enabledboolean

Aşağıdakı hallarda göstərilir: 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

Nümunə: true

automatic_old_cost_for_items_enabledboolean

Aşağıdakı hallarda göstərilir: type: percent_discount_on_all_order, percent_discount_on_items_from_categories, percent_discount_on_items

Nümunə: true

bonuses_sumnumber

Göstərilir və type: bonuses olduqda mütləqdir

Nümunə: 100

bonuses_validitynumber

type: bonuses olduqda göstərilir

Nümunə: 100

actions_itemsarray of integer

Göstərilir və type aşağıdakı olduqda mütləqdir: 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

Göstərilir və type: free_item_to_choose_if_buy_items olduqda mütləqdir

actions_categoriesarray of integer

Göstərilir və type aşağıdakı olduqda mütləqdir: 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

Göstərilir və type: free_item_to_choose_if_buy_items_from_categories olduqda mütləqdir

Cavablar

OK

object
statusstringmütləq

Dəyərlər:successerror

Nümunə: success

dataobject