API

Kampanya oluştur

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

Yetkilendirme

api-token + language + role

Sorgu parametreleri

branch_idinteger

Sorgunun gerçekleştirildiği şube. Birden fazla şubesi olan iş ortakları bu parametreyi iletmek zorundadır, aksi takdirde istek hata ile sonuçlanır. Tek şubesi olan iş ortakları için sunucu bu değeri otomatik olarak atar.

Örnek: 8778

İstek gövdesi multipart/form-data

object

Kurallar, operating_mode = informing olduğunda gizlenir

namestringzorunlu

Örnek: Free delivery

operating_modestring (TypeOperatingMode) zorunlu

Değerler:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Örnek: informing

platformstring (Platform) zorunlu

Değerler:androidiosallmobile_appssitesocial_apps

Örnek: all

descriptionstring

Gösterilir ve operating_mode: informing, informing_and_promo_code, informing_and_automatic_action olduğunda zorunludur

Örnek: informing description

imageobject (ImageSource)

Gösterilir ve operating_mode şu değerlerden biri olduğunda zorunludur: informing, informing_and_promo_code, informing_and_automatic_action

binarystring · binary
cropobject

Görüntü kırpma koordinatları

offsetsobject
xintegerzorunlu

Örnek: 100

yintegerzorunlu

Örnek: 50

sizesobject
widthintegerzorunlu

Örnek: 800

heightintegerzorunlu

Örnek: 600

push_titlestring

Şu operating_mode değerlerinde gösterilir: informing, informing_and_promo_code, informing_and_automatic_action

Örnek: the push title

push_messagestring

operating_mode şu değerlerden biri olduğunda gösterilir: informing, informing_and_promo_code, informing_and_automatic_action

Örnek: the push message

date_availablestring (DataTimeFormat)

Örnek: 17:45 06/05/2024

date_expirationstring (DataTimeFormat)

Örnek: 17:45 06/05/2024

days_of_weekarray of integer (DaysWeek)

Haftanın günleri

time_periodsarray of array of string (TimePeriods)

Zaman aralığı

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
typestring (TypeWorkOperatingMode)

Değerler: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

Örnek: free_delivery

subcategories_include_in_categories_enabledboolean

Aşağıdaki durumlarda gösterilir: 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

Örnek: true

authorized_users_enabledboolean

Aşağıdaki type değerlerinde gösterilir: 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

Örnek: true

work_with_pay_bonuses_enabledboolean

Aşağıdaki type değerlerinde gösterilir: 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

Örnek: true

accrual_bonuses_enabledboolean

Aşağıdaki type değerlerinde gösterilir: 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

Örnek: true

first_purchase_enabledboolean

Tüm türler için gösterilir

Örnek: true

first_purchase_platformstring (Platform)

Değerler:androidiosallmobile_appssitesocial_apps

Örnek: all

reuse_enabledboolean

Tüm türler için gösterilir

Örnek: true

use_only_in_birthday_enabledboolean

Tüm türler için gösterilir

Örnek: true

birthday_validity_beforeinteger

Tüm tipler için use_only_in_birthday_enabled etkinleştirildiğinde gösterilir

Örnek: 10

birthday_validity_afterinteger

Tüm tipler için use_only_in_birthday_enabled etkinleştirildiğinde gösterilir

Örnek: 10

ignore_in_minimum_sum_enabledboolean

Aşağıdaki type değerlerinde gösterilir: 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

Örnek: true

delivery_methodstring (DeliveryMethodUpdate)

Değerler:allcourierpickup

from_sumnumber

Aşağıdaki type değerlerinde gösterilir: 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

Örnek: 100

to_sumnumber

Aşağıdaki type değerlerinde gösterilir: 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

Örnek: 1000

multiple_sumnumber

type: free_item_to_choose olduğunda gösterilir

Örnek: 100

from_to_sums_for_items_from_conditions_enabledboolean

Şu durumlarda gösterilir: type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Örnek: true

discountnumber

Aşağıdaki type değerlerinde gösterilir: 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

Örnek: 10

count_items_for_conditioninteger

Aşağıdaki type değerlerinde gösterilir: 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

Örnek: 10

count_items_for_actioninteger

Şu durumlarda gösterilir: type: free_item_to_choose, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Örnek: 10

one_item_from_conditions_enabledboolean

Aşağıdaki type değerlerinde gösterilir: 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

Örnek: true

use_only_one_time_in_cart_enabledboolean

Aşağıdaki type değerlerinde gösterilir: 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

Örnek: true

automatic_old_cost_for_items_enabledboolean

Şu durumlarda gösterilir: type: percent_discount_on_all_order, percent_discount_on_items_from_categories, percent_discount_on_items

Örnek: true

bonuses_sumnumber

Gösterilir ve type değeri bonuses olduğunda zorunludur

Örnek: 100

bonuses_validitynumber

type: bonuses olduğunda gösterilir

Örnek: 100

actions_itemsarray of integer

Gösterilir ve type şu değerlerden biri olduğunda zorunludur: 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österilir ve type: free_item_to_choose_if_buy_items olduğunda zorunludur

actions_categoriesarray of integer

Gösterilir ve zorunludur, eğer 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 ise

conditions_categoriesarray of integer

Gösterilir ve type: free_item_to_choose_if_buy_items_from_categories olduğunda zorunludur

Yanıtlar

OK

object
statusstringzorunlu

Değerler:successerror

Örnek: success

dataobject