API

Επεξεργασία προσφοράς

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

Εξουσιοδότηση

api-token + language + role

Παράμετροι ερωτήματος

branch_idinteger

Το κατάστημα στο οποίο εκτελείται το αίτημα. Ένας συνεργάτης με πολλά καταστήματα υποχρεούται να το παρέχει, διαφορετικά το αίτημα αποτυγχάνει με σφάλμα. Για συνεργάτη με ένα μόνο κατάστημα, ο διακομιστής το ορίζει αυτόματα.

Παράδειγμα: 8778

Σώμα αιτήματος multipart/form-data

object

Οι κανόνες λειτουργίας αποκρύπτονται όταν το operating_mode είναι informing

idnumberυποχρεωτικό

Παράδειγμα: 1

namestringυποχρεωτικό

Παράδειγμα: Free delivery

operating_modestring (TypeOperatingMode) υποχρεωτικό

Τιμές:informingpromo_codeinforming_and_promo_codeautomatic_actioninforming_and_automatic_action

Παράδειγμα: informing

platformstring (Platform) υποχρεωτικό

Τιμές:androidiosallmobile_appssitesocial_apps

Παράδειγμα: all

descriptionstring

Εμφανίζεται και είναι υποχρεωτικό όταν το operating_mode είναι: informing, informing_and_promo_code, informing_and_automatic_action

Παράδειγμα: informing description

imageobject (ImageSource)

Εμφανίζεται και είναι υποχρεωτικό όταν το 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)

Τιμές: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

Εμφανίζεται όταν το 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

Εμφανίζεται όταν το 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)

Τιμές: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)

Τιμές:allcourierpickup

from_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

Παράδειγμα: 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

Εμφανίζεται όταν το 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

Εμφανίζεται όταν το 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

Εμφανίζεται και είναι υποχρεωτικό όταν το 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

Εμφανίζεται και είναι υποχρεωτικό όταν το type είναι free_item_to_choose_if_buy_items

actions_categoriesarray of integer

Εμφανίζεται και είναι υποχρεωτικό όταν το 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υποχρεωτικό

Τιμές:successerror

Παράδειγμα: success

dataobject