API

Aktion erstellen

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

Autorisierung

api-token + language + role

Abfrageparameter

branch_idinteger

Die Filiale, in der die Anfrage ausgeführt wird. Ein Partner mit mehreren Filialen muss diesen Parameter angeben, andernfalls wird die Anfrage mit einem Fehler abgelehnt. Bei einem Partner mit nur einer Filiale wird dieser Wert vom Server automatisch gesetzt.

Beispiel: 8778

Anfragetext multipart/form-data

object

Die Regeln werden ausgeblendet, wenn operating_mode = informing

namestringerforderlich

Beispiel: Free delivery

operating_modestring (TypeOperatingMode) erforderlich

Werte:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Beispiel: informing

platformstring (Platform) erforderlich

Werte:androidiosallmobile_appssitesocial_apps

Beispiel: all

descriptionstring

Wird angezeigt und ist erforderlich bei operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Beispiel: informing description

imageobject (ImageSource)

Wird angezeigt und ist erforderlich bei operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

binarystring · binary
cropobject

Koordinaten des Bildzuschnitts

offsetsobject
xintegererforderlich

Beispiel: 100

yintegererforderlich

Beispiel: 50

sizesobject
widthintegererforderlich

Beispiel: 800

heightintegererforderlich

Beispiel: 600

push_titlestring

Wird angezeigt bei operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Beispiel: the push title

push_messagestring

Wird angezeigt bei operating_mode: informing, informing_and_promo_code, informing_and_automatic_action

Beispiel: the push message

date_availablestring (DataTimeFormat)

Beispiel: 17:45 06/05/2024

date_expirationstring (DataTimeFormat)

Beispiel: 17:45 06/05/2024

days_of_weekarray of integer (DaysWeek)

Wochentage

time_periodsarray of array of string (TimePeriods)

Zeitraum

hide_for_districts_idsarray of integer
hide_for_pickups_idsarray of integer
typestring (TypeWorkOperatingMode)

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

Beispiel: free_delivery

subcategories_include_in_categories_enabledboolean

Wird angezeigt bei 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

Beispiel: true

authorized_users_enabledboolean

Wird angezeigt bei 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

Beispiel: true

work_with_pay_bonuses_enabledboolean

Wird angezeigt bei 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

Beispiel: true

accrual_bonuses_enabledboolean

Wird angezeigt bei 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

Beispiel: true

first_purchase_enabledboolean

Wird für alle Typen angezeigt

Beispiel: true

first_purchase_platformstring (Platform)

Werte:androidiosallmobile_appssitesocial_apps

Beispiel: all

reuse_enabledboolean

Wird für alle Typen angezeigt

Beispiel: true

use_only_in_birthday_enabledboolean

Wird für alle Typen angezeigt

Beispiel: true

birthday_validity_beforeinteger

Wird für alle Typen angezeigt, wenn use_only_in_birthday_enabled aktiviert ist

Beispiel: 10

birthday_validity_afterinteger

Wird für alle Typen angezeigt, wenn use_only_in_birthday_enabled aktiviert ist

Beispiel: 10

ignore_in_minimum_sum_enabledboolean

Wird angezeigt bei 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

Beispiel: true

delivery_methodstring (DeliveryMethodUpdate)

Werte:allcourierpickup

from_sumnumber

Wird angezeigt bei 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

Beispiel: 100

to_sumnumber

Wird angezeigt bei 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

Beispiel: 1000

multiple_sumnumber

Wird angezeigt bei type: free_item_to_choose

Beispiel: 100

from_to_sums_for_items_from_conditions_enabledboolean

Wird angezeigt bei type: free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Beispiel: true

discountnumber

Wird angezeigt bei 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

Beispiel: 10

count_items_for_conditioninteger

Wird angezeigt bei 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

Beispiel: 10

count_items_for_actioninteger

Wird angezeigt bei type: free_item_to_choose, free_item_to_choose_if_buy_items, free_item_to_choose_if_buy_items_from_categories

Beispiel: 10

one_item_from_conditions_enabledboolean

Wird angezeigt bei 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

Beispiel: true

use_only_one_time_in_cart_enabledboolean

Angezeigt bei 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

Beispiel: true

automatic_old_cost_for_items_enabledboolean

Wird angezeigt bei type: percent_discount_on_all_order, percent_discount_on_items_from_categories, percent_discount_on_items

Beispiel: true

bonuses_sumnumber

Wird angezeigt und ist erforderlich bei type: bonuses

Beispiel: 100

bonuses_validitynumber

Wird angezeigt, wenn type: bonuses

Beispiel: 100

actions_itemsarray of integer

Wird angezeigt und ist erforderlich bei 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

Wird angezeigt und ist erforderlich bei type: free_item_to_choose_if_buy_items

actions_categoriesarray of integer

Wird angezeigt und ist erforderlich bei 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

Wird angezeigt und ist erforderlich bei type: free_item_to_choose_if_buy_items_from_categories

Antworten

OK

object
statusstringerforderlich

Werte:successerror

Beispiel: success

dataobject