API

Kreiraj specijalnu ponudu

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

Ауторизација

api-token + language + role

Parametri upita

branch_idinteger

Филијала у којој се извршава захтев. Партнер са више филијала је обавезан да је проследи, у супротном захтев ће бити одбијен са грешком. За партнера са једном филијалом сервер аутоматски поставља вредност.

Пример: 8778

Telo zahteva multipart/form-data

object

Правила rada se skrivaju kada je operating_mode = informing

namestringобавезно

Пример: Free delivery

operating_modestring (TypeOperatingMode) обавезно

Vrednosti:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Пример: informing

platformstring (Platform) обавезно

Vrednosti:androidiosallmobile_appssitesocial_apps

Пример: all

descriptionstring

Prikazuje se i obavezno je za operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Пример: informing description

imageobject (ImageSource)

Prikazuje se i obavezno je kada je 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)

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

Prikazuje se kada je 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

Prikazuje se kada je 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)

Vrednosti: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)

Vrednosti:allcourierpickup

from_sumnumber

Prikazuje se kada je 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

Prikazuje se kada je 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

Prikazuje se kada je 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

Prikazuje se i obavezno je za 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

Prikazuje se i obavezno je za type: free_item_to_choose_if_buy_items

actions_categoriesarray of integer

Prikazuje se i obavezno je za 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обавезно

Vrednosti:successerror

Пример: success

dataobject