API

Atnaujinti specialų pasiūlymą

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

Autorizacija

api-token + language + role

Užklausos parametrai

branch_idinteger

Filialas, kuriame vykdomas užklausa. Partneris, turintis kelis filialus, privalo jį perduoti, kitaip užklausa bus atmesta su klaida. Partneriui su vienu filialu serveris jį priskiria automatiškai.

Pavyzdys: 8778

Užklausos turinys multipart/form-data

object

Taisyklės slepiamos, kai operating_mode = informing

idnumberprivalomas

Pavyzdys: 1

namestringprivalomas

Pavyzdys: Free delivery

operating_modestring (TypeOperatingMode) privalomas

Reikšmės:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Pavyzdys: informing

platformstring (Platform) privalomas

Reikšmės:androidiosallmobile_appssitesocial_apps

Pavyzdys: all

descriptionstring

Rodoma ir privaloma, kai operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Pavyzdys: informing description

imageobject (ImageSource)

Rodoma ir privaloma, kai operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

binarystring · binary
cropobject

Vaizdo apkarpymo koordinatės

offsetsobject
xintegerprivalomas

Pavyzdys: 100

yintegerprivalomas

Pavyzdys: 50

sizesobject
widthintegerprivalomas

Pavyzdys: 800

heightintegerprivalomas

Pavyzdys: 600

push_titlestring

Rodoma, kai operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Pavyzdys: the push title

push_messagestring

Rodoma, kai operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Pavyzdys: the push message

date_availablestring (DataTimeFormat)

Pavyzdys: 17:45 06/05/2024

date_expirationstring (DataTimeFormat)

Pavyzdys: 17:45 06/05/2024

days_of_weekarray of integer (DaysWeek)

Savaitės dienos

time_periodsarray of array of string (TimePeriods)

Laiko periodas

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
typestring (TypeWorkOperatingMode)

Reikšmės: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

Pavyzdys: free_delivery

subcategories_include_in_categories_enabledboolean

Rodoma, kai 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

Pavyzdys: true

authorized_users_enabledboolean

Rodomas, kai 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

Pavyzdys: true

work_with_pay_bonuses_enabledboolean

Rodomas, kai 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

Pavyzdys: true

accrual_bonuses_enabledboolean

Rodomas, kai 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

Pavyzdys: true

first_purchase_enabledboolean

Rodoma visiems tipams

Pavyzdys: true

first_purchase_platformstring (Platform)

Reikšmės:androidiosallmobile_appssitesocial_apps

Pavyzdys: all

reuse_enabledboolean

Rodoma visiems tipams

Pavyzdys: true

use_only_in_birthday_enabledboolean

Rodoma visiems tipams

Pavyzdys: true

birthday_validity_beforeinteger

Rodoma visiems tipams, kai įjungtas use_only_in_birthday_enabled

Pavyzdys: 10

birthday_validity_afterinteger

Rodoma visiems tipams, kai įjungtas use_only_in_birthday_enabled

Pavyzdys: 10

ignore_in_minimum_sum_enabledboolean

Rodomas, kai 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

Pavyzdys: true

delivery_methodstring (DeliveryMethodUpdate)

Reikšmės:allcourierpickup

from_sumnumber

Rodomas, kai 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

Pavyzdys: 100

to_sumnumber

Rodomas, kai 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

Pavyzdys: 1000

multiple_sumnumber

Rodoma, kai type: free_item_to_choose

Pavyzdys: 100

from_to_sums_for_items_from_conditions_enabledboolean

Rodoma, kai type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Pavyzdys: true

discountnumber

Rodoma, kai 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

Pavyzdys: 10

count_items_for_conditioninteger

Rodoma, kai 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

Pavyzdys: 10

count_items_for_actioninteger

Rodoma, kai type: free_item_to_choose, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Pavyzdys: 10

one_item_from_conditions_enabledboolean

Rodomas, kai 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

Pavyzdys: true

use_only_one_time_in_cart_enabledboolean

Rodomas, kai 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

Pavyzdys: true

automatic_old_cost_for_items_enabledboolean

Rodoma, kai type: percent_discount_on_all_order, percent_discount_on_items_from_categories, percent_discount_on_items

Pavyzdys: true

bonuses_sumnumber

Rodoma ir privaloma, kai type: bonuses

Pavyzdys: 100

bonuses_validitynumber

Rodoma, kai type: bonuses

Pavyzdys: 100

actions_itemsarray of integer

Rodoma ir privaloma, kai 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

Rodoma ir privaloma, kai type: free_item_to_choose_if_buy_items

actions_categoriesarray of integer

Rodoma ir privaloma, kai 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

Rodoma ir privaloma, kai type: free_item_to_choose_if_buy_items_from_categories

Atsakymai

OK

object
statusstringprivalomas

Reikšmės:successerror

Pavyzdys: success

dataobject